Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 1476  / 1 Year ago, thu, may 25, 2023, 3:42:37

I am trying to install a program (valgrind) which needs libc6-dbg. On the other hand, I cannot install libc6-dbg because:



The following packages have unmet dependencies:
libc6-dbg: Depends: libc6 (= 2.11.1-0ubuntu7) but 2.11.1-0ubuntu7.2 is to be installed
E: Broken packages


which means I have a newer version of libc6 installed. However:



sudo apt-get install libc6-dbg=2.11.1-0ubuntu7.2


doesn't find anything. I am guessing I need to add the PPA containing that package, which is where I ran out of luck.



I found the package I need here (my ubuntu is Lucid): https://launchpad.net/ubuntu/lucid/i386/libc6-dbg/2.11.1-0ubuntu7.2, however, I can't seem to figure out what I should do to get apt-get to see and install this package.



Help?


More From » 10.04

 Answers
2

-dbg packages provide debug symbols for programs and libraries provided by the packages that are named like them but without -dbg. (Sometimes they provide debug symbols for a whole group packages, typically whose names start like them without -dbg and then contain more text.)



In this case, you have libc6 installed (that's a core package without which no Ubuntu system can run), and you want to install libc6-dbg. This must correspond exactly to the installed version of libc6. Getting a separate version of libc6-dbg from a PPA that didn't correspond to the installed version of libc6 would be very bad--it would not be usable.



As this page indicates, on a Lucid system both libc6 and (if it is installed) libc6-dbg should be at version 2.11.1-0ubuntu7.10. So it looks like you have an old version of libc6 installed (which is possibly vulnerable to well-known security bugs!), for which libc6-dbg may no longer be available.



Not only do you have an old version of libc6, but your information about what the latest versions of libc6 and libc6-dbg is out of date. Try this to correct it:



sudo apt-get update


If you're installing packages on the command-line, you should always run that first (unless you've run it just recently).



Then run this to upgrade your system's packages (including libc6):



sudo apt-get upgrade


Then try again:



sudo apt-get install libc6-dbg


If that still doesn't work, check your Software Sources (by going to the Update Manager and clicking the Settings... button at the lower-left corner). Click on the Updates Tab. Make sure that Important security updates (lucid-security) and Recommended updates (lucid-updates) are enabled (checked).



Ubuntu 10.04 LTS, Software Sources window, Updates tab



That image is taken from these instructions, written by Contributors to the Ubuntu documentation wiki and licensed under CC-BY-SA 3.0. Content on Ask Ubuntu including this post is also licensed that way. Thus my incorporation of that image is permitted here.



Then after enabling those software sources, run these commands again:



sudo apt-get update
sudo apt-get upgrade


And then try again:



sudo apt-get install libc6-dbg

[#37596] Friday, May 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oredoise

Total Points: 66
Total Questions: 116
Total Answers: 111

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;