[Discuss] Ubuntu 22.04 apt-get problem

bctill bctill at ece.uvic.ca
Tue Mar 28 10:10:01 PDT 2023


Hi BCLUG --

Alrighty, then:

$ sudo apt policy libc6 libc6-dev g++
libc6:
   Installed: 2.35-0ubuntu3.1
   Candidate: 2.35-0ubuntu3.1
   Version table:
  *** 2.35-0ubuntu3.1 100
         100 /var/lib/dpkg/status
      2.35-0ubuntu3 500
         500 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 
Packages
libc6-dev:
   Installed: (none)
   Candidate: 2.35-0ubuntu3
   Version table:
      2.35-0ubuntu3 500
         500 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 
Packages
g++:
   Installed: (none)
   Candidate: 4:11.2.0-1ubuntu1
   Version table:
      4:11.2.0-1ubuntu1 500
         500 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 
Packages

All I glean from this is what we already knew from the attempt to 
install g++: the version of libc6 that is installed is a later version 
than the one libc6-dev wants, and the installer is (probably wisely) 
refusing to downgrade it.

When I try your suggestion to reinstall libc6, here's what happens:

$ sudo apt install --reinstall libc6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reinstallation of libc6 is not possible, since it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

As for man apt-patterns, I have no context in which to conceptualize 
what I read there.  It gives me syntax for operations I don't understand 
the semantics of.  That is, for operations on an underlying data 
structure that I don't understand.

Can you recommend an article or book that will explain what's going on 
under the hood?  Otherwise, I'm just memorizing incantations without any 
understanding of what they do, how they work, or why they fail when then 
don't work.

Also, do you know of a dependency-graph visualization tool?  Something 
that would draw a directed graph with nodes showing modules and links 
showing dependencies would be nice.  That would allow me to see 
everything that's installed on my system, and how it all hangs together.

Regards,
-- Bernie.


On 2023-03-26 12:29, BCLUG wrote:
>> Thanks for your suggestions.  Here's what happens when I try them:
>> 
>> $ sudo apt-policy libc6 libc6-dev g++
> 
> My mistake, sorry! Not caffeinated enough when I wrote that.
> 
> Should be without a dash:
> 
> # apt policy libc6 libc6-dev g++
> 
> 
> Wow, I really was asleep at the wheel.  Next up:
> 
>> # man apt-patterns
> 
> For matching *patterns*. Shoulda just copied / pasted.
> 
> 
> Finally, this might help bring libc6 to a more recent version:
> 
>> # apt install --reinstall libc6 [...]
> 
> Perhaps [...] could be libc6-dev and g++.
> 
> 
> 
> Apologies for the sloppiness in last message.
> 
> rb
> 
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://vlug.org/mailman/listinfo/discuss_vlug.org



More information about the Discuss mailing list