LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Issue with linux headers (https://www.linuxquestions.org/questions/linux-server-73/issue-with-linux-headers-4175537599/)

r3b0ot 03-23-2015 07:41 AM

Issue with linux headers
 
Hi guys,

running into an issue with my linux headers. Ubuntu 12.04 server
my apt-get -f install output:

Code:

dpkg: dependency problems prevent configuration of linux-headers-server:
 linux-headers-server depends on linux-headers-3.2.0-69-generic; however:
  Package linux-headers-3.2.0-69-generic is not installed.
dpkg: error processing linux-headers-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.69.82); however:
  Version of linux-image-server on system is 3.2.0.77.91.
 linux-server depends on linux-headers-server (= 3.2.0.69.82); however:
  Package linux-headers-server is not configured yet.
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-headers-server
 linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea how to fix?

jstephens84 03-23-2015 08:52 AM

what happens if you try the following command?

Code:

sudo apt-get install linux-headers-$(uname -r)

r3b0ot 03-23-2015 08:53 AM

Code:

sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.2.0-74-generic is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-headers-server : Depends: linux-headers-3.2.0-69-generic but it is not going to be installed
 linux-server : Depends: linux-image-server (= 3.2.0.69.82) but 3.2.0.77.91 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


jstephens84 03-23-2015 09:53 AM

can you post the output of
Code:

uname -a
Did you do an upgrade recently that had a kernel update? If so are you booted into that kernel? what happens when you try to install the linux-headers with that specific version?

Code:

sudo apt-get install linux-headers-3.2.0-69-generic

r3b0ot 03-23-2015 10:10 AM

Output of uname -a:

Code:

3.2.0-74-generic #109-Ubuntu SMP Tue Dec 9 16:45:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Upgrade: it's possible but I honestly cannot remember.. :/

output of linux-headers install:

Code:

sudo apt-get install linux-headers-3.2.0-69-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-server : Depends: linux-image-server (= 3.2.0.69.82) but 3.2.0.77.91 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


jstephens84 03-23-2015 12:34 PM

Well I hate cross linking sites but this looks to be similar to your problem. http://ubuntuforums.org/showthread.php?t=2198740


All times are GMT -5. The time now is 06:33 PM.