Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm having some problems installing Valgrind:

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install valgrind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 valgrind : Depends: libc6-dbg but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install libc6-dbg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.15-0ubuntu10) but 2.15-0ubuntu10.3 is to be installed
E: Unable to correct problems, you have held broken packages.

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ 

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install valgrind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 valgrind : Depends: libc6-dbg but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install libc6-dbg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.15-0ubuntu10) but 2.15-0ubuntu10.3 is to be installed
E: Unable to correct problems, you have held broken packages.
cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ 

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install valgrind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 valgrind : Depends: libc6-dbg but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install libc6-dbg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2.15-0ubuntu10) but 2.15-0ubuntu10.3 is to be installed
E: Unable to correct problems, you have held broken packages.

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ sudo apt-get install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

cristi@cristi-System-Product-Name:~/Downloads/valgrind-3.8.1$ 
share|improve this question
It seems package lists are out of date, run sudo apt-get update and try again. BTW, have you downloaded valgrind source code? If so, why are trying to install it via apt? – Eric Carvalho Dec 5 '12 at 0:11
It looks like you may have had precise-updates enabled, installed some updates, and then disabled it. Re-enable it again. – tumbleweed Dec 5 '12 at 9:59

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.