相关疑难解决方法(0)

dpkg 错误:“试图覆盖文件,该文件也在……”

例如:

$ 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)

apt dpkg software-installation

146
推荐指数
3
解决办法
15万
查看次数

损坏的 apt,由于未满足的依赖项而无法更新 libglvnd (Nvidia)

我最近没有安装任何新软件包或添加任何 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)

apt nvidia dependencies budgie 18.04

13
推荐指数
2
解决办法
8111
查看次数

安装时出现CUDA错误,帮助卸载

我在工作中使用搅拌机,并将我的 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)

uninstall nvidia cuda

5
推荐指数
1
解决办法
6855
查看次数