Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers

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.

source

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
add comment

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
add comment

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.