3

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.

Radu Rădeanu
  • 169,590
magnumns
  • 65
  • 2
  • 6

2 Answers2

3

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

Radu Rădeanu
  • 169,590
  • 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 09:53
0

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
thefourtheye
  • 4,924