Estou tentando atualizar, mas encontro erros. Eu inicio a atualização com sudo do-release-upgrade
e tudo corre bem até 98%. Então recebo este erro com um terminal desanexado:
2022-08-16 10:57:21,415 DEBUG Installing 'linux-generic' (linux metapackage may have been accidentally uninstalled)
2022-08-16 10:57:21,779 ERROR not handled exception:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-9ycgla6n/jammy", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-9ycgla6n/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-9ycgla6n/DistUpgrade/DistUpgradeController.py", line 2042, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-9ycgla6n/DistUpgrade/DistUpgradeController.py", line 1991, in fullUpgrade
if not self.calcDistUpgrade():
File "/tmp/ubuntu-release-upgrader-9ycgla6n/DistUpgrade/DistUpgradeController.py", line 1100, in calcDistUpgrade
if not self.cache.installTasks(self.tasks):
AttributeError: 'DistUpgradeController' object has no attribute 'tasks'
Explorando o apt.log, encontrei vários pacotes quebrados como:
Starting pkgProblemResolver with broken count: 55
Starting 2 pkgProblemResolver with broken count: 55
Investigating (0) gnome-shell:amd64 < 3.36.9-0ubuntu0.20.04.2 -> 42.2-0ubuntu0.2 @ii umU Ib >
Broken gnome-shell:amd64 Breaks on gnome-shell-extension-desktop-icons:amd64 < 20.04.0-3~ubuntu20.04.6 @ii mK > (< 21.04)
ou sobre libinvidia-470
:
Investigating (0) libnvidia-compute-470:amd64 < 470.141.03-0ubuntu0.22.04.1 @ii mK Ib >
Broken libnvidia-compute-470:amd64 Conflicts on libcuda-10.0-1:amd64 < none @un H >
Conflicts//Breaks against version 515.65.01-0ubuntu0.22.04.1 for libnvidia-compute-515-server but that is not InstVer, ignoring
Conflicts//Breaks against version 515.65.01-0ubuntu0.22.04.1 for libnvidia-compute-515 but that is not InstVer, ignoring
Conflicts//Breaks against version 510.85.02-0ubuntu0.22.04.1 for libnvidia-compute-510-server but that is not InstVer, ignoring
Considering libnvidia-compute-510:amd64 3 as a solution to libnvidia-compute-470:amd64 4
Added libnvidia-compute-510:amd64 to the remove list
completoprincipal.logeapt.logEstão disponíveis.
Minha máquina tem:
SO: Ubuntu 20.04.4 LTS x86_64; Kernel: 5.15.0-46-genérico; Pacotes: 3896 (dpkg), 34 (snap); Concha: bash 5.0.17; DE: GNOME; Mestre: Wayland; WM: Murmúrio; Terminal: terminal gnome; CPU: Intel i7-4910MQ (8) a 2.900 GHz; GPU: NVIDIA GeForce GT 730M; GPU: processador Intel Core de 4ª geração; Memória: 4180MiB/15879MiB.
Obrigado por qualquer entrada!
EDIT: correção de um comando.
Responder1
Apenas corra:
sudo python3 -m pip uninstall distro-info
sudo apt reinstall python3-distro-info
Verifique também este relatório de bug:do-release-upgrade falha 19.10-> 20.04 AttributeError: o objeto 'UbuntuDistroInfo' não tem atributo 'versão'