Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: dpkg: error processing linux-headers-generic-pae (--configure)

  1. #1
    Join Date
    Sep 2013
    Beans
    7

    Question dpkg: error processing linux-headers-generic-pae (--configure)

    Hey,
    I need some help and I am an absolute beginner in this. My computer can not find any wireless connections, it suddenly stopped working. At the same time (I dont know if its related) I noticed that the space was full on my computer (partitioned into 4), I cleaned it now but I cant delete any programs because I have to repaire something first (I dont understand what it is but it say so everytime I try). But, I cant repaire this thing because I get this:

    installArchives() failed: (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 621428 files and directories currently installed.)
    Unpacking linux-headers-3.5.0-40 (from .../linux-headers-3.5.0-40_3.5.0-40.62_all.deb) ...
    dpkg: error processing /var/cache/apt/archives/linux-headers-3.5.0-40_3.5.0-40.62_all.deb (--unpack):
    unable to create `/usr/src/linux-headers-3.5.0-40/arch/m32r/include/asm/sections.h.dpkg-new' (while processing `./usr/src/linux-headers-3.5.0-40/arch/m32r/include/asm/sections.h'): No space left on device
    No apport report written because MaxReports is reached already
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Unpacking linux-headers-3.5.0-40-generic (from .../linux-headers-3.5.0-40-generic_3.5.0-40.62_i386.deb) ...
    dpkg: error processing /var/cache/apt/archives/linux-headers-3.5.0-40-generic_3.5.0-40.62_i386.deb (--unpack):
    unable to create `/usr/src/linux-headers-3.5.0-40-generic/include/config/usb/r8a66597.h.dpkg-new' (while processing `./usr/src/linux-headers-3.5.0-40-generic/include/config/usb/r8a66597.h'): No space left on device
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
    /var/cache/apt/archives/linux-headers-3.5.0-40_3.5.0-40.62_all.deb
    /var/cache/apt/archives/linux-headers-3.5.0-40-generic_3.5.0-40.62_i386.deb
    Error in function:
    dpkg: dependency problems prevent configuration of linux-headers-generic:
    linux-headers-generic depends on linux-headers-3.5.0-40-generic; however:
    Package linux-headers-3.5.0-40-generic is not installed.

    dpkg: error processing linux-headers-generic (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-headers-generic-pae:
    linux-headers-generic-pae depends on linux-headers-generic; however:
    Package linux-headers-generic is not configured yet.

    dpkg: error processing linux-headers-generic-pae (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-generic:
    linux-generic depends on linux-headers-generic; however:
    Package linux-headers-generic is not configured yet.

    dpkg: error processing linux-generic (--configure):
    dependency problems - leaving unconfigured

    Do anyone know what this mean? and how I solve it?

    Thank you in advance!!

  2. #2
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,822
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    It appears that the partition with /usr/src is full. Best to find out why. See here for the way to troubleshoot this. Report back when you can't solve your problem with the information given there and show us the results from the commands given there (the problem is probably point 6a, 6d or 6f). Better to ask than to guess and cause even more trouble.

    Post any output in code tags. This is better readable.

    When we've solved the disk space problem we can target the wifi problem.

  3. #3
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    Something else to check is your /boot. It may be full.

    unable to create `/usr/src/linux-headers-3.5.0-40/arch/m32r/include/asm/sections.h.dpkg-new' (while processing `./usr/src/linux-headers-3.5.0-40/arch/m32r/include/asm/sections.h'): No space left on device
    No apport report written because MaxReports is reached already
    Open a terminal and enter:

    Code:
    ls /boot
    If you have several kernels there, you need to remove the old ones. If your not sure, please post the output of that command.

    There are several ways to remove old kernels.

    http://www.googlubuntu.com/results/?...ch&cof=FORID:9

    One of the easiest ways is with Ubuntu Tweak

  4. #4
    Join Date
    Sep 2013
    Beans
    7

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    Thank you so much for the reply! But I dont really understand the descriptions in the link., and Im afraid of moving the kernel Im using, because I really dont know what Im doing. I tried to download Ubuntu Tweak that you mentioned but the programcentral says that it cant be installed because I have to repair something (as before) first.
    The terminal says:

    :~$ ls /boot
    abi-3.5.0-17-generic initrd.img-3.5.0-30-generic
    abi-3.5.0-19-generic initrd.img-3.5.0-31-generic
    abi-3.5.0-21-generic initrd.img-3.5.0-32-generic
    abi-3.5.0-22-generic initrd.img-3.5.0-34-generic
    abi-3.5.0-23-generic initrd.img-3.5.0-36-generic
    abi-3.5.0-25-generic initrd.img-3.5.0-37-generic
    abi-3.5.0-26-generic initrd.img-3.5.0-39-generic
    abi-3.5.0-27-generic initrd.img-3.5.0-40-generic
    abi-3.5.0-28-generic memtest86+.bin
    abi-3.5.0-30-generic memtest86+_multiboot.bin
    abi-3.5.0-31-generic System.map-3.5.0-17-generic
    abi-3.5.0-32-generic System.map-3.5.0-19-generic
    abi-3.5.0-34-generic System.map-3.5.0-21-generic
    abi-3.5.0-36-generic System.map-3.5.0-22-generic
    abi-3.5.0-37-generic System.map-3.5.0-23-generic
    abi-3.5.0-39-generic System.map-3.5.0-25-generic
    abi-3.5.0-40-generic System.map-3.5.0-26-generic
    config-3.5.0-17-generic System.map-3.5.0-27-generic
    config-3.5.0-19-generic System.map-3.5.0-28-generic
    config-3.5.0-21-generic System.map-3.5.0-30-generic
    config-3.5.0-22-generic System.map-3.5.0-31-generic
    config-3.5.0-23-generic System.map-3.5.0-32-generic
    config-3.5.0-25-generic System.map-3.5.0-34-generic
    config-3.5.0-26-generic System.map-3.5.0-36-generic
    config-3.5.0-27-generic System.map-3.5.0-37-generic
    config-3.5.0-28-generic System.map-3.5.0-39-generic
    config-3.5.0-30-generic System.map-3.5.0-40-generic
    config-3.5.0-31-generic vmlinuz-3.5.0-17-generic
    config-3.5.0-32-generic vmlinuz-3.5.0-19-generic
    config-3.5.0-34-generic vmlinuz-3.5.0-21-generic
    config-3.5.0-36-generic vmlinuz-3.5.0-22-generic
    config-3.5.0-37-generic vmlinuz-3.5.0-23-generic
    config-3.5.0-39-generic vmlinuz-3.5.0-25-generic
    config-3.5.0-40-generic vmlinuz-3.5.0-26-generic
    extlinux vmlinuz-3.5.0-27-generic
    grub vmlinuz-3.5.0-28-generic
    initrd.img-3.5.0-17-generic vmlinuz-3.5.0-30-generic
    initrd.img-3.5.0-19-generic vmlinuz-3.5.0-31-generic
    initrd.img-3.5.0-21-generic vmlinuz-3.5.0-32-generic
    initrd.img-3.5.0-22-generic vmlinuz-3.5.0-34-generic
    initrd.img-3.5.0-23-generic vmlinuz-3.5.0-36-generic
    initrd.img-3.5.0-25-generic vmlinuz-3.5.0-37-generic
    initrd.img-3.5.0-26-generic vmlinuz-3.5.0-39-generic
    initrd.img-3.5.0-27-generic vmlinuz-3.5.0-40-generic
    initrd.img-3.5.0-28-generic


    Thanks again
    Last edited by zgur; September 20th, 2013 at 06:05 PM.

  5. #5
    Join Date
    Sep 2013
    Beans
    7

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    I tried
    sudo apt-get autoremove linux-image-3.5.0-17-generic linux-image-3.5.0-19-generic etc.

    But I doesnt work. My terminal is in swedish but Ill try to translate I get something like:

    skogsmulle@skogen:~$ sudo apt-get autoremove linux-image-3.5.0-17-generic linux-image-3.5.0-19-generic
    [sudo] password for skogsmulle:
    Reading paketlists... Done
    Building dependency tree
    Reading stateinformation... Done
    You should try "apt-get -f install" to correct these:
    The following pakets have depenency that can not be satisfied:
    linux-headers-generic : depended of: linux-headers-3.5.0-40-generic but will not be installed
    linux-image-extra-3.5.0-17-generic : depended of: linux-image-3.5.0-17-generic but will not be installed linux-image-extra-3.5.0-19-generic
    : depended of: linux-image-3.5.0-19-generic but will not be installed
    E: Unsatisfied values/dependencies. Try "apt-get -f install" without paket (or define other solution).
    skogsmulle@skogen:~$

    I did 6c,6d, 6e and 6f but I dont see any .gz files, and I dont know what the others are, so I didnt remove them. I tried 6a, with the kernels, but it seems like I dont have space enough to install synaptic. And I dont now what the "/usr/src" is, its seems like it contains a lot of "linux headers" and "linux-headers generic", whats that? Can I delete them? (I see them in my disc-analyzer, and there is a "remove"-option) Otherwise, Im a bit scared of resizing my partitions, if that is the alternative.

    I can still not delete any kind of program, it asks me if Im using a third-part program. If I could, I would save a lot of space
    Last edited by zgur; September 20th, 2013 at 08:57 PM.

  6. #6
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,822
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    When you get the package manager working again you can uninstall all packages with version numbers 3.5.0-17 to 3.5.0-37. If you weren't using the latest one you'd know. This will just keep one old version as a backup.

    But first your package manager must work again. Try
    Code:
    df -Th
    sudo du --max-depth=2 / | sort -n | tail -n20
    This should tell more about your partitions, which one is full and where your big directories are. The second command may take some time to run. When you've found a large directory you can try replacing the / in that command with the name of the large directory (including the / at the beginning) and run it again to zero in on the offending directory. If there is one, of course.

    Don't bother translating the swedish. We know the column headings well enough to understand anyway.

  7. #7
    Join Date
    Sep 2013
    Beans
    7

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    From the first command:
    Filsystem Typ Storlek Använt Ledigt Anv% Monterat på
    /dev/sda6 ext4 9,8G 8,5G 778M 92% /
    udev devtmpfs 1,5G 4,0K 1,5G 1% /dev
    tmpfs tmpfs 597M 1016K 596M 1% /run
    none tmpfs 5,0M 0 5,0M 0% /run/lock
    none tmpfs 1,5G 156K 1,5G 1% /run/shm
    none tmpfs 100M 48K 100M 1% /run/user
    /dev/sda5 ext4 65G 25G 37G 41% /home
    /dev/sda2 fuseblk 69G 48G 21G 71% /media/skogsmulle/ddrev

    From the second, it says I dont have access and that the file or catalog doesnt exists:
    (no access)
    du: kan inte komma åt ”/run/user/skogsmulle/gvfs”: Åtkomst nekas
    du: kan inte komma åt ”/proc/17122/task/17122/fd/4”: Filen eller katalogen finns inte
    du: kan inte komma åt ”/proc/17122/task/17122/fdinfo/4”: Filen eller katalogen finns inte
    du: kan inte komma åt ”/proc/17122/fd/4”: Filen eller katalogen finns inte
    du: kan inte komma åt ”/proc/17122/fdinfo/4”: Filen eller katalogen finns inte
    141080 /opt/google
    181108 /opt/Adobe
    230024 /var/cache
    268664 /usr/bin
    310212 /var/lib
    335904 /opt
    395112 /home/jon
    405084 /boot
    575700 /var
    1547140 /usr/share
    1629428 /usr/src
    1814368 /usr/lib
    1984040 /lib/modules
    2064600 /lib
    5340140 /usr
    25499412 /home/skogsmulle
    25894544 /home
    50079608 /media/skogsmulle
    50079616 /media
    84733436 /
    skogsmulle@skogen:~$

    I dont undestand what this means: "try replacing the / in that command with the name of the large directory (including the / at the beginning) and run it again to zero in on the offending directory". I dont think i interpreted it rights but I tried this anyway: sudo du --max-depth=2 /dev/sda6 | sort -n | tail -n20 and got:
    0 /dev/sda6

  8. #8
    Join Date
    Sep 2013
    Beans
    7

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    Do you think I can try this?:
    dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

  9. #9
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,822
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    I meant that is for example /usr/src were very large, you could have tried sudo du --max-depth=2 /usr/src ... to find which directory in /usr/src was large.

    Your root directory is full. Your root partition isn't particularly large. I usually recommend a larger root partition, but since you already have it like this it's best to keep it this small until you need to reinstall or upgrade to a new Ubuntu anyway. The oversized directories are /usr/src and /lib/modules. Both contain data from each kernel version you have installed, so removing some old kernels should work.

    I think that complicated command will try to uninstall old kernels. It's difficult to check, but if you got it from this forum it's probably safe. But as long as your package manager is in an inconsistent state it may not work. In that case, delete some files from /boot, /usr/src or /lib/modules. Only delete files with old version numbers or from directories with old version numbers and make sure you really delete them, not send them to trash. Use the sudo rm terminal command or use shift-delete in the graphical file manager. This should give you a GB of extra free space. Next try to repair your package system with sudo apt-get -f install and then properly uninstall the old kernel and header packages. Old is anything with version numbers below 3.5.0-38.

    Your root partition will remain tight so you'll have to keep an eye on it. Uninstall old kernels and headers after each kernel update. Delete things you don't need anymore.

  10. #10
    Join Date
    Sep 2013
    Beans
    7

    Re: dpkg: error processing linux-headers-generic-pae (--configure)

    I dont understand how I should delete the files, and how I can see what size they are. I tried the sudo rm, but it says that the catalog doesnt exists. I tried rm -r -f, but I dont really know what it means and it didnt work. I dont think I have a graphical file manager on my computer, cant find it, so think I have to do it in the terminal.

    Code:
    skogsmulle@skogen:~$ sudo du --max-depth=2 /usr/src | sort -n | tail -n20
    [sudo] password for skogsmulle: 
    48648    /usr/src/linux-headers-3.5.0-37/arch
    48648    /usr/src/linux-headers-3.5.0-39/arch
    48980    /usr/src/linux-headers-3.5.0-25/arch
    89856    /usr/src/linux-headers-3.5.0-17
    89912    /usr/src/linux-headers-3.5.0-19
    89948    /usr/src/linux-headers-3.5.0-22
    89948    /usr/src/linux-headers-3.5.0-23
    89956    /usr/src/linux-headers-3.5.0-21
    89992    /usr/src/linux-headers-3.5.0-30
    89996    /usr/src/linux-headers-3.5.0-28
    89996    /usr/src/linux-headers-3.5.0-31
    89996    /usr/src/linux-headers-3.5.0-36
    90000    /usr/src/linux-headers-3.5.0-27
    90000    /usr/src/linux-headers-3.5.0-34
    90004    /usr/src/linux-headers-3.5.0-26
    90004    /usr/src/linux-headers-3.5.0-32
    90008    /usr/src/linux-headers-3.5.0-39
    90012    /usr/src/linux-headers-3.5.0-37
    90524    /usr/src/linux-headers-3.5.0-25
    1629428    /usr/src
    skogsmulle@skogen:~$ ls /usr/src
    bcmwl-5.100.82.112+bdcom        linux-headers-3.5.0-28
    linux-headers-3.5.0-17          linux-headers-3.5.0-28-generic
    linux-headers-3.5.0-17-generic  linux-headers-3.5.0-30
    linux-headers-3.5.0-19          linux-headers-3.5.0-30-generic
    linux-headers-3.5.0-19-generic  linux-headers-3.5.0-31
    linux-headers-3.5.0-21          linux-headers-3.5.0-31-generic
    linux-headers-3.5.0-21-generic  linux-headers-3.5.0-32
    linux-headers-3.5.0-22          linux-headers-3.5.0-32-generic
    linux-headers-3.5.0-22-generic  linux-headers-3.5.0-34
    linux-headers-3.5.0-23          linux-headers-3.5.0-34-generic
    linux-headers-3.5.0-23-generic  linux-headers-3.5.0-36
    linux-headers-3.5.0-25          linux-headers-3.5.0-36-generic
    linux-headers-3.5.0-25-generic  linux-headers-3.5.0-37
    linux-headers-3.5.0-26          linux-headers-3.5.0-37-generic
    linux-headers-3.5.0-26-generic  linux-headers-3.5.0-39
    linux-headers-3.5.0-27          linux-headers-3.5.0-39-generic
    linux-headers-3.5.0-27-generic
    skogsmulle@skogen:~$ sudo rm linux-headers-3.5.0-17
    [sudo] password for skogsmulle: 
    Sorry, try again.
    [sudo] password for skogsmulle: 
    rm: kan inte ta bort ”linux-headers-3.5.0-17”: Filen eller katalogen finns inte
    skogsmulle@skogen:~$ 
    skogsmulle@skogen:~$ sudo rm -r -f linux-headers-3.5.0-17
    skogsmulle@skogen:~$ sudo rm -r -f linux-headers-3.5.0-17/
    skogsmulle@skogen:~$
    I appreciate your help although Im asking over and over again because I dont understand much. I really like ubuntu, but its hard when things like this comes up sometimes, and I dont know anything about programming and codes. Thank you!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •