在过去的两天里,我尝试使用 sudo 命令更新 Ubuntu 22.04,但出现以下错误:
david@david-XPS-15-9530:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... 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:
libnvidia-compute-390 : Breaks: libnvidia-compute-390:i386 (!= 390.147-0ubuntu1) but 390.151-0ubuntu0.22.04.1 is to be installed
libnvidia-compute-390:i386 : Breaks: libnvidia-compute-390 (!= 390.151-0ubuntu0.22.04.1) but 390.147-0ubuntu1 is to be installed
libnvidia-decode-390 : Breaks: libnvidia-decode-390:i386 (!= 390.147-0ubuntu1) but 390.151-0ubuntu0.22.04.1 is to be installed
libnvidia-decode-390:i386 : Breaks: libnvidia-decode-390 (!= 390.151-0ubuntu0.22.04.1) but 390.147-0ubuntu1 is to be installed
libnvidia-encode-390 : Breaks: libnvidia-encode-390:i386 (!= 390.147-0ubuntu1) but 390.151-0ubuntu0.22.04.1 is to be installed
libnvidia-encode-390:i386 : Breaks: libnvidia-encode-390 (!= 390.151-0ubuntu0.22.04.1) but 390.147-0ubuntu1 is to be installed
libnvidia-fbc1-390 : Breaks: libnvidia-fbc1-390:i386 (!= 390.147-0ubuntu1) but 390.151-0ubuntu0.22.04.1 is to be installed
libnvidia-fbc1-390:i386 : Breaks: libnvidia-fbc1-390 (!= 390.151-0ubuntu0.22.04.1) but 390.147-0ubuntu1 is to be installed
libnvidia-gl-390 : Breaks: libnvidia-gl-390:i386 (!= 390.147-0ubuntu1) but 390.151-0ubuntu0.22.04.1 is to be installed
libnvidia-gl-390:i386 : Breaks: libnvidia-gl-390 (!= 390.151-0ubuntu0.22.04.1) but 390.147-0ubuntu1 is to be installed
libnvidia-ifr1-390 : Breaks: libnvidia-ifr1-390:i386 (!= 390.147-0ubuntu1) but 390.151-0ubuntu0.22.04.1 is to be installed
libnvidia-ifr1-390:i386 : Breaks: libnvidia-ifr1-390 (!= 390.151-0ubuntu0.22.04.1) but 390.147-0ubuntu1 is to be installed
E: Broken packages
david@david-XPS-15-9530:~$
似乎 nvidia-390 库存在问题。我之前运行sudo apt update
过。sudo apt upgrade
有人能帮助我吗?
谢谢,大卫
答案1
sudo apt autoremove
更新和升级前尝试