The command I am running is:

apt-get purge linux-headers-3.16.0-30 linux-headers-3.16.0-30-generic linux-image-3.16.0-30-generic linux-image-extra-3.16.0-30-generic linux-libc-dev --assume-yes

However, during the command,apt-get wants to install packages of version 3.16.0-50. Here is the output:

The following extra packages will be installed:
  linux-generic-lts-utopic linux-headers-3.16.0-50
  linux-headers-3.16.0-50-generic linux-headers-generic-lts-utopic
  linux-image-3.16.0-50-generic linux-image-extra-3.16.0-50-generic

Suggested packages:
  fdutils linux-lts-utopic-tools

The following packages will be REMOVED:
  build-essential g++ g++-4.8 glusterfs-client glusterfs-common
  glusterfs-server libacl1-dev libattr1-dev libc6-dev libstdc++-4.8-dev
  linux-headers-3.16.0-30 linux-headers-3.16.0-30-generic
  linux-image-3.16.0-30-generic linux-image-extra-3.16.0-30-generic

Would anyone know why apt-get is installing the newer version of linux kernel 3.16.0-50 when I am trying to remove 3.16.0-30? Is there any way to prevent this?

System info

Distribution: Ubuntu 14.04.3 LTS  
Current kernel: 3.19.0-30-generic  

apt-rdepends output

apt-rdepends -r --state-follow=Installed linux-headers-3.16.0-30 

  Reverse Depends: linux-headers-3.16.0-30-generic (3.16.0-30.40~14.04.1)  
  Reverse Depends: linux-headers-3.16.0-30-lowlatency (3.16.0-30.40~14.04.1)  
  Reverse Depends: linux-headers-generic-lts-utopic (  
  Reverse Depends: linux-generic-lts-utopic (=  
  Reverse Depends: linux-headers-virtual-lts-utopic (=  
  Reverse Depends: linux-hwe-generic-trusty (  
  Reverse Depends: linux-signed-generic-lts-utopic (=  

List of all linux kernel packages

ii  linux-firmware                      1.127.15  
ii  linux-generic-lts-utopic    
ii  linux-generic-lts-vivid     
ii  linux-headers-3.16.0-30             3.16.0-30.40~14.04.1  
ii  linux-headers-3.16.0-30-generic     3.16.0-30.40~14.04.1  
ii  linux-headers-3.19.0-30             3.19.0-30.33~14.04.1  
ii  linux-headers-3.19.0-30-generic     3.19.0-30.33~14.04.1  
ii  linux-headers-generic-lts-utopic  
ii  linux-headers-generic-lts-vivid  
ii  linux-image-3.16.0-30-generic       3.16.0-30.40~14.04.1   
ii  linux-image-3.19.0-30-generic       3.19.0-30.33~14.04.1   
ii  linux-image-extra-3.16.0-30-generic 3.16.0-30.40~14.04.1   
ii  linux-image-extra-3.19.0-30-generic 3.19.0-30.33~14.04.1  
ii  linux-image-generic-lts-utopic  
ii  linux-image-generic-lts-vivid  
ii  linux-libc-dev:amd64                3.13.0-65.105 

apt-cache show linux-generic-lts-utopic

Depends: linux-image-generic-lts-utopic (=, linux-headers-generic-lts-utopic (=  

apt-cache show linux-image-generic-lts-utopic

Depends: linux-image-3.16.0-30-generic, linux-image-extra-3.16.0-30-generic, linux-firmware

apt-cache show linux-headers-generic-lts-utopic

Depends: linux-headers-3.16.0-30-generic

apt-get in debug mode:

Broken linux-image-generic-lts-utopic:amd64 Depends on linux-image-3.16.0-50-generic  
Broken linux-headers-generic-lts-utopic:amd64 Depends on linux-headers-3.16.0-50-generic  
  • This is probably because you have the generic linux 3.6 packages installed. Please post the output of the following (in the question, not in a comment) dpkg -l | grep linux-image and also dpkg -l | grep linux-headers. By generic I mean something like linux-image-amd64. This needs to depend on something, so my guess is that it is pulling a different version of 3.16. Also post the output of apt-cache policy. And what is your distribution and version? Commented Oct 14, 2015 at 0:13
  • Distribution: Ubuntu 14.04.3 LTS, Current kernel: 3.19.0-30-generic
    – Minh La
    Commented Oct 14, 2015 at 0:45
  • Ok, also, please paste text rather than images. It's easier for a number of reasons, including page size, ability to cut and paste, and ability to search. Also put other information like distribution into the question too. Also, please state what you are trying to do. Are you trying to remove all 3.16 packages from your system, leaving only 3.19 packages? If so, the simplest thing would be to remove all linux related packages with version 3.16 from your system. Make sure you are running 3.19 first, of course. Commented Oct 14, 2015 at 0:56
  • yes, I want to only keep 3.19 packages and remove all of 3.16 packages. I can remove of 3.16 packages if I try to remove 3.16.0-30, then 3.16.0-50 with the command in the original question. However, I want to understand the behavior of why linux wants to install 3.16.0-50 when I'm trying to remove 3.16.0-30.
    – Minh La
    Commented Oct 14, 2015 at 1:14
  • Please rerun your apt-get command with the addition of -o Debug::pkgProblemResolver=true, paste into your question, and please don't use an image. And get rid of the images you have, please. Thanks. Commented Oct 14, 2015 at 1:19

1 Answer 1


The linux-generic-lts-utopic depends on 3.16.0-30. If 3.16.0-30 is removed, apt-get will install 3.16.0-50 as a dependency to replace 3.16.0-30. Thus, removing linux-generic-lts-utopic first will remove any dependency and will allow a clean purging of all 3.16.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .