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


I already tried:

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

What should I do now?

  • 2
    Can you please try this: sudo apt-get clean && sudo apt-get update && sudo apt-get dist-upgrade (this is all on one line). You have 1337 upgrades including linux kernels, that's why we're using dist-upgrade.
    – Alaa Ali
    Aug 24 '13 at 19:52
  • I've found that this repo was added in the sources.list file ftp.de.debian.org/debian sid main and it provides new version for all those 1337 packages. Is that repo stable? I am fine with upgrading if the repo above is well tested and marked as stable, untested packages may introduce more problems while I need to get my system ready asap.
    – boh
    Aug 24 '13 at 21:51
  • I found this person's post fixed my issue easily and completely. askubuntu.com/q/378883/257156 I spent 2 days looking for a solution until I came across this! Mar 11 '14 at 16:31

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
  • latest ubuntu versions like 20.04 LTS is not there. Aug 5 at 19:19

Try this command. It helped me.

apt remove package_name 

and hit Enter

Then try to install whatever you want


I had similar issue all of a sudden when I try to install via apt-get or dkpg -i.

What did the trick for me is as was suggested in the output of the error message:

apt-get install -f

I presume, one of my recent installations failed and left my system in an unmet dependencies state. Running the above installed a few libraries, post which I was able to install my new software.

Not the answer you're looking for? Browse other questions tagged or ask your own question.