Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to install Valgrind with sudo apt-get install valgrind, I get error:

valgrind : Depends: libc6-dbg but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Is there any (safe) solution for this? I have Ubuntu 13.04.

share|improve this question
up vote 2 down vote accepted

You can get a list of actual held packages with:

dpkg --get-selections | grep hold

Another method of troubleshooting may be to use aptitude rather than apt-get to try to install your package:

sudo aptitude install valgrind

Aptitude will give up less easily, and will attempt to find solutions which may involve modifying other packages. It may give you more explanation of the problem and options for fixing it.


share|improve this answer
Thanks, it works now. Had to install aptitude first, and then install valgrind with aptitude. Some packages had to be downgraded for valgrind to work... – magnumns May 19 '13 at 9:53

Install libc6-dbg package like this

sudo apt-get update
sudo apt-get install libc6-dbg

and then install valgrind

sudo apt-get install valgrind
share|improve this answer

Your Answer


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.