Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

dpkg: error processing linux-generic, un met dependency error when sudo apt-get install -f

Setting up linux-image-generic ( ...
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (=; however:
  Version of linux-image-generic on system is
 linux-generic depends on linux-headers-generic (=; however:
  Version of linux-headers-generic on system is
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question

marked as duplicate by To Do, Avinash Raj, guntbert, BuZZ-dEE, terdon Mar 22 '14 at 21:02

This question was marked as an exact duplicate of an existing question.

@Stormvirux Not exactly. He doesn't seem to know what package is broken. – Dillmo Mar 22 '14 at 15:42

I've had a similar problem, myself, that made it impossible to add or remove packages. Essentially, it was a broken package. If a broken dependency is the issue for you, try following these instructions to flush it out:

  1. Run the command, sudo dpkg --configure -a. This will return an error, but don't worry.
  2. Look at the error from the previous command. It should list broken package(s). Type sudo dpkg -r PACKAGE_NAME to remove each one. Some will probably fail to be removed. Add them to a list.
  3. Run sudo dpkg --configure PACKAGE_NAME for each package in your list. This should repair them and return no fatal errors.
  4. Finally, run sudo apt-get install -f to fix dependencies.

Now, you should be able to install your kernel. If this version is for the channel you're on, this can be done with a simple, sudo apt-get upgrade. Good luck!

share|improve this answer

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