0

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

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

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

0 directories, 0 files

经过一些谷歌搜索,我遇到了:树命令(已废弃) 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 的专家。非常感激!

4

1 回答 1

0

解决了!

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

我习惯于让 Snaps 开箱即用,我从未想过使用 pacman。

于 2020-12-26T06:54:06.800 回答