首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu 20.04上安装linuxuprising上的Shutter时出现的“坏包”错误

在Ubuntu 20.04上安装linuxuprising上的Shutter时出现的“坏包”错误
EN

Ask Ubuntu用户
提问于 2020-05-07 17:40:07
回答 1查看 1.5K关注 0票数 2

04我想重新安装快门。

我遵循了在https://www.linuxuprising.com/2018/10/shutter-removed-from-ubuntu-1810-and.html上找到的指示(它也声称在20.04工作)

代码语言:javascript
复制
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt-get update
sudo apt install shutter

然而,Shutter仍然不会安装:

代码语言:javascript
复制
 ~  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.

有什么办法让我安装它吗?

编辑

代码语言:javascript
复制
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

代码语言:javascript
复制
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.

试图安装这个:

代码语言:javascript
复制
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.

最后这个

代码语言:javascript
复制
libgnome-keyring0 : Depends: libgnome-keyring-common (= 3.12.0-1build1~0ppa1~focal) but 3.12.0-1build1 is to be installed
EN

回答 1

Ask Ubuntu用户

发布于 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,再也没有安装快门,以下三行就足够重新安装快门了(可能是同时修复了一些东西):

代码语言:javascript
复制
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt-get update
sudo apt-get install shutter
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1236705

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档