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 know this has been discussed in numerous threads because I have read them, but I have not been able to pin-point the solution.

It probably began by running out of space on /boot which I suspect caused a trashed upgrade. After deleting some old kernels, as suggested in my reading, I freed up some space and solved some of the problems but not all.

System info from uname -a is

Linux storm1.xyz.com 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25 21:22:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Problem occurs with apt-get -f install

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-image-server linux-server
The following packages will be upgraded:
  linux-image-server linux-server
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/4,320 B of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of linux-image-server:
 linux-image-server depends on linux-image-3.2.0-38-generic; however:
  Package linux-image-3.2.0-38-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.38.46); however:
  Package linux-image-server is not configured yet.
 linux-server depends on linux-headers-server (= 3.2.0.38.46); 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)

Version 3.2.0.38 is not installed but the headers show up with

hmtodd@storm1:/boot$ dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver
linux-headers-3.2.0-38
linux-headers-3.2.0-38-generic

My available kernels look like the following, but I should note that 23, 34, 35, and 36 were deleted to clean up disk space. I'm not sure why they still show up.

hmtodd@storm1:/boot$ dpkg --list | grep linux-image
rc  linux-image-3.2.0-23-generic     3.2.0-23.36                  Linux kernel image for version 3.2.0 on 64 bit x86 SMP
rc  linux-image-3.2.0-34-generic     3.2.0-34.53                  Linux kernel image for version 3.2.0 on 64 bit x86 SMP
rc  linux-image-3.2.0-35-generic     3.2.0-35.55                  Linux kernel image for version 3.2.0 on 64 bit x86 SMP
rc  linux-image-3.2.0-36-generic     3.2.0-36.57                  Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii  linux-image-3.2.0-40-generic     3.2.0-40.64                  Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iU  linux-image-server               3.2.0.38.46                  Linux kernel image on Server Equipment.

With the dependency problems options like install and auto remove won't work. What do I need to do to solve the dependency problem and related errors? I am new to Ubuntu so please don't assume too much.

share|improve this question
1  
What happens if you explicitly try to install the packages it complains about? E.g. sudo apt-get install linux-image-3.2.0-38-generic? –  pablomme Apr 10 '13 at 21:28
    
@pablomme - That seems to solve the issue - Thanks a lot. Sorry it took a few days to get back to this - small disaster struck! –  Hugh Apr 15 '13 at 21:03
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.