Я пытаюсь обновиться, но получаю ошибки. Я запускаю обновление с помощью sudo do-release-upgrade
, и оно проходит гладко до 98%. Затем я получаю эту ошибку с отсоединенным терминалом:
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'
Исследуя apt.log, я обнаружил ряд неработающих пакетов, таких как:
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)
или о 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
полныйосновной.журналиapt.logдоступны.
Моя машина имеет:
ОС: Ubuntu 20.04.4 LTS x86_64; Ядро: 5.15.0-46-generic; Пакеты: 3896 (dpkg), 34 (snap); Оболочка: bash 5.0.17; DE: GNOME; DM: Wayland; WM: Mutter; Терминал: gnome-terminal; ЦП: Intel i7-4910MQ (8) @ 2.900GHz; ГП: NVIDIA GeForce GT 730M; ГП: Intel Core Processor 4th Gen; Память: 4180 МБ / 15879 МБ.
Спасибо за любой вклад!
EDIT: исправление команды.
решение1
Просто беги:
sudo python3 -m pip uninstall distro-info
sudo apt reinstall python3-distro-info
Также проверьте этот отчет об ошибке:do-release-upgrade завершается неудачей 19.10->20.04 AttributeError: объект «UbuntuDistroInfo» не имеет атрибута «версия»