Ubuntu CUDA安装尝试Ubunutu 14.04后包装系统损坏

Ubuntu CUDA安装尝试Ubunutu 14.04后包装系统损坏,ubuntu,cuda,Ubuntu,Cuda,当我的驱动程序被自动更新时,GROMACS无法识别我的图形卡,这导致了Ubuntu 14.04的新安装,我遇到了一些麻烦。问题依然存在,所以我想我应该安装CUDA并手动编译GROMACS 我从CUDA开始,遵循Ubuntu的在线程序,然后运行: sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb 然后我尝试通过运行以下命令来安装CUDA: sudo apt-get update sudo apt-get install cuda 我有一个错误

当我的驱动程序被自动更新时,GROMACS无法识别我的图形卡,这导致了Ubuntu 14.04的新安装,我遇到了一些麻烦。问题依然存在,所以我想我应该安装CUDA并手动编译GROMACS

我从CUDA开始,遵循Ubuntu的在线程序,然后运行:

sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
然后我尝试通过运行以下命令来安装CUDA:

sudo apt-get update
sudo apt-get install cuda
我有一个错误:

(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)
然后我开始从Ubuntu软件中心收到错误,说软件包系统坏了。据我所知,这是由于英伟达仓库。

我试过:

sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update
但是没有用。我得到:

正在准备拆包…/nvidia-opencl-icd-346_346.46-0ubuntu1_amd64.deb。。。 打开nvidia-opencl-icd-346(346.46-0ubuntu1)的包装。。。 dpkg:处理归档文件/var/cache/apt/archives/nvidia-opencl-icd-346_346.46-0ubuntu1_amd64.deb时出错(--解包): 正在尝试覆盖“/etc/OpenCL/vendors/nvidia.icd”,它也在包nvidia-OpenCL-icd-331.113-0ubuntu0.0.4中 E:子流程/usr/bin/dpkg返回错误代码(1)

dpkg:依赖性问题阻止配置cuda驱动程序: cuda驱动程序依赖于nvidia-opencl-icd-346(>=346.46);然而: 未安装程序包nvidia-opencl-icd-346

dpkg:处理程序包cuda驱动程序时出错(--configure): 依赖关系问题-保持未配置状态 dpkg:依赖关系问题阻止配置cuda-runtime-7-0: cuda-runtime-7-0依赖于cuda驱动程序(>=346.46);然而: 尚未配置软件包cuda驱动程序

dpkg:处理程序包cuda-runtime-7-0(-configure)时出错: 依赖关系问题-保持未配置状态 dpkg:依赖性问题阻止配置cuda-7-0: cuda-7-0依赖于cuda-runtime-7-0(=7.0-28);然而: 尚未配置包cuda-runtime-7-0

dpkg:错误处理包cuda-7-0(--配置): 依赖关系问题-保持未配置状态 dpkg:依赖性问题阻止cuda的配置: cuda依赖于cuda-7-0(=7.0-28);然而: 尚未配置软件包cuda-7-0

dpkg:处理包cuda时出错(--configure): 依赖关系问题-保持未配置状态 处理时遇到错误: cuda驱动程序 cuda-runtime-7-0 cuda-7-0 库达

<>我也尝试过尝试删除英伟达的存储库:

sudo add-apt-repository --remove ppa:cuda-repo-ubuntu1404_7.0-28_amd64.deb
但我得到了:

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


我不知道该怎么做才能把它修好。有什么想法吗?谢谢。

这个工作,刚刚删除英伟达存储库,如这里所描述的: