Results 1 to 7 of 7

Thread: dpkg problems

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Location
    New York, US
    Beans
    26
    Distro
    Ubuntu 11.04 Natty Narwhal

    dpkg problems

    I have been getting this error. I am currently running xubuntu 8.04.4 on a really old laptop. I can't seem to solve it the way apt is asking me to. Here is what I am getting:

    kevin@kevin-laptop:~$ sudo dpkg --configure -a
    [sudo] password for kevin:
    Setting up linux-ubuntu-modules-2.6.24-28-generic (2.6.24-28.47) ...
    update-initramfs: Generating /boot/initrd.img-2.6.24-28-generic
    touch: cannot touch `/boot/initrd.img-2.6.24-28-generic.new': No such file or directory
    /usr/sbin/mkinitramfs: 279: cannot create /boot/initrd.img-2.6.24-28-generic.new: Directory nonexistent
    update-initramfs: failed for /boot/initrd.img-2.6.24-28-generic
    dpkg: error processing linux-ubuntu-modules-2.6.24-28-generic (--configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    linux-ubuntu-modules-2.6.24-28-generic

    Any help in solving this problem would be greatly appreciated.

  2. #2
    Join Date
    Apr 2006
    Location
    Jefferson, Wi
    Beans
    79
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: dpkg problems

    What happened initially for you to have to use sudo dpkg --configure -a?

  3. #3
    Join Date
    Aug 2008
    Location
    New York, US
    Beans
    26
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: dpkg problems

    a failed update of the same package

  4. #4
    Join Date
    Apr 2006
    Location
    Jefferson, Wi
    Beans
    79
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: dpkg problems

    Okay, seems like I've already answered this question once tonight, so it should be simple. Open a terminal and type:
    Code:
    cd /var/lib/dpkg/updates
    sudo rm -rf ./*
    sudo apt-get update && sudo apt-get upgrade

  5. #5
    Join Date
    Aug 2008
    Location
    New York, US
    Beans
    26
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: dpkg problems

    thanks so much for your quick reply still no dice though. there was nothing in that directory but I tried anyways, error returned:

    update-initramfs: Generating /boot/initrd.img-2.6.24-28-generic
    touch: cannot touch `/boot/initrd.img-2.6.24-28-generic.new': No such file or directory
    /usr/sbin/mkinitramfs: 279: cannot create /boot/initrd.img-2.6.24-28-generic.new: Directory nonexistent
    update-initramfs: failed for /boot/initrd.img-2.6.24-28-generic
    dpkg: error processing linux-ubuntu-modules-2.6.24-28-generic (--configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    linux-ubuntu-modules-2.6.24-28-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  6. #6
    Join Date
    Aug 2008
    Location
    New York, US
    Beans
    26
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: dpkg problems

    yea... still haven't figured this one out. I might just do a clean install if I can't figure anything else out

Tags for this Thread

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
  •