pop-os / beta

Pop!_OS Beta
358 stars 19 forks source link

apt packages kept back #221

Closed jmbuhr closed 2 years ago

jmbuhr commented 2 years ago

How did you upgrade to 21.04? (Fresh install / Upgrade)

Upgrade from 21.04

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

Issue/Bug Description: When I run sudo apt upgrade after the update I get

The following packages have been kept back:
  libnss-systemd libpam-systemd libsystemd0 libudev1 netplan.io systemd
  systemd-sysv systemd-timesyncd udev

Steps to reproduce (if you know):

Expected behavior:

Other Notes:

WatchMkr commented 2 years ago

Thanks for your report. Please try running sudo apt update && sudo apt full-upgrade

jmbuhr commented 2 years ago

This gives me the same kept back message.

jaylittle commented 2 years ago

This is happening if you upgraded with Steam installed. There are a bunch of i386 dependencies missing from the impish repo that were in the hirsute repo:

http://apt.pop-os.org/release/pool/hirsute/systemd/08ab7114d7c3fcb57febeac717489fdcb431c19d/

Note the presence of i386 and amd64 packages. Now compare that to the impish version:

http://apt.pop-os.org/release/pool/impish/systemd/960437488916aac430668d00e5098901aeff70c7/

It only contains amd64 and arm64 packages. Steam is an i386 package. Uninstalling it allowed me to resolve the held back warnings but I can't reinstall Steam now due to missing dependencies.

I can replicate this on a fresh install of 21.10 beta in a VM. Just try to install Steam and see what happens.

jmbuhr commented 2 years ago

Good catch! Removing steam also allowed me to resolve it. This also explains another issue I have with a cloud gaming client, which relies on some of those dependencies.

Proximus888 commented 2 years ago

Same here, Lutris also causing problems since it uses i386 packages

Crylia commented 2 years ago

Is there a fix without removing lutris and or steam? I got quite some games i dont want to reinstall.

jaylittle commented 2 years ago

Not as of yet. Until the missing i386 packages are added back to the impish repos, we are pretty much SOL here.

EysseW commented 2 years ago

Is there a fix without removing lutris and or steam? I got quite some games i dont want to reinstall.

You could makea backup of the games then uninstall steam. After fixing, you can install steam and you are able to tell steam where the games are located.

jaylittle commented 2 years ago

So uninstalling the steam package shouldn't result in your games getting uninstalled. All of my steam games are still in the library directory even though Steam is uninstalled. Presumably all of my settings are there too. Everything should just go back to the way it was once these dependency issues are resolved and I can reinstall Steam.

I have two computers that I upgraded from 21.04 to 21.10 beta. On one, I uninstalled Steam and fixed the held back packages, so Steam currently isn't installed. On the other, I'm keeping the held back packages and Steam still works, but a bunch of systemd level packages are also at their 21.04 versions instead of their 21.10 versions. It'll be interesting to see how this plays out on both, though I suspect once the missing i386 packages are added to the repo, it will be easily fixed on both.

EysseW commented 2 years ago

Is it possible to donwgrade back to beta version 20.04? I am using steam and lutris on a daily basis and I am fine with waiting for the dependencies coming out until starting to use 20.10

Proximus888 commented 2 years ago

Is it possible to donwgrade back to beta version 20.04? I am using steam and lutris on a daily basis and I am fine with waiting for the dependencies coming out until starting to use 20.10

Do you have backups? I use Timeshift for system backups and Deja Dup for /home backup.

I just reinstalled 20.04 fresh, then restored from Timeshift and after that restored from Deja Dup. Everything works again.

Another option would be to delete Lutris and Steam client (not game files) and wait till the i386 packages are added, then install the clients again.

ianhundere commented 2 years ago

I just reinstalled 20.04 fresh, then restored from Timeshift and after that restored from Deja Dup. Everything works again.

I actually tried downgrading using timeshift and was unable to boot after inputting my encryption password. Something about the system76 power daemon failing.

I'm not restoring from a clonezilla backup from which I'll use timeshift again.

MAD-BUG commented 2 years ago

I was able to install steam by removing i386 packages of systemd and updating some other packages to non Pop Os specific ubuntu versions as been suggested by "aptitude" auto resolver. 2 days past and still no apparent issues in casual daily driving.

jackpot51 commented 2 years ago

The specific issue of steam not being installable has been fixed and released with systemd 248.3-1ubuntu8pop0~1634223273~21.10~0f0b7aa. If there are other issues, please first try running:

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

And then try again. If they persist, create a new issue.

jaylittle commented 2 years ago

This fix appears to have resolved the issue on both of my Ryzen machines as well as on the test VM I setup.

Thank you!

EysseW commented 2 years ago

The specific issue of steam not being installable has been fixed and released with systemd 248.3-1ubuntu8pop0~1634223273~21.10~0f0b7aa. If there are other issues, please first try running:

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

And then try again. If they persist, create a new issue.

Nice, but how do you do this if apt update doesn't work due to i386