pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.46k stars 87 forks source link

[21.04] 21.10 Upgrade failed, unable to repair #2218

Open NathanHoyes opened 2 years ago

NathanHoyes commented 2 years ago

Distribution: POP!_OS 21.04

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Issue/Bug Description: Update failed due to dependencies, restarted the OS, and upon reboot there is graphical glitches and the update cannot be resumed via GUI, nor terminal. Shut down results in Kernel Panic 100% of the time.

Here are the error messages from several methods listed online for fixing these issues. Settings -> OS Upgrade & Recovery

list of files which may have been changed:
sources.list
sources.list.d
fstab
...
Originating error cause
failed to update system: client error: calling FetchUpdates method failed: failed to exec 'apt-get full-upgrade --print-uris': status is unknown: exit status: 100

sudo apt dist-upgrade

Note: Upon sudo apt install any of the missing dependencies stated below, they are reported as already installed. Reinstall does not fix the issue.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Error!
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.
 pop-desktop : Depends: pop-session but it is not going to be installed
               Depends: chrome-gnome-shell but it is not going to be installed
               Depends: gdm3 but it is not going to be installed
               Depends: gnome-shell but it is not going to be installed
               Depends: pop-default-settings but it is not going to be installed
               Recommends: gnome-calendar but it is not going to be installed
               Recommends: gnome-contacts but it is not going to be installed
               Recommends: gnome-weather but it is not going to be installed
               Recommends: io.elementary.sideload but it is not installable
               Recommends: gnome-remote-desktop but it is not going to be installed
               Recommends: gnome-shell-extension-prefs but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

pop-upgrade release upgrade

checking if pop-upgrade requires an update
Current Release: 21.04
Upgrading to: 21.10
New version available: 6
Release upgrade status: release upgrade aborted: failed to apply system repair before upgrade
pop-upgrade: calling ReleaseUpgradeFinalize method failed
  caused by: release upgrade cannot be finalized, because a release upgrade was not performed

Steps to reproduce (if you know): Commence OS update via Pop Shop, have it fail due to Python dependencies, and shut down the computer.

Expected behavior: OS updates as expected.

Other Notes: Whilst I remember making a recovery partition upon installing Pop!_OS, the only other boot option is 'vmlinuz_previous' which opens a Ubuntu GRUB command line and nothing more. 'Refresh Install' option is greyed out, and 'Recover OS' option simply says 'checking for updates'. Source list: http://us.archive.ubuntu.com/ubuntu/ Pop_OS Apps microsoft-com-repos-code dl-google-com-linux-chrome-deb Pop-OS PPA sources.list

Finally, I'm new to all of this, if there's any additional information or anything else I must provide, please ask, I will happily do so.

NathanHoyes commented 2 years ago

Live USB repair also didn't work. Nuked the install and started fresh.

Gonna leave this open in case this could be useful in making the update process less sensitive.

Seibz commented 2 years ago

This may help in the future as well https://support.system76.com/articles/upgrade-pop/