Обновление Ubuntu до 20.04 прервано из-за внезапного перезапуска системы

Я обновлял свою Ubuntu с 18.04 LTS до 20.04 LTS, следуя стандартной процедуре с использованием терминала. Я написал следующие команды:

sudo apt update && sudo apt upgrade
sudo do-release-upgrade -d

Вторая команда загрузила пакеты Ubuntu 20.04 LTS (размер загрузки ~ 1,5 ГБ). За этим последовало начало установки пакетов, когда я использовал браузер Chrome. Система подверглась внезапному перезапуску и застряла в цикле входа в систему, поэтому мне пришлось принудительно перезапустить его. Теперь у меня сломаны пакеты Ubuntu 20.04 в моей системе. Вот что я получаю, запустив

sudo apt-get install --fix-broken

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
bluetooth : Depends: blues
gnome-bluetooth : Depends: bluez (>= 5.5)
gtk2-engines-murrine:i386 : Depends: libglib2.0-0:i386 (>= 2.37.3) but it is not installed
indicator-bluetooth : Depends: bluez (>= 5)
libatk-adaptor:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not installed
libatk-bridge2.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.41.1) but it is not installed
libatk1.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.55.2) but it is not installed
libatspi2.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.37.3) but it is not installed
libcanberra-gtk-module:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not installed
libcanberra-gtk0:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not installed
libgail-common:i386 : Depends: libglib2.0-0:i386 (>= 2.37.3) but it is not installed
libgail18:i386 : Depends: libglib2.0-0:i386 (>= 2.27.3) but it is not installed
libgdk-pixbuf2.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.48.0) but it is not installed
libgtk2.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.41.1) but it is not installed
libharfbuzz0b:i386 : Depends: libglib2.0-0:i386 (>= 2.31.8) but it is not installed
libnss-systemd : Depends: systemd (= 237-3ubuntu10.41)
libpam-systemd : Depends: systemd (= 237-3ubuntu10.41)
libpango-1.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.37.3) but it is not installed
libpangocairo-1.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.37.3) but it is not installed
libpangoft2-1.0-0:i386 : Depends: libglib2.0-0:i386 (>= 2.37.3) but it is not installed
pulseaudio-module-bluetooth : Depends: bluez (>= 5.23)
systemd : Depends: libsystemd0 (= 245.4-4ubuntu3.1) but 237-3ubuntu10.41 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

. Я попытался снова запустить sudo do-release-upgrade -d , но выдает ту же ошибку и просит меня запустить sudo apt-get install --fix разбитым . Кроме того, в моей системе еще нет функций Ubuntu 20.04 LTS, Все как и прежде, сохраните это

Ubuntu Version 20.04

Также на скриншоте (как вы, возможно, можете наблюдать) есть ошибка (!) в правом верхнем углу, которая читается следующим образом:

enter image description here

Любая помощь будет принята с благодарностью. Пожалуйста, дайте мне знать, если есть способ решить эту проблему.

0
задан 22 June 2020 в 11:24

1 ответ

For anyone facing such issues in the future.

  1. I used sudo rm -rvf /var/lib/apt/lists/* to release all the held packages, followed by sudo apt-get install -f. Note in the second step, depending on which of your packages had unmet dependencies, it's possible that you might be deleting some of the very essential packages like settings and log in.

  2. This is the most important step. Your system has now several packages that need to get installed (as you have cleared the row of broken packages). For this following 3 commands will do.

     sudo apt-get update
     sudo apt-get upgrade 
     sudo apt-get dist-upgrade
    

Following this, your computer might need a restart, and then everything should get fixed. Hope this helps someone!

0
ответ дан 30 July 2020 в 22:22

Другие вопросы по тегам:

Похожие вопросы: