this post was submitted on 26 Jul 2023
31 points (89.7% liked)

Linux

48092 readers
891 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.g97.top/post/56902

Hi, I've this situation when I apt upgrade. There are many pipewire-related packages kept back. Why? How can I solve it?

Thank you!

EDIT: dist-upgrade summary

EDIT2: Ok I solved it with

apt autoremove # only to remove old packages. it didn't solved the problem

apt update

apt dist-upgrade

top 21 comments
sorted by: hot top controversial new old
[–] wildbus8979@sh.itjust.works 14 points 1 year ago* (last edited 1 year ago) (2 children)
[–] Shdwdrgn@mander.xyz 8 points 1 year ago

Yep, I see this problem every time I upgrade full versions. Always finish off your upgrades with a dist-upgrade and the packages will get cleared up.

[–] gabriele97@lemmy.g97.top 3 points 1 year ago (2 children)

Thank you, I updated the post with a summary of the dist-upgrade command

[–] wildbus8979@sh.itjust.works 2 points 1 year ago (1 children)

Looks like some incompatibility with the Nvidia drivers is hold some packages back.

[–] gabriele97@lemmy.g97.top 3 points 1 year ago (1 children)

You say that because they are listed as removable? If so because I updated from 515 to 525 months ago and today from 525 to 535. I think they are still there but are not used anymore and are safe

[–] wildbus8979@sh.itjust.works 2 points 1 year ago

You're totally right, I had glanced too quickly and thought they were "removed"

[–] wildbus8979@sh.itjust.works 1 points 1 year ago* (last edited 1 year ago)

~~Sounds as expected~~

[–] henfredemars@lemdro.id 7 points 1 year ago (1 children)

Is this basically Ubuntu?

They do intentionally hold back packages based on a random value to do gradual rollouts. See below:

https://askubuntu.com/questions/1431940/what-are-phased-updates-and-why-does-ubuntu-use-them

Could this be your issue?

[–] gabriele97@lemmy.g97.top 4 points 1 year ago (1 children)

Sorry, I forgot to mention that it's Pop OS. And I think it started to be stuck in this mode 2 weeks ago

[–] spiffeeroo@programming.dev 3 points 1 year ago* (last edited 1 year ago)

The Ubuntu based distros may have this phased update thing. That AskUbuntu link has a command to override APT package manager to install the held-back packages.

Ubuntu tends to hold back system critical packages in case there are issues. Systems with certain install UUIDs will be 'guinea pigs' and install these packages before everyone else. You can override this behavior and disable phased updates on that particular computer.

[–] kimpilled@infosec.pub 5 points 1 year ago (1 children)

apt dist-upgrade will sometimes resolve this.

[–] gabriele97@lemmy.g97.top 3 points 1 year ago

Thank you, I updated the post with a summary of the dist-upgrade command

So it looks like your old linux headers are causing dependency issues that are preventing upgrades. The dist-upgrade will delete the conflicting packages and update the dependencies. You should be good after that.

[–] hardcoreufo@lemmy.world 2 points 1 year ago

You could also try aptitude upgrade instead of apt-get. It tends to handle packages that are kept back better.

Maybe some other packages might have problems with the newer versions. Or it could be one package being kept back due to such reasons and others are its dependencies which also gets kept back to make sure it does not break.

[–] patchwork@lemmy.blahaj.zone 1 points 1 year ago* (last edited 1 year ago)

not sure about apt, but with apt-get the default behavior for upgrade is to hold back packages with new dependencies that are not currently installed. in that case, running sudo apt-get upgrade --with-new-pkgs should get those packages upgraded as well, assuming that dependency conflicts aren't a factor, too

[–] style99@kbin.social -2 points 1 year ago (4 children)

nVidia drivers are a serious pain. You could brick your system if you aren't careful.

[–] wildbus8979@sh.itjust.works 5 points 1 year ago

Brick is a big word. Nothing that can't be fix by booting a rescue image and chrooting into your OS.

[–] gabriele97@lemmy.g97.top 1 points 1 year ago

You say that because they are listed as removable? If so because I updated from 515 to 525 months ago and today from 525 to 535. I think they are still there but are not used anymore and are safe

[–] wmassingham@lemmy.world 1 points 1 year ago

At most I think you'd have to blacklist the module from loading at boot time.

[–] melroy@kbin.melroy.org 0 points 1 year ago

you can always run: rmmod nvidia and rmod nouveau. And then buy an AMD videocard. This works always! Thank me later!

load more comments
view more: next ›