Broken Apt-Get DB in Debian
Hey guys,
I find a lot of times if I try to install something using apt-get I will get errors stating certain packages are required but will not be installed. This leaves me with unresolved dependencies and I have to rune "apt-get -f install" to fix it. Any idea what could be the problem? Machine Info: uname -a Linux debian 2.6.26-2-amd64 #1 SMP Thu Nov 5 02:23:12 UTC 2009 x86_64 GNU/Linux lsb_release -a Distributor ID: Debian Description: Debian GNU/Linux 5.0.3 (lenny) Release: 5.0.3 Codename: lenny Physical Specs: AMD Phenom 9550 Quad Core 2.1GHz 4GB Ram 500GB HDD |
It would help to post some error messages and the contents of your sources.list.
|
Kernel & release match. HW specs are not relevant.
Did you forget to post the exact commands you run and the error message? Also, post the contents of /etc/apt/sources.list and /etc/apt/preferences. |
I didn't post the error before because I was drawing a blank as to what packages I had tried to cause the error.
Code:
debian:/home/jared# apt-get install kdenlive Code:
# deb cdrom:[Debian GNU/Linux 5.0.2a _Lenny_ - Official amd64 NETINST Binary-1 20090817-16:36]/ lenny main Code:
debian:/etc/apt# ls -lR |
First clean up your sources.list, get rid of the duplicate lenny lines and the lines for sid. I like to comment the lines in my sources.list, it helps to keep it a bit more organized. You also have two lines for wine.
Something like: Code:
#Stable http://packages.debian.org/search?ke...ll§ion=all |
Quote:
Code:
deb http://ftp.us.debian.org/debian/ lenny main You've mixed Sid with Lenny,bad move. Have you done any updates or installed packages since you added the entry for Sid?. |
I updated my source.list like yours, which I find a much more readable format. Normally this is how I manage them but for somereason I never did it that way on this system.
Code:
#Stable |
Yes I have done install with sid and lenny.
|
Quote:
|
hmm.. I updated my source.list and removed sid and structured it like suggested and tried kdenlive again and it installed no problem. I think that might have fixed it.
Code:
debian:/etc/apt# apt-get install kdenlive |
Quote:
|
That's a little worrying.
An easy way to check would be: apt-get install apt-show-versions apt-show-versions | grep sid See if that comes back with sid packages installed. I have an entry for unstable on my system,here's what i get: Code:
ade@Pc1:~$ apt-show-versions | grep unstable |
Code:
debian:/etc/apt# apt-get install apt-show-versions |
Well,your sources.list looks ok now.
Is there anything else with that error message?. I think there is a fair chance you have some Sid libraries causing problems. |
I am willing to say you are probably right. I know the sid source has been there for at least 7 months.
That is the only thing it says. Here are some things I have done apt-get upgrade Code:
debian:/etc/apt# apt-get upgrade Code:
debian:/etc/apt# apt-get install apt-show-versions Code:
debian:/etc/apt# apt-get -f install Code:
debian:/etc/apt# apt-get build-dep apt-show-versions Code:
debian:/etc/apt# dpkg -l | grep sid |
All times are GMT -5. The time now is 09:30 AM. |