4
linux-image-server depends on linux-image-3.2.0-39-generic; however:
  Package linux-image-3.2.0-39-generic is not installed.
dpkg: error processing linux-image-server (--configure):
  dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 3.2.0.39.47); however:
  Package linux-image-server is not configured yet.
linux-server depends on linux-headers-server (= 3.2.0.39.47); however:
  Version of linux-headers-server on system is 3.2.0.40.48.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:

linux-image-server
linux-server

E: Sub-process /usr/bin/dpkg returned an error code (1)

I don't know how to fix this issue. Plz help me. ><

Ethan
  • 43
  • Thanks for your help. I reference link and link. And entering command dpkg --remove linux-server, dpkg --remove linux-image-generic linux-headers-generic. After removing, I use sudo apt-get -f install, and it works good. – Ethan Apr 09 '13 at 12:34
  • Your answer looks to be a bit different than the answers given in the link. Please post it as an answer to your own question. (When there is no other satisfactory answer and you've found the answer, we encourage this.) 2 days after posting it, you can accept your own answer (by clicking the gray check mark to the left of it). This will make clear that your problem is solved, and also help others searching for solutions to this or similar problems. Provide the links to those answers if it helps. – Aditya Apr 09 '13 at 13:39

2 Answers2

5

This worked for me:

sudo dpkg --remove linux-server
sudo dpkg --remove linux-image-server linux-headers-server
# purge unused kernels, but could do more so your mileage may vary
sudo apt-get autoremove
sudo apt-get install linux-server linux-image-generic linux-headers-generic
  • Worked for me, thanks! However isn't it dangerous if you have a power outage and then your system is broken because no kernel is installed? – Konrad Höffner Mar 07 '14 at 09:46
2

For me the solution was different.

I used the command sudo aptitude, when the graphical menu appeared I used / to get a pop-up search field and find all the linux-header, linux-image, linux-server versions and removed all but the one currently used by pressing -.

To find the current kernel version I used uname -r.

Finally I installed a newer version of linux-{header, image, server} in the order specified by selecting them and pressing +.

To confirm the updates I used u.

At the end I rebooted and everything was fixed.

Stanislav
  • 223
  • 1
  • 9