apt-get won't install because of unmet dependencies
Basically, what happened to me was I changed my /etc/apt/sources.list file to point to different repositories, and all of a sudden libc6 wouldn't install. It kept giving me the message, try apt-get -f install. Well, that didn't work. By the way, I was trying to install Xmoto », and there was some unmet dependency or something, and that's what sparked the libc6 installation problem. It also said it found a service running, on my machine, it was gdm. It said stop the service first, I did, and it didn't matter, it still wouldn't install libc6.
After a while, I ended up trying this.
I changed my branch from unstable, to lenny. That's in /etc/apt/sources.list, and it looks similar to this.
It was
deb http://www.example.com/debian/ unstable main contrib non-free
I changed that line to
deb http://www.example.com/debian/ lenny main contrib non-free
did a,
# apt-get update
then I did
# apt-get install libc6
and it installed. Note, it still said gdm was running and that I should stop the service before installing. This time I didn't do it, and nothing happened. It installed with no problems. To be safe, you might want to reboot your machine after this.
Then I went back and changed lenny back to unstable, did a apt-get update and went about my business installing Xmoto ».
[Click to add or edit comments])
Please prepend comments below including a date