Page 1 of 6 123 ... LastLast
Results 1 to 10 of 58

Thread: Errors during autoremove

  1. #1
    Join Date
    Mar 2007
    Beans
    78

    Question Errors during autoremove

    For 2 years I've been using v18.04. Trying to makeupgrades I was suggested by the system to:
    Code:
    sudo apt autoremove
    The following packages will be REMOVED:
    linux-headers-4.15.0-106 linux-headers-4.15.0-106-generic linux-image-4.15.0-106-generic
    linux-modules-4.15.0-106-generic linux-modules-extra-4.15.0-106-generic
    0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
    9 not fully installed or removed.
    After this operation, 333 MB disk space will be freed.
    Sourcing file `/etc/default/grub'
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.15.0-109-generic
    Found initrd image: /boot/initrd.img-4.15.0-109-generic
    Found linux image: /boot/vmlinuz-4.15.0-108-generic
    Found initrd image: /boot/initrd.img-4.15.0-108-generic
    Found linux image: /boot/vmlinuz-4.15.0-91-generic
    Found initrd image: /boot/initrd.img-4.15.0-91-generic
    Found Ubuntu 16.04.4 LTS (16.04) on /dev/sdc2
    Found Ubuntu 18.04.4 LTS (18.04) on /dev/sdd1
    Adding boot menu entry for EFI firmware configuration
    done
    Removing linux-headers-4.15.0-106-generic (4.15.0-106.107) ...
    Removing linux-headers-4.15.0-106 (4.15.0-106.107) ...
    Removing linux-modules-4.15.0-106-generic (4.15.0-106.107) ...
    Setting up initramfs-tools (0.130ubuntu3.9) ...
    update-initramfs: deferring update (trigger activated)
    Setting up linux-image-4.15.0-109-generic (4.15.0-109.110) ...
    Setting up linux-image-4.15.0-108-generic (4.15.0-108.109) ...
    Setting up linux-image-4.15.0-91-generic (4.15.0-91.92) ...
    Setting up linux-firmware (1.173.18) ...
    update-initramfs: Generating /boot/initrd.img-4.15.0-109-generic
    Fatal: open /boot/vmlinuz-4.15.0-76-generic: No such file or directory
    run-parts: /etc/initramfs/post-update.d//runlilo exited with return code 1
    dpkg: error processing package linux-firmware (--configure):
    installed linux-firmware package post-installation script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of linux-image-generic:
    linux-image-generic depends on linux-firmware; however:
    Package linux-firmware is not configured yet.
    ...... the list continues ....
    Code:
    uname -r
    4.15.0-108-generic
    Code:
    dpkg --list 'linux-image*'
    rc linux-image-4.15.0-10 4.15.0-101.102 amd64 Signed kernel image generic
    rc linux-image-4.15.0-10 4.15.0-106.107 amd64 Signed kernel image generic
    iF linux-image-4.15.0-10 4.15.0-108.109 amd64 Signed kernel image generic
    iF linux-image-4.15.0-10 4.15.0-109.110 amd64 Signed kernel image generic
    rc linux-image-4.15.0-20 4.15.0-20.21 amd64 Signed kernel image generic
    rc linux-image-4.15.0-22 4.15.0-22.24 amd64 Signed kernel image generic
    rc linux-image-4.15.0-23 4.15.0-23.25 amd64 Signed kernel image generic
    ...... several more .....
    rc linux-image-4.15.0-99 4.15.0-99.100 amd64 Signed kernel image generic
    iU linux-image-generic 4.15.0.109.97 amd64 Generic Linux kernel image
    Mybe more information is needed. Despite the errors marked the process continues with some errors and finally ended with
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Thanks for any help.

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,647
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Errors during autoremove

    marciano#1 - Hello

    The line(s) " iF linux-image-4.15.0-10 4.15.0-109.110 ; iU linux-image-generic 4.15.0.109.97" suggest to me that at some point you ran short of disk space in /boot.
    Show us what we have now for disk space:
    Code:
    df -h
    df -i
    And what kernel you are booting presently:
    Code:
    uname -r
    See then what it will take to straighten the kernels up.

    all in the process
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Mar 2007
    Beans
    78

    Re: Errors during autoremove

    Code:
    df -h
    https://pastebin.com/VKCAuZn7
    Code:
    df -i
    https://pastebin.com/fNUT761F

    Code:
    uname -r
    4.15.0-108-generic
    I usually make updates from Desktop updates, not from shell.
    Because of an error I went to command shell.
    I don't know what to do with that data.
    Thank you

  4. #4
    Join Date
    May 2010
    Beans
    468

    Re: Errors during autoremove

    what is the output of:
    Code:
    dpkg -l | grep linux-image | grep -v extra
    Thanks

  5. #5
    Join Date
    Mar 2007
    Beans
    78

    Re: Errors during autoremove

    Code:
    dpkg -l | grep linux-image | grep -v extra
    https://pastebin.com/5LD7RbK7

    Thank you!

  6. #6
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,647
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Errors during autoremove

    marciano#1; Well -

    So far so good; we do have operating head room.

    Let's first off clean out the 'rc' ( removed but config files remain) cruft:
    While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package.
    Code:
    dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P
    Now let's have a fresh look at what we are working toward:
    Code:
    dpkg -l | grep linux-
    See what else needs attention besides linux-image-generic.

    next step in that process
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  7. #7
    Join Date
    Mar 2007
    Beans
    78

    Re: Errors during autoremove

    Here we go.
    After:
    Code:
    dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P
    dpkg -l | grep linux-
    https://pastebin.com/DZCPkyD3

  8. #8
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,647
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Errors during autoremove

    marciano#1; Hey -

    Looking promising,

    Let's see if apt will work its magic to fix the 109 version kernel -
    run:
    Code:
    sudo apt install --reinstall linux-generic
    which should pull in the missing 109 dependencies.
    If so then we shift our attention to the 108 version kernel fixes.

    we can do that
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  9. #9
    Join Date
    Mar 2007
    Beans
    78

    Re: Errors during autoremove

    Here it is the reinstall
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 17 not upgraded.
    8 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    E: Internal Error, No file name for linux-generic:amd64

  10. #10
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,647
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: Errors during autoremove

    marciano#1; Wow !

    Totally unexpected " Internal Error, No file name for linux-generic:amd64"
    Ouch !
    as we also have
    and 17 not upgraded.
    show us the results of terminal commands:
    Code:
    sudo apt update
    sudo apt full-upgrade
    Maybe get a better hint of a way forward.

    make the process work and work the process
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

Page 1 of 6 123 ... LastLast

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
  •