包裹系统在CUDA安装后损坏,Ubunutu 14.04。

时间:2020-12-10 00:17:04

I had some trouble with GROMACS not recognizing my graphics card when my drivers were updated automatically which led to a fresh installation of Ubuntu 14.04. The problems persisted so I thought I would install CUDA and compile GROMACS manually.

当我的驱动程序被自动更新后,我在GROMACS没有认出我的图形卡时遇到了一些麻烦,这导致了Ubuntu 14.04的新安装。问题一直存在,所以我想我会安装CUDA并手动编译GROMACS。

I started with CUDA, following the online guide for Ubuntu and I ran:

我从CUDA开始,跟随Ubuntu的在线指南,我跑了:

sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb

and i then tried installing CUDA by running:

然后我试着通过跑步来安装CUDA:

sudo apt-get update
sudo apt-get install cuda

I got an error:

我得到了一个错误:

(gconftool-2:24440): GConf-WARNING **: Client failed to connect to the D-BUS daemon: //bin/dbus-launch terminated abnormally with the following error: No protocol specified Autolaunch error: X11 initialization failed.

Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for fontconfig (2.11.0-0ubuntu4.1) ... E: Sub-process /usr/bin/dpkg returned an error code (1)

and then I started getting errors from the Ubuntu Software Centre saying that the package system is broken. From what I understand this was caused due to the nvidia repository.

然后我开始从Ubuntu软件中心出错,说软件包系统坏了。据我所知,这是由于nvidia存储库造成的。

I tried:

我试着:

sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update

but to no avail. I got:

但无济于事。我有:

Preparing to unpack .../nvidia-opencl-icd-346_346.46-0ubuntu1_amd64.deb ... Unpacking nvidia-opencl-icd-346 (346.46-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/nvidia-opencl-icd-346_346.46-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/etc/OpenCL/vendors/nvidia.icd', which is also in package nvidia-opencl-icd-331 331.113-0ubuntu0.0.4 E: Sub-process /usr/bin/dpkg returned an error code (1)

准备打开…/nvidia-opencl- 346_346.46-0ubuntu1_amd64.deb…开箱nvidia - opencl icd - 346(346.46 0 ubuntu1)……dpkg:错误处理归档文件/var/cache/apt/archives/nvidia-opencl- OpenCL - OpenCL - OpenCL - OpenCL - OpenCL -- - OpenCL -- - OpenCL -- -- -346_346.46-0ubuntu1_amd64.deb (- unpack):试图覆盖“/etc/OpenCL/供应商/nvidia”。icd',也在包nvidia-opencl-icd-331 331.113-0ubuntu0.0.4 E: Sub-process /usr/bin/dpkg返回一个错误代码(1)

and

dpkg: dependency problems prevent configuration of cuda-drivers: cuda-drivers depends on nvidia-opencl-icd-346 (>= 346.46); however: Package nvidia-opencl-icd-346 is not installed.

dpkg:依赖问题防止cuda驱动程序的配置:cuda驱动程序依赖于nvidia-opencl-icd-346 (>= 346.46);但是,没有安装nvidia-opencl-icd-346包。

dpkg: error processing package cuda-drivers (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of cuda-runtime-7-0: cuda-runtime-7-0 depends on cuda-drivers (>= 346.46); however: Package cuda-drivers is not configured yet.

dpkg:错误处理包cuda-drivers (- configure):依赖性问题-未配置的dpkg:依赖问题防止cuda- runtime7 -0的配置:cuda- runtime7 -0依赖于cuda-驱动程序(>= 346.46);然而:软件包cuda-驱动程序还没有配置。

dpkg: error processing package cuda-runtime-7-0 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of cuda-7-0: cuda-7-0 depends on cuda-runtime-7-0 (= 7.0-28); however: Package cuda-runtime-7-0 is not configured yet.

dpkg:错误处理包cuda-runtime-7-0(-配置):依赖问题-未配置的dpkg:依赖问题防止cuda-7-0的配置:cuda-7-0依赖于cuda- runtime7 -0 (= 7.0-28);但是:包cuda- runtime7 -0还没有配置。

dpkg: error processing package cuda-7-0 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of cuda: cuda depends on cuda-7-0 (= 7.0-28); however: Package cuda-7-0 is not configured yet.

dpkg:错误处理包cuda-7-0(-配置):依赖问题-未配置的dpkg:依赖问题防止cuda配置:cuda依赖cuda-7-0 (= 7.0-28);但是:包cuda-7-0还没有配置。

dpkg: error processing package cuda (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: cuda-drivers cuda-runtime-7-0 cuda-7-0 cuda

dpkg:错误处理包cuda(——配置):依赖问题—在处理过程中遇到未配置的错误:cuda-驱动器cuda- runtime7 -0 cuda-7-0 cuda。

I also tried removing the nvidia repository by trying:

我也尝试过删除nvidia的存储库:

sudo add-apt-repository --remove ppa:cuda-repo-ubuntu1404_7.0-28_amd64.deb

but I got:

但我有:

Cannot add PPA: 'ppa:cuda-repo-ubuntu1404_7.0-28_amd64.deb'. Please check that the PPA name or format is correct.

无法添加PPA:“PPA:cuda-repo-ubuntu1404_7.0-28_amd64.deb’。请检查PPA名称或格式是否正确。

I don't know what to do to fix it. Any ideas please? Thanks in advance.

我不知道该怎么修理它。有什么想法吗?提前谢谢。

1 个解决方案

#1


1  

This one worked, just removed the nvidia repository as described here:

这一项工作,刚刚删除了nvidia存储库如下所述:

https://askubuntu.com/questions/43345/how-to-remove-a-repository

https://askubuntu.com/questions/43345/how-to-remove-a-repository

#1


1  

This one worked, just removed the nvidia repository as described here:

这一项工作,刚刚删除了nvidia存储库如下所述:

https://askubuntu.com/questions/43345/how-to-remove-a-repository

https://askubuntu.com/questions/43345/how-to-remove-a-repository