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
  • 174,089
  • 51
  • 332
  • 407

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
  • 174,089
  • 51
  • 332
  • 407
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,922
  • 2
  • 26
  • 32