Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 22.04 fails (failed to downgrade packages) #320

Closed
dlschmidt opened this issue May 13, 2022 · 82 comments
Closed

Upgrade to 22.04 fails (failed to downgrade packages) #320

dlschmidt opened this issue May 13, 2022 · 82 comments

Comments

@dlschmidt
Copy link

Distribution (run cat /etc/os-release):
NAME="Pop!_OS"
VERSION="21.10"

Issue/Bug Description:
After clicking the "Downloading Pop!_OS 22.04"-Button in OS Upgrade & Recovery, the following error is shown:
failed to upgrade OS: client error: failed to downgrade packages

But when I follow all the suggested comments in order like "apt clean", "apt update -m" and so on, no error will be prompted.

Steps to reproduce (if you know):
I just used regularly "apt-get update" and "apt-get upgrade" and installed some must-have applications like VSCode via .deb packages.

@dlschmidt dlschmidt changed the title Upgrade to 22.04 fails Upgrade to 22.04 fails (failed to downgrade packages) May 13, 2022
@ckallum
Copy link

ckallum commented May 14, 2022

Have the same issue +1

@mbaske
Copy link

mbaske commented May 14, 2022

Same error here. Possibly related to mono / xamarin. I'm attaching the corresponding logs
logs.zip
.

@dlschmidt
Copy link
Author

@mbaske Can I ask you how you retrieved those logs? I would then post my logs aswell.

@mbaske
Copy link

mbaske commented May 14, 2022

dlschmidt The logs are stored in /var/log/apt/history.log and /var/log/syslog

@dlschmidt
Copy link
Author

This shows my /var/log/syslog

pop-upgrade[9151]: The following packages have unmet dependencies:
pop-upgrade[9151]:  evolution-data-server : Depends: libcamel-1.2-62 (= 3.40.4-1) but 3.40.4-1ubuntu1 is to be installed
pop-upgrade[9151]:  gir1.2-totem-1.0 : Depends: gir1.2-totemplparser-1.0 (>= 3.26.5) but it is not going to be installed
pop-upgrade[9151]:  grilo-plugins-0.3-base : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
pop-upgrade[9151]:  grilo-plugins-0.3-extra : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
pop-upgrade[9151]:                            Recommends: dleyna-server but it is not going to be installed
pop-upgrade[9151]:  libatkmm-1.6-1v5 : Depends: libglibmm-2.4-1v5 (>= 2.66.2) but 2.64.2-2build1 is to be installed
pop-upgrade[9151]:  libgrilo-0.3-0 : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
pop-upgrade[9151]:  libgtkmm-3.0-1v5 : Depends: libglibmm-2.4-1v5 (>= 2.66.2) but 2.64.2-2build1 is to be installed
pop-upgrade[9151]:                     Depends: libpangomm-1.4-1v5 (>= 2.46.2) but 2.46.1-1 is to be installed
pop-upgrade[9151]:  libgupnp-av-1.0-3 : Breaks: libgupnp-av-1.0-2 (< 0.14) but 0.12.11-3 is to be installed
pop-upgrade[9151]:  libgupnp-dlna-2.0-4 : Breaks: libgupnp-dlna-2.0-3 (< 0.12) but 0.10.5-4build1 is to be installed
pop-upgrade[9151]:  libmutter-8-0 : Depends: mutter-common (>= 40.5-1ubuntu3~21.10.1pop0~1637764129~21.10~854fcec) but 40.5-1ubuntu3~21.10.1 is to be installed
pop-upgrade[9151]:  libnet-ssleay-perl : Depends: perl-openssl-abi-1.1
pop-upgrade[9151]:  libtotem0 : Depends: libtotem-plparser18 (>= 3.26.5) but it is not going to be installed
pop-upgrade[9151]:  libvncserver1 : Depends: libgcrypt20 (>= 1.9.0) but 1.8.7-5ubuntu2 is to be installed
pop-upgrade[9151]:                  Depends: libgnutls30 (>= 3.7.2) but 3.7.1-5ubuntu1 is to be installed
pop-upgrade[9151]:  libwww-perl : Depends: libhtml-parser-perl but it is not going to be installed
pop-upgrade[9151]:                Depends: libhtml-tree-perl but it is not going to be installed
pop-upgrade[9151]:                Recommends: libhtml-form-perl but it is not going to be installed
pop-upgrade[9151]:                Recommends: libhtml-format-perl but it is not going to be installed
pop-upgrade[9151]:  libxslt1.1 : Depends: libgcrypt20 (>= 1.9.0) but 1.8.7-5ubuntu2 is to be installed
pop-upgrade[9151]:  totem : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
pop-upgrade[9151]:  tracker-extract : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
pop-upgrade[9151]:  xorg : Depends: x11-apps but it is not going to be installed
pop-upgrade[9151]:  xserver-xorg-video-all : Depends: xserver-xorg-video-vmware but it is not going to be installed```

@wanjas
Copy link

wanjas commented May 16, 2022

I have exactly the same error log as @dlschmidt

@Lost-n-thought
Copy link

I had the same issue
2022-05-15_18-52
But when i used timeshift to revert to 13-05-22 backup I no longer had that problem and was able to upgrade sucessfully

@stephenlauck
Copy link

Also having this issue from the command line pop-upgrade 21.10 -> 22.04:

checking if pop-upgrade requires an update
Current Release: 21.10
Upgrading to: 22.04
New version available: 6
Recovery event: fetching recovery files
Recovery upgrade status: recovery partition refueled and ready to go
Event: updating package lists
Event: upgrading packages for the current release
Event: fetching updated packages for the current release
Release upgrade status: release upgrade aborted: failed to downgrade packages

@mmstick
Copy link
Member

mmstick commented May 16, 2022

If everyone could share their complete logs from /var/log/syslog and journalctl -u pop-upgrade, that would enable me to find the packages responsible for the conflict.

@mbaske
Copy link

mbaske commented May 16, 2022

Attaching output from "journalctl -u pop-upgrade"
journalctl -u pop-upgrade.zip

@mmstick
Copy link
Member

mmstick commented May 16, 2022

That one indicates an issue with trying to recover the system state after removing a mono PPA.

@mmstick
Copy link
Member

mmstick commented May 16, 2022

That looks like a system that's already partially upgraded to 22.04, and it's failing to downgrade packages back to 21.10 versions.

dpkg: warning: downgrading pop-upgrade from 1.0.0~1652366757~22.04~484fc99 to 1.0.0~1652366757~21.10~484fc99

@mmstick
Copy link
Member

mmstick commented May 16, 2022

Going backwards will be more difficult than going forward. I'd perhaps recommend trying to upgrade manually. Switch all the apt sources in /etc/apt/sources.list.d/ from impish to jammy, switch to another TTY, apt update and run the upgrade script at /usr/lib/pop-upgrade/upgrade.sh. Any errors that the script can't handle may require manual intervention.

@ckallum
Copy link

ckallum commented May 16, 2022

or been moved out of Incoming.
May 16 23:52:33 pop-os pop-upgrade[162776]: The following information may help to resolve the situation:
May 16 23:52:33 pop-os pop-upgrade[162776]: The following packages have unmet dependencies:
May 16 23:52:33 pop-os pop-upgrade[162776]:  evolution-data-server : Depends: libcamel-1.2-62 (= 3.40.4-1) but 3.40.4-1ubuntu1 is to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:  libnet-ssleay-perl : Depends: perl-openssl-abi-1.1
May 16 23:52:33 pop-os pop-upgrade[162776]:  libwww-perl : Depends: libhtml-parser-perl but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:                Depends: libhtml-tree-perl but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:                Recommends: libhtml-form-perl but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:                Recommends: libhtml-format-perl but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:  libxslt1.1 : Depends: libgcrypt20 (>= 1.9.0) but 1.8.7-5ubuntu2 is to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:  pop-desktop : Depends: gnome-online-miners but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:                Recommends: io.elementary.sideload but it is not installable
May 16 23:52:33 pop-os pop-upgrade[162776]:                Recommends: pop-shop but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:                Recommends: totem but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:                Recommends: flatpak but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]:  tracker-extract : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
May 16 23:52:33 pop-os pop-upgrade[162776]: E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
May 16 23:52:33 pop-os pop-upgrade[161485]: [INFO ] daemon/mod.rs:348: upgrade result: Err(Downgrade(apt-get downgrade
May 16 23:52:33 pop-os pop-upgrade[161485]: Caused by:
May 16 23:52:33 pop-os pop-upgrade[161485]:     status is unknown: exit status: 100))
May 16 23:52:33 pop-os pop-upgrade[162781]: Canceled hold on pop-upgrade.
May 16 23:52:33 pop-os pop-upgrade[161485]: [INFO ] daemon/mod.rs:352: setting upgrade state

@HoodyHuo
Copy link

this my log , same erro

5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: Reading package lists...
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: Building dependency tree...
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: Reading state information...
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: Some packages could not be installed. This may mean that you have
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: requested an impossible situation or if you are using the unstable
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: distribution that some required packages have not yet been created
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: or been moved out of Incoming.
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: The following information may help to resolve the situation:
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: The following packages have unmet dependencies:
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  brasero : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  evolution-data-server : Depends: libcamel-1.2-62 (= 3.40.4-1) but 3.40.4-1ubuntu1 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  gir1.2-totem-1.0 : Depends: gir1.2-totemplparser-1.0 (>= 3.26.5) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  gnome-remote-desktop : Depends: libvncserver1 (>= 0.9.10) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  grilo-plugins-0.3-base : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  grilo-plugins-0.3-extra : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:                            Recommends: dleyna-server but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libatkmm-1.6-1v5 : Depends: libglibmm-2.4-1v5 (>= 2.66.2) but 2.64.2-2build1 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libavdevice58 : Depends: libopenal1 (>= 1.14) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libbrasero-media3-1 : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libgrilo-0.3-0 : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libgtkmm-3.0-1v5 : Depends: libglibmm-2.4-1v5 (>= 2.66.2) but 2.64.2-2build1 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:                     Depends: libpangomm-1.4-1v5 (>= 2.46.2) but 2.46.1-1 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libgupnp-av-1.0-3 : Breaks: libgupnp-av-1.0-2 (< 0.14) but 0.12.11-3 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libgupnp-dlna-2.0-4 : Breaks: libgupnp-dlna-2.0-3 (< 0.12) but 0.10.5-4build1 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libmutter-8-0 : Depends: mutter-common (>= 40.5-1ubuntu3~21.10.1pop0~1637764129~21.10~854fcec) but 40.5-1ubuntu3~21.10.1 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libnet-ssleay-perl : Depends: perl-openssl-abi-1.1
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libopenal1:i386 : Depends: libsndio7.0:i386 (>= 1.8.1) but 1.5.0-3 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libpulse0 : Depends: libwrap0 (>= 7.6-4~) but it is not installable
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libsnmp40 : Depends: libwrap0 (>= 7.6-4~) but it is not installable
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libtotem0 : Depends: libtotem-plparser18 (>= 3.26.5) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libwww-perl : Depends: libhtml-parser-perl but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:                Depends: libhtml-tree-perl but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:                Recommends: libhtml-form-perl but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:                Recommends: libhtml-format-perl but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  libxslt1.1 : Depends: libgcrypt20 (>= 1.9.0) but 1.8.7-5ubuntu2 is to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  openssh-server : Depends: libwrap0 (>= 7.6-4~) but it is not installable
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  totem : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  tracker-extract : Depends: libtotem-plparser18 (>= 3.26.0) but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  xorg : Depends: x11-apps but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]:  xserver-xorg-video-all : Depends: xserver-xorg-video-vmware but it is not going to be installed
5月 17 11:43:28 hoody-g14 pop-upgrade[9122]: E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
5月 17 11:43:28 hoody-g14 pop-upgrade[2445]: [INFO ] daemon/mod.rs:348: upgrade result: Err(Downgrade(apt-get downgrade
5月 17 11:43:28 hoody-g14 pop-upgrade[2445]: Caused by:
5月 17 11:43:28 hoody-g14 pop-upgrade[2445]:     status is unknown: exit status: 100))
5月 17 11:43:28 hoody-g14 pop-upgrade[9126]: Canceled hold on pop-upgrade.
5月 17 11:43:28 hoody-g14 pop-upgrade[2445]: [INFO ] daemon/mod.rs:352: setting upgrade state

@mbaske
Copy link

mbaske commented May 17, 2022

Going backwards will be more difficult than going forward. I'd perhaps recommend trying to upgrade manually. Switch all the apt sources in /etc/apt/sources.list.d/ from impish to jammy, switch to another TTY, apt update and run the upgrade script at /usr/lib/pop-upgrade/upgrade.sh. Any errors that the script can't handle may require manual intervention.

I tried this approach - running the script threw a couple of errors, then shut down the system. After reboot, Pop_Shop! showed the new jammy sources (old impish being greyed out) and 60 pending updates, but trying to execute them failed with more errors.

@dlschmidt
Copy link
Author

Going backwards will be more difficult than going forward. I'd perhaps recommend trying to upgrade manually. Switch all the apt sources in /etc/apt/sources.list.d/ from impish to jammy, switch to another TTY, apt update and run the upgrade script at /usr/lib/pop-upgrade/upgrade.sh. Any errors that the script can't handle may require manual intervention.

Thanks! Although the GUI-Updater failed after script execution and reboot, my system somehow updated to 22.04 after a few restarts without me doing anything. (Automatic Updates are disabled)

@dlschmidt
Copy link
Author

PS: I think, there is still something wrong.
If I try to update my packages now, apt complains about unmet dependencies.

The following packages have unmet dependencies.
 libpam-systemd : Depends: systemd (= 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af)
 systemd-container : Depends: systemd (= 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af)
 systemd-sysv : Depends: systemd (= 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af)
 systemd-timesyncd : Depends: systemd (= 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af)
 udev : Breaks: systemd (< 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af)
        Breaks: systemd:i386 (< 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af)

And if I would run apt upgrade --fix-broken, apt would downgrade 110 packages again.

@ckming102
Copy link

Like @dlschmidt I had the same experience with my system having updated by itself to 22.04 after a restart. But it still wasn't working properly; video card no longer was detected and I couldn't mount the SATA drive. So I did an OS refresh, and it is now stable and at 22.04. But this is equivalent to a new OS install from image. And I lost all previous system-wide installed binaries and libraries. Stuff in my home was still preserved of course. By no means a fix, but a desperate work-around just to get my system bumped up to 22.04.

@epq
Copy link

epq commented May 20, 2022

I have a similar issue:

May 20 17:08:29 pop-os pop-upgrade[12372]: Reading package lists...
May 20 17:08:30 pop-os pop-upgrade[12372]: Building dependency tree...
May 20 17:08:30 pop-os pop-upgrade[12372]: Reading state information...
May 20 17:08:30 pop-os pop-upgrade[12372]: Some packages could not be installed. This may mean that you have
May 20 17:08:30 pop-os pop-upgrade[12372]: requested an impossible situation or if you are using the unstable
May 20 17:08:30 pop-os pop-upgrade[12372]: distribution that some required packages have not yet been created
May 20 17:08:30 pop-os pop-upgrade[12372]: or been moved out of Incoming.
May 20 17:08:30 pop-os pop-upgrade[12372]: The following information may help to resolve the situation:
May 20 17:08:30 pop-os pop-upgrade[12372]: The following packages have unmet dependencies:
May 20 17:08:30 pop-os pop-upgrade[12372]:  libnet-ssleay-perl : Depends: perl-openssl-abi-1.1
May 20 17:08:30 pop-os pop-upgrade[12372]:  libwww-perl : Depends: libhtml-parser-perl but it is not going to be installed
May 20 17:08:30 pop-os pop-upgrade[12372]:                Depends: libhtml-tree-perl but it is not going to be installed
May 20 17:08:30 pop-os pop-upgrade[12372]:                Recommends: libhtml-form-perl but it is not going to be installed
May 20 17:08:30 pop-os pop-upgrade[12372]:                Recommends: libhtml-format-perl but it is not going to be installed
May 20 17:08:30 pop-os pop-upgrade[12372]: E: Unable to correct problems, you have held broken packages.

@CodeKiwi
Copy link

I have the same problem - any solutions to this yet?

@Ajilagi
Copy link

Ajilagi commented May 24, 2022

Going backwards will be more difficult than going forward. I'd perhaps recommend trying to upgrade manually. Switch all the apt sources in /etc/apt/sources.list.d/ from impish to jammy, switch to another TTY, apt update and run the upgrade script at /usr/lib/pop-upgrade/upgrade.sh. Any errors that the script can't handle may require manual intervention.

Could you give the command steps to switch all the apt sources in there?

@Al-Serhan
Copy link

Going backwards will be more difficult than going forward. I'd perhaps recommend trying to upgrade manually. Switch all the apt sources in /etc/apt/sources.list.d/ from impish to jammy, switch to another TTY, apt update and run the upgrade script at /usr/lib/pop-upgrade/upgrade.sh. Any errors that the script can't handle may require manual intervention.

Unfortunately that didn't work

@Al-Serhan
Copy link

Going backwards will be more difficult than going forward. I'd perhaps recommend trying to upgrade manually. Switch all the apt sources in /etc/apt/sources.list.d/ from impish to jammy, switch to another TTY, apt update and run the upgrade script at /usr/lib/pop-upgrade/upgrade.sh. Any errors that the script can't handle may require manual intervention.

Could you give the command steps to switch all the apt sources in there?

sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list.d/system.sources /etc/apt/sources.list.d/pop-os-release.sources /etc/apt/sources.list.d/pop-os-apps.sources

@Ajilagi
Copy link

Ajilagi commented May 25, 2022

Going backwards will be more difficult than going forward. I'd perhaps recommend trying to upgrade manually. Switch all the apt sources in /etc/apt/sources.list.d/ from impish to jammy, switch to another TTY, apt update and run the upgrade script at /usr/lib/pop-upgrade/upgrade.sh. Any errors that the script can't handle may require manual intervention.

Could you give the command steps to switch all the apt sources in there?

sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list.d/system.sources /etc/apt/sources.list.d/pop-os-release.sources /etc/apt/sources.list.d/pop-os-apps.sources

It works on me Thanks !
Here's the steps

sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list.d/system.sources /etc/apt/sources.list.d/pop-os-release.sources /etc/apt/sources.list.d/pop-os-apps.sources

sudo apt update

sudo apt full-upgrade

pop-upgrade recovery upgrade from-release

pop-upgrade release upgrade

@WolfRayet4
Copy link

Ekk, this process failed and now my machine can't start, it requested a reboot during the process, it can't load the gui but I still have access to terminal.

Continuing the process still errors at pop-upgrade release upgrade with "release upgrade aborted: failed to downgrade packages"

@ElbaMlad
Copy link

Going backwards will be more difficult than going forward. I'd perhaps recommend trying to upgrade manually. Switch all the apt sources in /etc/apt/sources.list.d/ from impish to jammy, switch to another TTY, apt update and run the upgrade script at /usr/lib/pop-upgrade/upgrade.sh. Any errors that the script can't handle may require manual intervention.

Could you give the command steps to switch all the apt sources in there?

sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list.d/system.sources /etc/apt/sources.list.d/pop-os-release.sources /etc/apt/sources.list.d/pop-os-apps.sources

It works on me Thanks ! Here's the steps

sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list.d/system.sources /etc/apt/sources.list.d/pop-os-release.sources /etc/apt/sources.list.d/pop-os-apps.sources

sudo apt update

sudo apt full-upgrade

pop-upgrade recovery upgrade from-release

pop-upgrade release upgrade

I attempted this process but it canceled due to having too many errors.

@ElbaMlad
Copy link

ElbaMlad commented May 25, 2022

16535183543401561468609995841998
Hello. So I restarted my computer after using someone's trouble shooting methods from here and now I have this message when I try to log in. It would be great if someone could help me.

@CodeKiwi
Copy link

I had the same problem and didn't manage to resolve it - so I created a new bootable USB of POP OS and refreshed teh installation - this created other issues though as my apps needed to be reinstalled (but managed to rescue my user account)

@wazoox
Copy link

wazoox commented Nov 18, 2022

I had a problem with rtl8821ce-dkms remaining in a broken install state (the installed version didn't support the running kernel). I removed it, did the upgrade, the re-installed it afterwards. Generally this sort of problems may occur with any dkms driver I suppose.

@duck-dev
Copy link

@Ajilagi @arthurlch @wanjas Excuse me for mentioning you particularly, but I wanted to pose a quick question: While executing sudo apt full-upgrade, it asks me to choose one of the following steps at 36% (translated from German):

How would you like to proceed? Your choices are:
    Y or I : Install the version of the package maintainer.
    N or O : Keep the currently installed version
       D : Show the differences between the versions
       Z : Launch a shell to examine the situation
 The default way is to keep the current version.
*** issue (Y/I/N/O/D/Z) [default=N] ?

What did you guys choose? I assume, I should go with the default way. I want to be sure to follow the right steps, as my system is stuck somewhere in-between 21.10 and 22.04, as it seems. I have actually already updated to 22.04 through the GUI. The update seemed to be successful, but after rebooting, the system was still at 21.10 and it prompted me to update to 22.04. After some issues with unresolved package dependencies (related to udev), I finally managed to get other errors, that are not related to package dependencies, namely the one, this whole issue is all about.

I would be very grateful if someone could confirm my thoughts. Thank you very much already in advance!

@dlschmidt
Copy link
Author

dlschmidt commented Jan 22, 2023

@duck-dev What exactly happend after following the steps #320 ?
I want to ask again because those few lines solved all my problems back then.

@duck-dev
Copy link

duck-dev commented Jan 22, 2023

@dlschmidt Well, after the first step, nothing happened (meaning, there was no output in the console). The second step resulted in a few seemingly successful operations, but also a few 404 errors and errors which state that certain depots don't contain a release-file. Now I'm "stuck" at sudo apt full-upgrade with many updated and a few installed packages. It doesn't seem like there are any errors. Now, it asks me what I stated in my comment above and I want to do the "right thing".

What did you choose when it prompted you to choose a given option in the described situation, in case you have encountered this? Or what would you choose? Would you confirm my assumption to select "N"?

Thank you very much for your interest!

@dlschmidt
Copy link
Author

I think we can help more if you can paste the exact URLs which could not be resolved / throwed the 404.

@duck-dev
Copy link

duck-dev commented Jan 22, 2023

@dlschmidt I will make sure to do so, in case the process doesn't resolve the issue, but I want to give it a try nonetheless. Such errors don't necessarily have to prevent further processes, as they may be unrelated.

Which option did you choose when it prompted you to choose a given option in the described situation, in case you have encountered this? Or what would you choose? Would you support my assumption to select "N"?

@dlschmidt
Copy link
Author

I can not remember that this prompt was shown back then. Therefore I can only give you the advice to fix the 404, because the system upgrade will definitely depend on the process of downloading the correct packages and package metadata.

How shall your popOS do the full-upgrade when it is not possible to fetch all neccessary packages?

@duck-dev
Copy link

duck-dev commented Jan 22, 2023

@dlschmidt Alright, I will post the entire output that was written to the terminal as a result of sudo apt update. I will be so free to assume that you understand German, judging from your profile :), so that I won't bother to translate all the content to English. In case this is necessary, I will make sure to do that as well.

Holen:1 http://apt.pop-os.org/proprietary jammy InRelease [8’435 B]
Ign:2 http://old-releases.ubuntu.com/ubuntu jammy InRelease     
Ign:3 http://old-releases.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://old-releases.ubuntu.com/ubuntu jammy-updates InRelease
Holen:5 http://apt.pop-os.org/release jammy InRelease [16.6 kB]
Ign:6 http://old-releases.ubuntu.com/ubuntu jammy-backports InRelease
Fehl:7 http://old-releases.ubuntu.com/ubuntu jammy Release    
  404  Not Found [IP: 91.189.91.124 80]
Fehl:8 http://old-releases.ubuntu.com/ubuntu jammy-security Release
  404  Not Found [IP: 91.189.91.124 80]
Holen:9 http://apt.pop-os.org/proprietary jammy/main all Packages [596 B]
Fehl:10 http://old-releases.ubuntu.com/ubuntu jammy-updates Release      
  404  Not Found [IP: 91.189.91.124 80]
Fehl:11 http://old-releases.ubuntu.com/ubuntu jammy-backports Release
  404  Not Found [IP: 91.189.91.124 80]
Holen:12 http://apt.pop-os.org/proprietary jammy/main amd64 Packages [4’608 B]
Holen:13 http://apt.pop-os.org/release jammy/main Sources [84.9 kB]
Holen:14 http://apt.pop-os.org/release jammy/main i386 Packages [85.9 kB]
Holen:15 http://apt.pop-os.org/release jammy/main amd64 Packages [201 kB]
Holen:16 http://apt.pop-os.org/release jammy/main amd64 DEP-11 Metadata [43.3 kB]
Holen:17 http://apt.pop-os.org/release jammy/main DEP-11 48x48 Icons [16.9 kB]
Holen:18 http://apt.pop-os.org/release jammy/main DEP-11 64x64 Icons [21.7 kB]
Holen:19 http://apt.pop-os.org/release jammy/main DEP-11 64x64@2 Icons [29 B]
Holen:20 http://apt.pop-os.org/release jammy/main DEP-11 128x128 Icons [45.1 kB]
Paketlisten werden gelesen… Fertig         
E: Das Depot »http://old-releases.ubuntu.com/ubuntu jammy Release« enthält keine Release-Datei.
N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
E: Das Depot »http://old-releases.ubuntu.com/ubuntu jammy-security Release« enthält keine Release-Datei.
N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
E: Das Depot »http://old-releases.ubuntu.com/ubuntu jammy-updates Release« enthält keine Release-Datei.
N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
E: Das Depot »http://old-releases.ubuntu.com/ubuntu jammy-backports Release« enthält keine Release-Datei.
N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).

@dlschmidt
Copy link
Author

Yes, German is my main language.
Have you manually added sources to the /etc/apt/sources.list (and subdirectories) ?
Maybe try to uncomment the old-releases.ubuntu.com sources and only use the pop-os ones.

@duck-dev
Copy link

duck-dev commented Jan 22, 2023

Have you manually added sources to the /etc/apt/sources.list (and subdirectories) ?

I can't remember to have ever done that. Do you now suggest to edit it manually? The content of this file redirects me to another file:

## This file is deprecated in Pop!_OS.
## See `man deb822` and /etc/apt/sources.list.d/system.sources.

The "system.sources" file contains the following content:

X-Repolib-Name: Pop_OS System Sources
Enabled: yes
Types: deb deb-src
URIs: http://old-releases.ubuntu.com/ubuntu
Suites: impish impish-security impish-updates impish-backports
Components: main restricted universe multiverse
X-Repolib-Default-Mirror: http://old-releases.ubuntu.com/ubuntu

@dlschmidt
Copy link
Author

Maybe try this #320

@duck-dev
Copy link

Isn't this being done with sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list.d/system.sources /etc/apt/sources.list.d/pop-os-release.sources /etc/apt/sources.list.d/pop-os-apps.sources (the first step of the suggested solution)?

@dlschmidt
Copy link
Author

clearly your system.sources contains "impish" so that command did not work in your case

@duck-dev
Copy link

After running the command again (twice), it seems to have changed. I'm not entirely sure why I had to do it three times, but anyway...

X-Repolib-Name: Pop_OS System Sources
Enabled: yes
Types: deb deb-src
URIs: http://old-releases.ubuntu.com/ubuntu
Suites: jammy jammy-security jammy-updates jammy-backports
Components: main restricted universe multiverse
X-Repolib-Default-Mirror: http://old-releases.ubuntu.com/ubuntu

I will try it again.

@duck-dev
Copy link

duck-dev commented Jan 22, 2023

And sudo apt update seems to yield the same output with 404- and release-file errors. @mclaser Seems to have the same problem. Did you manage to resolve it by any chance?

@dlschmidt dlschmidt reopened this Jan 22, 2023
@duck-dev
Copy link

duck-dev commented Jan 22, 2023

@dlschmidt I have made some progress, but I fear I'm still not in the position to be able to update. I figured out, that I needed to run the suggested command from this comment (#320) twice as well, so that it has some effect. Now, sudo apt update runs without any issues and (after running sudo apt --fix-broken install) sudo apt full-upgrade seems to complete without any errors either. However, the result of the next step (pop-upgrade recovery upgrade from-release) doesn't give me the impression that it ran successfully:

checking if pop-upgrade requires an update
Recovery upgrade status: recovery upgrade aborted: the recovery feature is limited to EFI installs

I will try to reboot a couple of times.

@dlschmidt
Copy link
Author

You dont have to reboot. You may have installed popOS without a recovery partition.
Just use the command pop-upgrade release upgrade

@duck-dev
Copy link

Unfortunately, it was unsuccessful: Release upgrade status: release upgrade aborted: failed to downgrade packages.
This is the entire output:

checking if pop-upgrade requires an update
Current Release: 21.10
Upgrading to: 22.04
New version available: 21
Event: updating package lists
Event: upgrading packages for the current release
Fetched (1/27): appmenu-gtk3-module_0.7.6-2_amd64.deb
Fetched (2/27): gir1.2-flatpak-1.0_1.11.2-1pop1~1627328845~21.10~d349217_amd64.deb
Fetched (3/27): debconf_1.5.77pop0~1631387232~21.10~d742cfc_all.deb
Fetched (4/27): apt-transport-https_2.3.12~1637170272~21.10~312e7d7_all.deb
Fetched (5/27): libapt-pkg6.0_2.3.12~1637170272~21.10~312e7d7_amd64.deb
Fetched (6/27): mesa-va-drivers_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (7/27): python3-repolib_1.5.2~1651755991~21.10~ed00e44_all.deb
Fetched (8/27): pop-desktop_1.6.0~1646923116~21.10~ae1aa66_all.deb
Fetched (9/27): libflatpak-dev_1.11.2-1pop1~1627328845~21.10~d349217_amd64.deb
Fetched (10/27): mesa-vulkan-drivers_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (11/27): python-apt-common_2.2.1pop0~1628521831~21.10~5dbe6cf_all.deb
Fetched (12/27): mesa-vdpau-drivers_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (13/27): apt_2.3.12~1637170272~21.10~312e7d7_amd64.deb
Fetched (14/27): gnome-screenshot_40~beta-1ubuntu1_amd64.deb
Fetched (15/27): debconf-i18n_1.5.77pop0~1631387232~21.10~d742cfc_all.deb
Fetched (16/27): libgl1-mesa-dri_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (17/27): libgbm1_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (18/27): libegl-mesa0_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (19/27): apt-utils_2.3.12~1637170272~21.10~312e7d7_amd64.deb
Fetched (20/27): libglapi-mesa_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (21/27): gnome-shell-extension-desktop-icons-ng_33-1pop0~1645133786~21.10~b82c87a_all.deb
Fetched (22/27): repoman_2.2.0~1658189208~21.10~6a29595_all.deb
Fetched (23/27): libflatpak0_1.11.2-1pop1~1627328845~21.10~d349217_amd64.deb
Fetched (24/27): libxatracker2_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (25/27): libglx-mesa0_21.3.5-1ubuntu1pop0~1646323003~21.10~e69556a_amd64.deb
Fetched (26/27): flatpak_1.11.2-1pop1~1627328845~21.10~d349217_amd64.deb
Fetched (27/27): libappmenu-gtk3-parser0_0.7.6-2_amd64.deb
Event: fetching updated packages for the current release
Progress: 0%
Unpacking gnome-shell-extension-desktop-icons-ng (33-1pop0~1645133786~21.10~b82c87a) over (43-2ubuntu1)
Setting up gnome-shell-extension-desktop-icons-ng
Unpacking debconf (1.5.77pop0~1631387232~21.10~d742cfc) over (1.5.79ubuntu1)
Setting up debconf
Progress: 1%
Unpacking debconf-i18n (1.5.77pop0~1631387232~21.10~d742cfc) over (1.5.79ubuntu1)
Setting up debconf-i18n
Progress: 2%
Unpacking libdrm2:amd64 (2.4.110-1pop0~1648761328~21.10~166056a) over (2.4.110-1pop0~1648761328~22.04~166056a)
Setting up libdrm2:amd64
Progress: 3%
Unpacking libdrm-common (2.4.110-1pop0~1648761328~21.10~166056a) over (2.4.110-1pop0~1648761328~22.04~166056a)
Setting up libdrm-common
Unpacking libsystemd0:amd64 (248.3-1ubuntu8.6~1650893010~21.10~9a0cd5e) over (249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c)
Progress: 4%
Setting up libsystemd0:amd64
Setting up app-install-data-partner
Progress: 5%
Setting up libappmenu-gtk2-parser0:amd64
Progress: 6%
Setting up appmenu-gtk-module-common
Processing triggers for libglib2.0-0:amd64
Progress: 7%
Setting up appmenu-gtk2-module:amd64
Progress: 8%
Unpacking pop-desktop (1.6.0~1646923116~21.10~ae1aa66) over (1.6.0~1672874368~22.04~752ef2f)
Setting up pop-desktop
Progress: 9%
Unpacking systemd-timesyncd (248.3-1ubuntu8.6~1650893010~21.10~9a0cd5e) over (249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c)
Unpacking systemd (248.3-1ubuntu8.6~1650893010~21.10~9a0cd5e) over (249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c)
Setting up systemd-timesyncd
Progress: 10%
Release upgrade status: release upgrade aborted: failed to downgrade packages

@duck-dev
Copy link

If I try it again, I get another reason for the abortion of the upgrade. This is the output in this case:

checking if pop-upgrade requires an update
waiting for daemon to update and restart
reconnecting to pop-upgrade daemon
Current Release: 21.10
Upgrading to: 22.04
New version available: 21
Release upgrade status: release upgrade aborted: failed to apply system repair before upgrade

@duck-dev
Copy link

duck-dev commented Jan 22, 2023

And now (after rebooting) there seem to be some package dependency issues with systemd (apt --fix-broken install, dpkg --configure -a and apt full-upgrade fail because of that).

Output of sudo apt --fix-broken install:

dpkg: Abhängigkeitsprobleme verhindern Konfiguration von systemd:
 udev (249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c) beschädigt systemd (<< 24
9.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c) und ist installiert.
  Zu konfigurierende Version von systemd auf dem System ist 248.3-1ubuntu8.6~165
0893010~21.10~9a0cd5e.

dpkg: Fehler beim Bearbeiten des Paketes systemd (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Es wurde kein Apport-Bericht verfasst, da die Fehlermeldung darauf hindeutet, da
ss dies lediglich ein Folgefehler eines vorherigen Problems ist.
                                                                Fehler traten au
f beim Bearbeiten von:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Output of sudo dpkg --configure -a:

dpkg: Abhängigkeitsprobleme verhindern Konfiguration von systemd:
 udev (249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c) beschädigt systemd (<< 249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c) und ist installiert.
  Zu konfigurierende Version von systemd auf dem System ist 248.3-1ubuntu8.6~1650893010~21.10~9a0cd5e.

dpkg: Fehler beim Bearbeiten des Paketes systemd (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von libnss-systemd:amd64:
 libnss-systemd:amd64 hängt ab von systemd (= 248.3-1ubuntu8.6~1650893010~21.10~9a0cd5e); aber:
  Paket systemd ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten des Paketes libnss-systemd:amd64 (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Fehler traten auf beim Bearbeiten von:
 systemd
 libnss-systemd:amd64

Output of sudo apt full-upgrade:

Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Probieren Sie »apt --fix-broken install«, um dies zu korrigieren.
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libpam-systemd : Hängt ab von: systemd (= 249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c)
 systemd-sysv : Hängt ab von: systemd (= 249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c)
 udev : Beschädigt: systemd (< 249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c)
        Beschädigt: systemd:i386 (< 249.11-0ubuntu3.6pop0~1672358811~22.04~1352e5c)
        Empfiehlt: systemd-hwe-hwdb ist aber nicht installierbar
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt --fix-broken install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an).

@jacobgkau
Copy link
Member

jacobgkau commented Jan 23, 2023

@duck-dev I can't read German, but the problem is pretty simple at this point. You have some 21.10 packages installed and some 22.04 packages installed. The packages depend on each other (and the dependencies include the version numbers, so they have to match.)

The steps to fix this are two-fold:

  1. Make all sources point to the newer version.

From your earlier apt update output:

Fehl:7 http://old-releases.ubuntu.com/ubuntu jammy Release    
  404  Not Found [IP: 91.189.91.124 80]
Fehl:8 http://old-releases.ubuntu.com/ubuntu jammy-security Release
  404  Not Found [IP: 91.189.91.124 80]
Holen:9 http://apt.pop-os.org/proprietary jammy/main all Packages [596 B]
Fehl:10 http://old-releases.ubuntu.com/ubuntu jammy-updates Release      
  404  Not Found [IP: 91.189.91.124 80]
Fehl:11 http://old-releases.ubuntu.com/ubuntu jammy-backports Release
  404  Not Found [IP: 91.189.91.124 80]

The sources were misconfigured at that time-- the URL was set to old-releases, but Jammy is the new release, not an old release. The system.sources file needs to have its URL changed from old-releases.ubuntu.com/ubuntu to apt.pop-os.org/ubuntu. When the sources are configured correctly, sudo apt update should show all jammy (no impish) and should not have any errors or warnings.

  1. Provide apt with the newer version number for all packages that it wants to install.

To do this, for any package name that apt complains about, run apt policy packagename, copy the Candidate: version number for the package, then run sudo apt install packagename=versionnumber. If apt complains about a different package, use the same apt policy command and add that package/version to the end of the apt install command. Continue adding to the command until it works.

If your sources are configured properly and you specify compatible version numbers, then apt should proceed with the operation. If you can't figure this out, please feel free to join the ~upgrade-help channel on the Pop!_OS Mattermost server, and someone can go back and forth with you to figure the specific command for your system out (this is easier to do via live chat than a GitHub issue, as it requires feedback between every step): https://chat.pop-os.org/pop-os/upgrade-help

I also want to be clear that you are doing the upgrade manually at this point (as pop-upgrade clearly encountered an issue trying to do it automatically), and you should not run pop-upgrade anymore until the current issue is resolved.


System76 customers can reach out to support for technical assistance. For non-System76 hardware, you can seek community support on Reddit or Mattermost.

@duck-dev
Copy link

duck-dev commented Jan 23, 2023

Hello @jacobgkau . First of all, thank you very much for your answer, it certainly proves helpful. I explained my whole situation from the beginning in the Pop!_OS Mattermost server, as you suggested. I tried to provide all the information I have and think is useful.

Now, as I described there, after changing the URL for the URIs and X-Repolib-Default-Mirror properties in the system.sources file and running the following commands (some of them multiple times), I had no errors, no warnings, some packages were upgraded by sudo apt full-upgrade (debconf debconf-i18n gnome-shell-extension-desktop-icons-ng libdrm-common libdrm2 pop-desktop) and chrony was installed.

sudo sed -i 's/impish/jammy/g' /etc/apt/sources.list.d/system.sources /etc/apt/sources.list.d/pop-os-release.sources /etc/apt/sources.list.d/pop-os-apps.sources

sudo apt update

sudo apt --fix-broken install

sudo apt full-upgrade

After all that, there are no package updates anymore (sudo apt update says that all packages are up to date and sudo apt full-upgrade now only says that there are some unused packages, that I could remove with sudo apt autoremove). So, apt doesn't complain about any packages anymore, which leads me to the conclusion that I cannot (or don't have to) proceed with step 2, which could be great on the one hand, but also makes me unsure on the other hand, as you explicitly said that pop-upgrade shouldn't be used anymore until the issue is solved and I can't assess whether it's solved or not (it looks like it, but these assumptions don't always mean what they seem to mean).

How should I proceed now? Am I allowed to continue with the update?

Edit: I tried to continue with the update through the GUI and it just throws everything over again, as if nothing had changed. The system.sources files contain the old URL again and impish and I get the same error message, which states that it couldn't downgrade packages, after I assured that each relevant file (and the .save versions too) contain the new URL, jammy and that there are no package issues or pending packages to be upgraded.

It just doesn't work.

@jacobgkau
Copy link
Member

jacobgkau commented Jan 26, 2023

@duck-dev Part of the issue is that /etc/os-release and /etc/lsb-release are not being updated when pop-default-settings is updated when these problems happen, even though the package itself is being updated. So the problem is that you're already on 22.04, but you ask pop-upgrade to upgrade you from 21.10 to 22.04 (which it shouldn't even be offering to do, but it does because it reads those files and thinks you're still on 21.10), and it breaks your system again.

Once you have all of your sources pointing to jammy, sudo apt update shows no errors, and sudo apt full-upgrade says everything is up-to-date, then you can force your /etc/os-release and /etc/lsb-release to be updated using these commands:

sudo rm -rf /etc/pop-os/
sudo apt -o DPkg::options::=--force-confmiss reinstall pop-default-settings

This will remove the directory that those files come from and then force them to be reinstalled. The reason apt doesn't do this automatically is because /etc is technically a configuration directory, so it avoids updating/overwriting files in that directory in certain circumstances.

Once you do this, pop-upgrade will no longer offer to upgrade. At that time, you're "safe" to use pop-upgrade again for the next upgrade cycle, whenever that is.

I replied to your thread on Mattermost with this information.

@duck-dev
Copy link

Thank you very much for your answer. You were absolutely right, it seems to work properly now. It doesn't prompt me to update anymore, and the settings display 22.04 as the current version.
Excuse me for the long conversations here and my late reply. Thank you very much again!

@jacobgkau
Copy link
Member

We are working on preventing more upgrade issues from happening over in #319.

@jacobgkau jacobgkau transferred this issue from pop-os/pop Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests