Score:0

cannot upgrade libgcc-s1 or libstdc++6... why?

bg flag

Despite my best efforts, two packages remain on my (jammy) system that refuse to be upgraded:

enie...:~$ sudo apt list --upgradable
Listing... Done
libgcc-s1/jammy 13.1.0-2ubuntu2~22.04 amd64 [upgradable from: 12.1.0-2ubuntu1~22.04]
libstdc++6/jammy 13.1.0-2ubuntu2~22.04 amd64 [upgradable from: 12.1.0-2ubuntu1~22.04]

I've asked aptitude what it knows about the situation:

enie...:~$ sudo aptitude why-not libgcc-s1
i   libcanberra-gtk-module:i386 Depends libc6:i386 (>= 2.4)                 
i A libc6:i386                  Depends libgcc-s1:i386                      
i A libgcc-s1:i386              Breaks  libgcc-s1 (!= 12.1.0-2ubuntu1~22.04)

... and

enie...:~$ sudo aptitude why-not libstdc++6
i   libxml2:i386    Depends libicu70:i386 (>= 70.1-1~)           
i A libicu70:i386   Depends libstdc++6:i386 (>= 5.2)             
i A libstdc++6:i386 Breaks  libstdc++6 (!= 12.1.0-2ubuntu1~22.04)

I don't know enough to say why these packages are being held back. Anybody know?

This is preventing me from install gcc-13, which is making me :'-(

Eric Niebler avatar
bg flag
Guilty as charged. It's from: `https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy main` That's a problem, is it? I like a LTS, but I'm a developer who needs more toolchain options than I get out of the box. What is the recommended way to do that?
ru flag
@user535733 did you mean 23.04?
Score:1
cn flag

The proximate (immediate) cause of your problem is the use of too many non-Ubuntu sources. Your non-Ubuntu-source A is providing packages that are incompatible with packages from non-Ubuntu-source B.

The underlying cause of your problem, the reason you need so many non-Ubuntu-sources, is that you are using the wrong release of Ubuntu for your needs. You have created a FrankenDebian by bolting newer non-Ubuntu software onto an older LTS release. You are now learning that your monstrous creation is too afraid of fire to obey your commands.

LTS releases are simply not designed to be constantly updated to newer application versions and dependencies. LTS releases are intended for enterprise users that want consistent workflow (minimum changes) over the full five years.

Instead, try Ubuntu 23.04 or other 6-month release of Ubuntu. These releases DO snapshot new, updated versions and dependencies. They provide you stable six-month platform, then the whole platform updates again with the next 6-month release.

Eric Niebler avatar
bg flag
Thanks. I figured that since Ubuntu's docs specifically say to use these PPAs to get newer binutils and gcc packages for stable releases (https://wiki.ubuntu.com/ToolChain#Toolchain_Updates), that it would not lead to a FrankenDebian. Was I wrong? What do the docs mean by, "The binutils and GCC packages are rarely updated in stable release updates. Newer versions of the toolchain packages can be found in PPAs instead." ?
user535733 avatar
cn flag
Those are intended for rather more limited use than you have put them to. Analogy: I have a small model racing car that can leap across a half-meter gap. It cannot leap a three-meter gap. That's too far. Every six months adds another half-meter to *your* gap.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.