无法在 Linux Manjaro 中使用树和树严格程序列出文件

Unable to list files using tree and tree-strict programs in Linux Manjaro

在 Ubuntu 中使用树使得在 CLI 中工作变得更加愉快。当我切换到我的笔记本电脑 运行ning Manjaro 并尝试使用 snap 安装树程序时,它运行良好并且安装没有错误。但是当我尝试 运行

~ tree mydir或只是 tree 列出当前工作目录中的文件 + 目录,我得到一个错误:

locales-launch: Data of en_AU locale not found, generating, please wait...
. [error opening dir]

0 directories, 0 files

经过一些 google 搜索,我找到了:树命令(已过时) https://snapcraft.io/install/tree-strict/manjaro 并决定试一试!

安装后,我尝试 运行 它: ~ tree-strict mydir

唉!我遇到了另一个错误,告诉我删除这个过时的包:

. [error opening dir]

0 directories, 0 files

# Snap Obsoletion Notice #
This snap(tree-strict) has now been _superseded_ by the `tree` snap and will no longer recieve any updates.  Please install the `tree` snap and remove the `tree-strict` snap as soon as possible.

If you have any problems regarding the obsoletion, feel free to ask a question on <https://answers.launchpad.net/tree-snap>

我看到帖子告诉我只需清除区域设置并重新安装它们,但有人可以指出我正确的方向,因为我不是 Arch Linux 的专家。非常感谢!

已解决!

@BrunoCriado 建议使用 pacman 而不是 Snaps 解决了这个问题。

我习惯了开箱即用的 Snaps,从来没有想过使用 pacman。