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

Asked by Dan

I've had this problem for a while. I've been all over the ubuntu forums trying to solve this but I cant install anything.

$ sudo apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.13.0-24-generic (3.13.0-24.47) ...
Running depmod.
Failed to run depmod
dpkg: error processing package linux-image-3.13.0-24-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-24-generic:
 linux-image-extra-3.13.0-24-generic depends on linux-image-3.13.0-24-generic; however:
  Package linux-image-3.13.0-24-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.13.0-24-generic (--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-3.13.0-24-generic
 linux-image-extra-3.13.0-24-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

I can't figure out how to fix this.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output of the following commands

uname -a
lsb_release -crid
dpkg -l | grep ' linux-i'
sudo depmod -a 3.13.0-24-generic

Revision history for this message
Dan (danbrackney) said :
#2

uname -a
Linux dan-H61H2-I 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

$ dpkg -l |grep 'linux-i'
iF linux-image-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-65-generic 3.13.0-65.106 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-66-generic 3.13.0-66.108 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-74-generic 3.13.0-74.118 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-85-generic 3.13.0-85.129 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-86-generic 3.13.0-86.131 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-4.4.0-36-generic 4.4.0-36.55 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-38-generic 4.4.0-38.57 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
iU linux-image-extra-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-65-generic 3.13.0-65.106 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-66-generic 3.13.0-66.108 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-74-generic 3.13.0-74.118 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-85-generic 3.13.0-85.129 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-36-generic 4.4.0-36.55 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-38-generic 4.4.0-38.57 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-generic 4.4.0.38.40 amd64 Generic Linux kernel image

$ sudo depmod -a 3.13.0-24-generic
Bus error (core dumped)

Revision history for this message
Dan (danbrackney) said :
#3

now im getting this after trying to do fix this for the past few hours.

sudo apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.13.0-24-generic (3.13.0-24.47) ...
Running depmod.
Failed to run depmod
dpkg: error processing package linux-image-3.13.0-24-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-24-generic:
 linux-image-extra-3.13.0-24-generic depends on linux-image-3.13.0-24-generic; however:
  Package linux-image-3.13.0-24-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.13.0-24-generic (--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-3.13.0-24-generic
 linux-image-extra-3.13.0-24-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

What is the output of:

df -h

Thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Try

sudo dpkg -P linux-image-extra-3.13.0-24-generic linux-image-3.13.0-24-generic

and report the results.

Revision history for this message
Chandan dwivedi (chandandwivedi) said :
#6

same problem with me what i do i'm using 14.04 ubuntu

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

@Chandar dwivedi:
Please do not piggyback on somebody else's question, but create a question document of your own.

Can you help with this problem?

Provide an answer of your own, or ask Dan for more information if necessary.

To post a message you must log in.