04我想重新安装快门。
我遵循了在https://www.linuxuprising.com/2018/10/shutter-removed-from-ubuntu-1810-and.html上找到的指示(它也声称在20.04工作)
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt-get update
sudo apt install shutter然而,Shutter仍然不会安装:
~ sudo apt install shutter
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.
shutter : Depends: libgnome2-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.有什么办法让我安装它吗?
sudo apt-cache policy shutter
shutter:
Installed: (none)
Candidate: 0.94.3-1~0linuxuprising1~focal1
Version table:
0.94.3-1~0linuxuprising1~focal1 500
500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal/main amd64 Packages
500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal/main i386 Packages
0.94-1 -1
100 /var/lib/dpkg/status然后尝试安装libgnome2-perl:
libgnome2-perl : Depends: libgnomeui-0 (>= 2.22.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.试图安装这个:
libgnomeui-0 : Depends: libgnome-keyring0 (>= 2.20.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.最后这个
libgnome-keyring0 : Depends: libgnome-keyring-common (= 3.12.0-1build1~0ppa1~focal) but 3.12.0-1build1 is to be installed发布于 2020-06-01 10:55:22
您的sudo apt-cache policy shutter输出显示已经安装了快门的版本(/var/lib/dpkg/status是实际安装的或部分安装的),因此由于依赖关系中断,存在/可能存在更新问题。
在这种情况下,我尝试先删除有问题的包,然后重新安装,首先执行apt-get remove shutter,然后执行dpkg -P shutter,可能是使用--force-depends,然后是apt-get -f install。仔细观察最后一个命令做什么,因为它倾向于删除其他包,这些包也是问题的一部分--有时甚至更多。
在我的系统上,刚刚从18.04升级到20.04,再也没有安装快门,以下三行就足够重新安装快门了(可能是同时修复了一些东西):
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt-get update
sudo apt-get install shutterhttps://askubuntu.com/questions/1236705
复制相似问题