Debian apt-get broken packages

I tried to reinstall startup-manager recently after aptitude auto uninstalled it, and got the following error:

[[email protected] droidzone]#sudo apt-get install startupmanager
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 initscripts : Breaks: console-setup (< 1.74) but 1.68+squeeze2 is to be installed
               Breaks: nfs-common (< 1:1.2.5-3) but 1:1.2.2-4squeeze2 is to be installed
 keyboard-configuration : Breaks: console-setup (< 1.71) but 1.68+squeeze2 is to be installed
 startupmanager : Depends: python-glade2 (>= 2.12) but it is not going to be installed
                  Depends: python-gnome2 (>= 2.20) but it is not going to be installed
                  Depends: yelp but it is not going to be installed
E: Broken packages

I took a look at my apt sources list and found that as suggested I had updated the sources list to include the sid repos, which apparently did not have all the correct packages. So I commented out a few lines and fixed it.

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official Snapshot i386 LIVE/INSTALL Binary 20120129-12:44]/ squeeze main

#deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official Snapshot i386 LIVE/INSTALL Binary 20120129-12:44]/ squeeze main

#deb http://security.debian.org/ squeeze/updates main
#deb-src http://security.debian.org/ squeeze/updates main

#Additions come below:

#For module-assistant and nvidia-kernel-common
#deb http://ftp.de.debian.org/debian squeeze main contrib non-free
#deb http://ppa.launchpad.net/jtaylor/keepass/ubuntu lucid main
deb http://ftp.us.debian.org/debian stable main contrib non-free
#deb http://ftp.us.debian.org/debian sid main contrib non-free
#deb http://ppa.launchpad.net/shutter/ppa/ubuntu lucid main
#deb http://ppa.launchpad.net/echidnaman/qapt/ubuntu lucid main

The only line I left is:

deb http://ftp.us.debian.org/debian stable main contrib non-free

Followed by:

[[email protected] droidzone]#sudo apt-get update
Hit http://ftp.us.debian.org stable Release.gpg   
Ign http://ftp.us.debian.org/debian/ stable/contrib Translation-en
Ign http://ftp.us.debian.org/debian/ stable/contrib Translation-en_IN
Ign http://ftp.us.debian.org/debian/ stable/main Translation-en
Ign http://ftp.us.debian.org/debian/ stable/main Translation-en_IN
Ign http://ftp.us.debian.org/debian/ stable/non-free Translation-en
Ign http://ftp.us.debian.org/debian/ stable/non-free Translation-en_IN
Hit http://ftp.us.debian.org stable Release
Hit http://ftp.us.debian.org stable/main i386 Packages
Hit http://ftp.us.debian.org stable/contrib i386 Packages
Hit http://ftp.us.debian.org stable/non-free i386 Packages
Reading package lists... Done
[[email protected] droidzone]#sudo apt-get install startupmanager
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gnome-user-guide libwebkit-1.0-2 python-gnome2 yelp
Suggested packages:
  python-gnome2-doc
The following NEW packages will be installed:
  gnome-user-guide libwebkit-1.0-2 python-gnome2 startupmanager yelp
0 upgraded, 5 newly installed, 0 to remove and 93 not upgraded.
Need to get 5,513 kB/21.6 MB of archives.
After this operation, 60.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.