BON*_*PIE 1 xubuntu apt dependencies
当我尝试下载东西时,我使用
sudo apt-get install/upgrade (package)
Run Code Online (Sandbox Code Playgroud)
但是,这给了我错误消息:
$ sudo apt-get upgrade
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:
google-chrome-stable : Depends: libpango1.0-0 (>= 1.14.0) but it is not installed
Depends: libappindicator1 but it is not installed
E: Unmet dependencies. Try using -f.
Run Code Online (Sandbox Code Playgroud)
所以,我尝试使用-f.
sudo apt-get -f install (package)
Run Code Online (Sandbox Code Playgroud)
并且仍然有错误消息。
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:
0ad : Depends: 0ad-data (>= 0.0.20) but it is not going to be nstalled
Depends: 0ad-data (<= 0.0.20-1) but it is not going to be installed
Depends: 0ad-data-common (>= 0.0.20) but it is not going to be installed
Depends: 0ad-data-common (<= 0.0.20-1) but it is not going to be installed
Depends: libenet7 but it is not going to be installed
Depends: libgloox13v5 but it is not going to be installed
Depends: libnvtt2 but it is not going to be installed
Depends: libopenal1 (>= 1.14) but it is not going to be installed
Depends: libsdl2-2.0-0 (>= 2.0.4) but it is not going to be installed
Depends: libwxbase3.0-0v5 (>= 3.0.2+dfsg) but it is not going to be installed
Depends: libwxgtk3.0-0v5 (>= 3.0.2+dfsg) but it is not going to be installed
google-chrome-stable : Depends: libpango1.0-0 (>= 1.14.0) but it is not going to be installed
Depends: libappindicator1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
好吧,这是一个典型的依赖混乱案例。
首先,转到您的软件源应用程序并确保main、universe和multiverse(可选)均已启用。
然后,返回终端并运行以下命令来刷新包缓存:
sudo apt update
Run Code Online (Sandbox Code Playgroud)
按照如下所示使用这些命令来升级您的系统并清理您的依赖混乱:
sudo apt -f install
sudo apt full-upgrade
sudo apt -f install
Run Code Online (Sandbox Code Playgroud)
如果这仍然不起作用,我们将不得不求助于其他工具,即aptitude. 由于您的apt损坏,我们将不得不手动安装它。访问此页面并选择最合适的版本aptitude并下载。这很可能是xenial amd64,但请检查您的系统。
然后,运行以下命令aptitude在您的系统上安装:
sudo dpkg -i <whatever you downloaded>.deb
Run Code Online (Sandbox Code Playgroud)
然后,运行:
sudo aptitude -f
Run Code Online (Sandbox Code Playgroud)
Aptitude 的依赖性解析/修复系统比 Apt 的稍微复杂一些,因此更有可能修复您可能遇到的任何问题。
| 归档时间: |
|
| 查看次数: |
60015 次 |
| 最近记录: |