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

bookworm 安装失败,出现“未满足的依赖关系”错误
$ 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

答案1

我联系了背后的开发者ppa:书虫团队/书虫,但显然他不再维护 bookworm。相反,他指出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
    

答案2

这对我来说不起作用。它失败了,因为未满足对的依赖libgranite4
我能够通过添加来安装 bookworm repo ppa:elementary-os/stable,我在这个帖子

答案3

他们的网站有一个解决方法针对此问题。您需要做的是将 elementary-os 存储库也添加到 apt-get:

sudo add-apt-repository ppa:elementary-os/stable
sudo apt-get update
sudo apt-get install com.github.babluboy.bookworm

然后(根据他们的网站)如果你愿意的话,你可以删除 elementary-os:

sudo add-apt-repository -r ppa:elementary-os/stable

答案4

(这是在 ubuntu 16.04 上测试的)
正如Jim G.所说,你必须添加ElementOS 团队PPA 到 apt repo 列表。我不知道为什么,也许这个应用程序适用于 elementary os,但是它有效:

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

第二种选择是安装aptitudeaptitude install。Aptitude 似乎可以处理这种情况:

sudo apt-get install aptitude
sudo aptitude install bookworm

相关内容