系统信息:
- Ubuntu 22.04
几天前我刚刚将我的 Ubuntu 升级到 22.04。几个月前,我卸载了所有与 snap 相关的软件包,包括snapd
因为我在一些在线资源上阅读过 snap 包可能会导致系统减速。而且,他们违背了开源精神。我非常热情地删除了它们。此后,我不得不重新安装所需的软件包,包括 Firefox,使用apt
. 没有问题。
升级后,每当我运行
sudo apt update && sudo apt upgrade
我得到以下输出:
The following packages have been kept back:
firefox libomp-dev
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
我在网上搜索了一下,发现安装上述软件包可以解决这个问题。这种方法解决了 libomp-dev 的问题,但没有解决 firefox的问题。当我跑的时候:
sudo apt install firefox
我有:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
firefox : PreDepends: snapd but it is not installable
E: Unable to correct problems, you have held broken packages.
我想如果它表明我的包裹坏了,那么
sudo apt --fix-broken install
可能会有所帮助,但无济于事。
那么这是否意味着我不能在不重新安装 Snap 的情况下更新我的 Firefox 或snapd
?