我不断从 sudo 和商店收到此弹出窗口。
steve@ubuntu:~$ sudo apt-get install chromium-browser
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
chromium-browser : Depends: libnss3-1d (>= 3.12.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我该如何解决?
谢谢
答案1
它说你的包损坏了。尝试使用以下方法修复它们sudo apt-get -f install
如果这不能解决您的问题,您可以找出当前处于暂停状态的软件包(可能是您想要的软件所依赖的软件包,即libnss3-1d
):
dpkg --get-selections | grep hold
然后取消暂停(取消)它们并重试安装您想要的软件包:
sudo apt-mark unhold package_name
答案2
除了尝试修复软件包(即sudo apt-get -f install
)之外,您还应该确保您的软件包缓存是最新的。
sudo apt-get update