无法升级到 18.04(由于看似无法升级的软件包)?

无法升级到 18.04(由于看似无法升级的软件包)?

尝试将 16.04 升级到 18.04(以下我正在阅读一篇文章,遇到了似乎与未升级软件包有关的问题,但在尝试升级软件包时被告知这些软件包无法升级。下面提供了升级尝试日志,但不确定从中解释问题的最佳方法。任何建议都将不胜感激。

➜  ~ /usr/lib/ubuntu-release-upgrader/check-new-release-gtk
/usr/lib/ubuntu-release-upgrader/check-new-release-gtk:30: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
➜  ~ sudo apt update                                       
....
http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu xenial InRelease                  
Hit:43 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease       
Fetched 326 kB in 2s (125 kB/s)                    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: http://download.ebz.epson.net/dsc/op/stable/debian/dists/lsb3.2/Release.gpg: Signature by key E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56 uses weak digest algorithm (SHA1)
➜  ~ apt list --upgradable                                 
Listing... Done
cuda/unknown 10.1.105-1 amd64 [upgradable from: 9.2.148-1]
cuda-drivers/unknown 418.40.04-1 amd64 [upgradable from: 396.44-1]
➜  ~ sudo apt upgrade cuda cuda-drivers                    
Reading package lists... Done
Building dependency tree       
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:
 cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not going to be installed
                Depends: nvidia-418-dev (>= 418.40.04) but it is not going to be installed
                Depends: libcuda1-418 (>= 418.40.04) but it is not going to be installed
                Depends: nvidia-opencl-icd-418 (>= 418.40.04) but it is not going to be installed
E: Broken packages
➜  ~ sudo apt upgrade                                      
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cuda-command-line-tools-10-0 cuda-command-line-tools-10-1 cuda-compiler-10-0 cuda-compiler-10-1
  ....
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  cuda cuda-drivers
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
➜  ~ sudo apt upgrade cuda cuda-drivers                    
Reading package lists... Done
Building dependency tree       
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:
 cuda-drivers : Depends: nvidia-418 (>= 418.40.04) but it is not going to be installed
                Depends: nvidia-418-dev (>= 418.40.04) but it is not going to be installed
                Depends: libcuda1-418 (>= 418.40.04) but it is not going to be installed
                Depends: nvidia-opencl-icd-418 (>= 418.40.04) but it is not going to be installed
E: Broken packages

答案1

使用此处的答案解决了该问题(https://askubuntu.com/a/602/760862

sudo apt-get install <list of packages kept back>

来自用户 MichaelCrenshaw

相关内容