例如:
$ sudo apt-get install curl
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:
bsh : Depends: libjline-java but it is not going to be installed
groovy : Depends: libjline-java but it is not going to be installed
rhino : Depends: libjline-java but it is not going to be installed
E: Unmet dependencies.
Try 'apt-get -f install' with no packages …Run Code Online (Sandbox Code Playgroud) 我最近没有安装任何新软件包或添加任何 PPA,只是运行了 apt 更新。
运行“apt升级”后
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libglvnd-dev : Depends: libglvnd0 (= 1.0.0-2ubuntu2.1) but 1.0.0-2ubuntu2.2 is installed
Depends: libglvnd-core-dev (= 1.0.0-2ubuntu2.1) but 1.0.0-2ubuntu2.2 is installed
Depends: libegl1 (= 1.0.0-2ubuntu2.1) but 1.0.0-2ubuntu2.2 is installed
Depends: libgles2 (= 1.0.0-2ubuntu2.1) but 1.0.0-2ubuntu2.2 is installed
Depends: libgl1 (= 1.0.0-2ubuntu2.1) but 1.0.0-2ubuntu2.2 is installed
Depends: libglx0 (= 1.0.0-2ubuntu2.1) but …Run Code Online (Sandbox Code Playgroud) 我在工作中使用搅拌机,并将我的 Ubuntu 升级到 18.04。升级后,我安装了 CUDA 工具包,但现在我收到有关依赖项的错误,我想删除我安装的所有内容。我该怎么做?
mehman@HP:/opt$ sudo apt autoremove
Reading package lists...
Done Building dependency tree
Reading state information...
Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libcuinj64-9.1 : Depends: libcuda1 (>= 387.26) but it is not installable or
libcuda-9.1-1 E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
mehman@HP:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... …Run Code Online (Sandbox Code Playgroud)