Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed valgrind which replaced libc6 on my Ubuntu 12.04 system with a sligthly different version, which broke an application on my system. Can I somehow revert to the Ubuntu 5.1 version? If so, where can I find it?

Preparing to replace libc6-dev 2.13-20ubuntu5.1 (using .../libc6-dev_2.13-20ubuntu5.3_amd64.deb) ...
Unpacking replacement libc6-dev ...
Preparing to replace libc-dev-bin 2.13-20ubuntu5.1 (using .../libc-dev-bin_2.13-20ubuntu5.3_amd64.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace libc-bin 2.13-20ubuntu5.1 (using .../libc-bin_2.13-20ubuntu5.3_amd64.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.13-20ubuntu5.3) ...
(Reading database ... 192982 files and directories currently installed.)
Preparing to replace libc6 2.13-20ubuntu5.1 (using .../libc6_2.13-20ubuntu5.3_amd64.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.13-20ubuntu5.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
/sbin/ldconfig.real: /usr/local/lib/liblzma.so.5 is not a symbolic link

Selecting previously deselected package libc6-dbg.
(Reading database ... 192982 files and directories currently installed.)
Unpacking libc6-dbg (from .../libc6-dbg_2.13-20ubuntu5.3_amd64.deb) ...
Selecting previously deselected package valgrind.
Unpacking valgrind (from .../valgrind_1%3a3.6.1-0ubuntu3_amd64.deb) ...
Processing triggers for man-db ...
Setting up libc-dev-bin (2.13-20ubuntu5.3) ...
Setting up libc6-dev (2.13-20ubuntu5.3) ...
Setting up libc6-dbg (2.13-20ubuntu5.3) ...
Setting up valgrind (1:3.6.1-0ubuntu3) ...
share|improve this question
    
@slhck: "The community"? The community is all StackExchange sites together, not a single one on its own. Besides, I didn't say or suggest in any way it wasn't on-topic here. But if there is an SE site dedicated to Ubuntu it's natural to find a higher number of people interested in Ubuntu there. This is all I was saying and I stand by that. Feel free to remove my comments, I'm sure mods can do that. –  0xC0000022L Feb 26 '13 at 18:39
    
@0xC0000022L The sites are communities on their own. If every question related to Ubuntu was sent to Ask Ubuntu, we wouldn't have any Ubuntu questions here anymore. This is not in the spirit of how the sites should grow organically (to put it in the words of the Stack Exchange team). Of course I didn't imply you saying the question was off topic, but so as not to encourage the OP to cross post, in the future please explicitly explain that they can have their questions migrated to AU if they don't receive enough attention. Thanks for your consideration. –  slhck Feb 26 '13 at 19:27

1 Answer 1

up vote 0 down vote accepted

The biggest problem is likely going to be to find the exact version that you had installed before as a .deb, especially if you did apt-get autoclean in between.

In general to install a particular version you would do

sudo apt-get install libc6=2.13-20ubuntu5.1

then you could mark the package as held using:

echo "libc6 hold"|sudo dpkg --set-selections

so that subsequent updates don't update it automatically. Problem for you would be to find a mirror that has the old version and use that or find the .deb for the old version and use dpkg -i ... to install it manually.

Try locate libc6_2.13-20ubuntu5.1_amd64.deb to see whether you have a cached copy.

However, what are the symptoms of the failing program? It's possible there are solutions to the problem other than reverting to an older version of libc6.

share|improve this answer
    
thanks this helped –  hlitz Feb 27 '13 at 1:53
    
I found the exact packages on google and had to resolve some dependencies like installing sudo dpkg -i ./libc6_2.13-20ubuntu5.1_i386.deb –  hlitz Feb 28 '13 at 6:24
    
I found the packages by googling the exact package name and had to resolve some dependencies: sudo dpkg -i ./libc-bin_2.13-20ubuntu5.1_amd64.deb then sudo dpkg -i ./libc6_2.13-20ubuntu5.1_i386.deb then sudo dpkg -i ./libc6_2.13-20ubuntu5.1_amd64.deb did the trick –  hlitz Feb 28 '13 at 6:27
    
@hlitz: cool, glad you were able to dig up the packages. –  0xC0000022L Feb 28 '13 at 6:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.