无法在Ubuntu 18.04上使用apt安装TensorFlow-nvidia-driver-418上未满足的依赖项

无法在Ubuntu 18.04上使用apt安装TensorFlow-nvidia-driver-418上未满足的依赖项,tensorflow,linux-device-driver,nvidia,Tensorflow,Linux Device Driver,Nvidia,我正在安装TensorFlow 当我尝试运行命令sudo apt get install--no install-envidia-driver-418时,我得到了错误 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requ

我正在安装TensorFlow

当我尝试运行命令
sudo apt get install--no install-envidia-driver-418
时,我得到了错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver-418 : Depends: nvidia-driver-430 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我不是Linux专家,所以驱动程序418依赖于驱动程序430的说法让我非常困惑。

运行:
sudo apt get-f install
修复损坏的软件包。然后
sudo apt update
。之后,按照教程进行操作。最后:

pip3 install tensorflow-gpu

删除已安装的nvidia驱动程序

运行:

然后重试:

sudo apt-get install --no-install-recommends nvidia-driver-418

10.0工具包有一个更新版本;试着用cuda-repo-ubuntu1804\u 10.1.168-1\u amd64.deb代替cuda-repo-ubuntu1804\u 10.0.130-1\u amd64.deb。这太尴尬了:只需要
sudo apt升级
。显然,前面的步骤导致了需要升级的东西。可能与@Michael评论有关。
sudo apt-get install --no-install-recommends nvidia-driver-418