Ubuntu fix dependency problems

I am having dependency problems, whenever I do an apt-get install, I get this error message:

http://pastebin.com/dFnAgyK1

I already tried:

  • apt-get clean, update, upgrade, install -f
  • dpkg --configure -a

What should I do now?


Solution 1:

http://ftp.de.debian.org/debian/ sid main is a repository for the Debian OS, not Ubuntu. You should not be using this repository. Here's what you can do:

  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk

    • This is to backup your sources.list file.
  2. Open up /etc/apt/sources.list with your favorite editor, and delete everything, and repopulate it with the proper, default repositories. Here's how you'll get them:

    • Go here: http://repogen.simplylinux.ch/
    • Select your country and release.
    • Select everything in the "Ubuntu Branches" box.
    • Select everything in the "Ubuntu Updates" box except for the "Proposed" options.
    • Select everything in the "Ubuntu Partner Repos" box.
    • Select everything in the "Ubuntu Extras Repos" box.
    • Scroll down to the very bottom and hit Generate List.
    • Copy the output of the first box into your sources.list file and save it.
  3. Run the following commands in order:

    sudo apt-get clean
    sudo apt-get update
    sudo apt-get install -f
    sudo dpkg -a --configure
    sudo apt-get dist-upgrade
    

    You'll probably get some errors along the way. apt-get install -f should try to fix most issues, but I suspect that it won't fix everything. dpkg will try to further configure the packages, although apt-get install -f should call it by default. The last command is to fully upgrade your system, including the linux kernel, which is what you're having problems with from the logs you posted. I suggest you, again, run these commands after everything is done:

    sudo apt-get install -f
    sudo dpkg -a --configure
    

Solution 2:

Try this command. It helped me.

apt remove package_name 

and hit Enter

Then try to install whatever you want