书呆子安装失败,出现“未满足的依赖关系”错误

$ apt install bookworm 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: bookworm : Depends: libgranite3 (>= 0.2.0) but it is not installable E: Unable to correct problems, you have held broken packages. 

 $ apt policy bookworm libgranite3 bookworm: Installed: (none) Candidate: 0.6-0~42~ubuntu16.04.1 Version table: 0.6-0~42~ubuntu16.04.1 500 500 http://ppa.launchpad.net/bookworm-team/bookworm/ubuntu xenial/main amd64 Packages libgranite3: Installed: (none) Candidate: (none) Version table: 

 $ lsb_release -sd Ubuntu 16.04.3 LTS 

我联系了ppa背后的开发人员:书虫团队/书虫 ,但显然他不再维持书虫了 。 相反,他把我指向了ppa:bablu-boy / bookworm-daily ,软件可以处于维护状态。

要卸载(跟踪)旧程序并删除有故障的PPA,请按照下列步骤操作:

  • 卸载程序

     sudo apt remove bookworm 
  • 删除旧的PPA

     sudo add-apt-repository -r ppa:bookworm-team/bookworm 

要添加新PPA并安装程序,请执行以下操作:

  • 添加新的PPA

     sudo add-apt-repository ppa:bablu-boy/bookworm-daily 
  • 更新包源

     sudo apt update 
  • 安装bookworm

     sudo apt install bookworm 

这对我不起作用。 由于对libgranite4依赖libgranite4未得到满足,它失败了。
通过添加repo ppa:elementary-os/stable ,我能够安装书虫,我在这篇文章中找到了它 。

(这是在ubuntu 16.04上测试的)
正如Jim G.所说,你必须将初级OS团队 PPA添加到apt repo列表中。 我不知道为什么,也许这个应用程序是基本的操作系统,但这工作:

 sudo add-apt-repository ppa:elementary-os/stable sudo apt-get update sudo apt-get install bookworm 

第二个选项是安装aptitude然后aptitude install它。 能力似乎处理这种情况:

 sudo apt-get install aptitude sudo aptitude install bookworm