Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
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 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. –  navie 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! –  packerprogrammer Mar 11 at 16:31
add comment

1 Answer

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
    
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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