使用 sudo apt-get install 时未满足所有依赖关系

使用 sudo apt-get install 时未满足所有依赖关系

我在 chromebook 上使用 crouton 运行 Ubuntu 16.04。每当我安装新的 chroot 并首次加载 linux 时,有时安装工作正常,但每次我加载后总是出现未满足的依赖性错误,如下所示:

Reading package lists...Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies
account-plugin-facebook: Depends : libaccount-plugin-generic-ouath but it is not going to be installed or ubuntu-system-settings-online-accounts but it is not going to be installed

libxft: Predepends: multiarch-support but it is not going to be installed

除了大约 30 或 40 个。我试过

sudo apt-get -f install

sudo dpkg configure -a

sudo apt-get remove {insert dependency here}

但每次它都只是说同样的事情并列出依赖项。我该怎么办?

答案1

遇到该问题时,我会卸载导致问题的软件包,然后尝试重新安装。就你的情况而言,问题似乎是account-plugin-facebook,因此请尝试

sudo apt purge account-plugin-facebook

如果失败,请尝试dpkg

sudo dpkg --remove account-plugin-facebook

然后尝试再次安装

sudo apt install account-plugin-facebook

相关内容