Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Can't install updates or app's.

  1. #1
    Join Date
    Oct 2023
    Beans
    11

    Can't install updates or app's.

    The problems:
    __________________________________________________ _____

    When attempting to do updates, the following is the dialog:

    Package failed to install:
    Error while installing package: installed linux-image-5.13.0-37-generic package post-removal script subprocess returned error exit status 1



    __________________________________________________ _____

    When attempting to install an application:

    Confirm package removal

    This action will also remove the following packages:
    linux-image-5.13.0-37-generic(5.13.0.37.42~20.04.1)
    linux-image-5.13.0-39-generic(5.13.0.39.44~20.04.1)


    Proceed is clicked.

    Package failed to install
    Too few items to process

    (And the install doesn’t happen.)

    __________________________________________________ _____

    What I think I did to cause this.

    - I did an in place upgrade from 20.X to 22.04.3
    - During the upgrade I was prompted about Grub as to, whether or not, I wanted to keep the existing config file. Since this OS is on a multi-boot platform (like an idiot) I elected to keep the existing config file.

    Now it appears that I can't get rid of the 20.x kernels, (5.13.0-37-generic and 5.13.0-39-generic) even when using sudo apt-get purge. My guess is that the purge script is checking the existing (old) grub config file and is finding references to the older 20.X kernels. Then, since the old kernels are referenced in the grub config file, the script refuses to remove the kernels. That's my guess but it's nothing more than speculation.

    Are there any ideas short of reinstalling?

    Thanks for the help.

  2. #2
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Can't install updates or app's.

    First... Lets see what is there in /boot. Please post the output within CODE Tags.
    Code:
    ls -lah /boot/*
    Then the results of this
    Code:
    apt list installed linux-image* linux-generic* --installed
    Then lets gather just a bit on what it thinks it is currently
    Code:
    uname -a
    lsb_release -a

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #3
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: Can't install updates or app's.

    Also please show us the complete apt output.

    Often when folks post summaries, they edit out the important information a few lines above that is frequently key to understanding the problem.

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

    Re: Can't install updates or app's.

    As I have the impression that you ran the updater through the GUI, that command is
    Code:
    sudo apt update
    sudo apt upgrade
    The output of the first isn't really important (usually), but it must be run shortly before the second. The output of the second command is what we need.
    Quote Originally Posted by jackjump View Post
    Now it appears that I can't get rid of the 20.x kernels, (5.13.0-37-generic and 5.13.0-39-generic) even when using sudo apt-get purge. My guess is that the purge script is checking the existing (old) grub config file and is finding references to the older 20.X kernels. Then, since the old kernels are referenced in the grub config file, the script refuses to remove the kernels. That's my guess but it's nothing more than speculation.
    The removal script doesn't check the grub config file. It just removes the kernel, then runs update-grub, which creates a new grub config file with whatever kernels are left. It could be that your grub update scripts are broken. Did you have anything special in there? Grub-customizer is known for causing this kind of trouble sometimes. Or maybe installation of some kernel went wrong due to lack of disk space, usually when you've got a small /boot partition.

  5. #5
    Join Date
    Oct 2023
    Beans
    11

    Re: Can't install updates or app's.

    Output:


    Code:
    (base) jack@HR-Kubuntu:~$ sudo ls -lah /boot/*
    [sudo] password for jack: 
    -rw-r--r-- 1 root root 256K Oct  2 15:33 /boot/config-5.15.0-87-generic
    lrwxrwxrwx 1 root root   28 Oct 27 11:02 /boot/initrd.img -> initrd.img-5.15.0-87-generic
    -rw-r--r-- 1 root root 106M Oct 28 09:02 /boot/initrd.img-5.15.0-87-generic
    lrwxrwxrwx 1 root root   28 Oct 28 09:10 /boot/initrd.img.old -> initrd.img-5.15.0-87-generic
    -rw-r--r-- 1 root root 179K Feb  6  2022 /boot/memtest86+.bin
    -rw-r--r-- 1 root root 181K Feb  6  2022 /boot/memtest86+.elf
    -rw-r--r-- 1 root root 181K Feb  6  2022 /boot/memtest86+_multiboot.bin
    -rw------- 1 root root 6.0M Oct  2 15:33 /boot/System.map-5.15.0-87-generic
    lrwxrwxrwx 1 root root   25 Oct 27 11:02 /boot/vmlinuz -> vmlinuz-5.15.0-87-generic
    -rw------- 1 root root  12M Oct  2 15:42 /boot/vmlinuz-5.15.0-87-generic
    lrwxrwxrwx 1 root root   25 Oct 28 09:10 /boot/vmlinuz.old -> vmlinuz-5.15.0-87-generic
    
    /boot/grub:
    total 2.4M
    drwxr-xr-x 5 root root 4.0K Oct 30 20:48 .
    drwxr-xr-x 5 root root 4.0K Oct 28 09:10 ..
    drwxr-xr-x 2 root root 4.0K Feb 18  2022 fonts
    -rw-r--r-- 1 root root  712 Aug 19  2021 gfxblacklist.txt
    -r--r--r-- 1 root root  12K Oct 28 09:03 grub.cfg
    -rw-r--r-- 1 root root  12K Oct 30 20:35 grub.cfg.bak
    -rw------- 1 root root 3.1K Oct 30 19:07 grub.cfg.new
    -rw-rw-r-- 1 root root 1.0K Oct 31 10:50 grubenv
    drwxr-xr-x 2 root root  12K Feb 18  2022 i386-pc
    drwxr-xr-x 2 root root 4.0K Feb 18  2022 themes
    -rw-r--r-- 1 root root 2.3M Oct 28 08:56 unicode.pf2
    
    /boot/lost+found:
    total 20K
    drwx------ 2 root root  16K Feb 18  2022 .
    drwxr-xr-x 5 root root 4.0K Oct 28 09:10 ..
    
    /boot/timeshift:
    total 12K
    drwxr-xr-x 3 root root 4.0K Oct 28 01:00 .
    drwxr-xr-x 5 root root 4.0K Oct 28 09:10 ..
    drwxr-xr-x 2 root root 4.0K Oct 28 01:00 snapshots
    (base) jack@HR-Kubuntu:~$
    __________________________________________________ __________________________________

    Code:
    (base) jack@HR-Kubuntu:~$ sudo apt list installed linux-image* linux-generic* --installed
    Listing... Done
    linux-generic-hwe-20.04/now 5.15.0.87.97~20.04.45 amd64 [installed,upgradable to: 5.15.0.88.85]
    linux-generic/now 5.15.0.87.84 amd64 [installed,upgradable to: 5.15.0.88.85]
    linux-image-5.13.0-37-generic/now 5.13.0-37.42~20.04.1 amd64 [installed,local]
    linux-image-5.13.0-39-generic/now 5.13.0-39.44~20.04.1 amd64 [installed,local]
    linux-image-5.15.0-87-generic/jammy-updates,jammy-security,now 5.15.0-87.97 amd64 [installed]
    linux-image-generic-hwe-20.04/now 5.15.0.87.97~20.04.45 amd64 [installed,upgradable to: 5.15.0.88.85]
    linux-image-generic/now 5.15.0.87.84 amd64 [installed,upgradable to: 5.15.0.88.85]
    (base) jack@HR-Kubuntu:~$
    __________________________________________________ __________________________________

    Code:
    (base) jack@HR-Kubuntu:~$ uname -a
    Linux HR-Kubuntu 5.15.0-87-generic #97-Ubuntu SMP Mon Oct 2 21:09:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
    (base) jack@HR-Kubuntu:~$
    __________________________________________________ __________________________________

    Code:
    (base) jack@HR-Kubuntu:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 22.04.3 LTS
    Release:        22.04
    Codename:       jammy
    (base) jack@HR-Kubuntu:~$

  6. #6
    Join Date
    Oct 2023
    Beans
    11

    Re: Can't install updates or app's.

    This is the a sample output from an attempt to install an app:

    Code:
    (base) jack@HR-Kubuntu:~$ sudo apt-get install kolourpaint
    [sudo] password for jack: 
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages will be REMOVED:
      linux-image-5.13.0-37-generic linux-image-5.13.0-39-generic
    The following NEW packages will be installed:
      kolourpaint
    0 upgraded, 1 newly installed, 2 to remove and 6 not upgraded.
    2 not fully installed or removed.
    Need to get 5,517 kB of archives.
    After this operation, 10.4 MB disk space will be freed.
    Do you want to continue? [Y/n] y
    Get:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 kolourpaint amd64 4:21.12.3-0ubuntu1 [5,517 kB]
    Fetched 5,517 kB in 5s (1,095 kB/s)      
    (Reading database ... 215206 files and directories currently installed.)
    Removing linux-image-5.13.0-37-generic (5.13.0-37.42~20.04.1) ...
    /etc/kernel/postrm.d/initramfs-tools:
    update-initramfs: Deleting /boot/initrd.img-5.13.0-37-generic
    /etc/kernel/postrm.d/zz-update-grub:
    Sourcing file `/etc/default/grub'
    Sourcing file `/etc/default/grub.d/init-select.cfg'
    Generating grub configuration file ...
    using custom appearance settings
    /etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries:  libcrypto.so.1.1: cannot open shared object file: No such file or  directory
    run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
    dpkg: error processing package linux-image-5.13.0-37-generic (--remove):
     installed linux-image-5.13.0-37-generic package post-removal script subprocess returned error exit status 1
    dpkg: too many errors, stopping
    Errors were encountered while processing:
     linux-image-5.13.0-37-generic
    Processing was halted because there were too many errors.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    (base) jack@HR-Kubuntu:~$

  7. #7
    Join Date
    Oct 2023
    Beans
    11

    Re: Can't install updates or app's.

    The outputs of sudo apt update and sudo apt upgrade:

    As it is with the previously supplied output, there seems to be a common theme. (Which, for a NOOB, is baffling.)
    __________________________________________________ _____

    Code:
    (base) jack@HR-Kubuntu:~$ sudo apt update
    Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
    Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
    Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
    Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    6 packages can be upgraded. Run 'apt list --upgradable' to see them.
    (base) jack@HR-Kubuntu:~$ sudo apt upgrade
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Calculating upgrade... Done
    The following packages were automatically installed and are no longer required:
      linux-headers-generic-hwe-20.04 linux-image-generic-hwe-20.04
    Use 'sudo apt autoremove' to remove them.
    Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
      vlc-plugin-qt libvlc5 vlc-data libvlccore9 vlc imagemagick vlc-bin vlc-l10n
      libopenexr25 libpostproc55 libmagickcore-6.q16-6-extra vlc-plugin-samba
      libavcodec58 libmagickwand-6.q16-6 vlc-plugin-notify libavutil56
      imagemagick-6.q16 libswscale5 libeditorconfig0 libmagickcore-6.q16-6
      vlc-plugin-access-extra vlc-plugin-skins2 vlc-plugin-video-splitter
      libswresample3 imagemagick-6-common vlc-plugin-video-output libavformat58
      libvlc-bin vlc-plugin-base vlc-plugin-visualization libavfilter7
    Learn more about Ubuntu Pro at https://ubuntu.com/pro
    #
    # Canonical released microcode updates for both Intel (CVE-2022-40982) and AMD
    # (CVE-2023-20593). ‘Unattended upgrades’ provide security updates by default.
    # Ensure it remains enabled to always get all updates as they become available.
    #
    The following packages will be REMOVED:
      linux-image-5.13.0-37-generic linux-image-5.13.0-39-generic
    The following NEW packages will be installed:
      linux-generic-hwe-22.04 linux-headers-5.15.0-88 linux-headers-5.15.0-88-generic
      linux-headers-6.2.0-36-generic linux-headers-generic-hwe-22.04 linux-hwe-6.2-headers-6.2.0-36
      linux-image-5.15.0-88-generic linux-image-6.2.0-36-generic linux-image-generic-hwe-22.04
      linux-modules-5.15.0-88-generic linux-modules-6.2.0-36-generic
      linux-modules-extra-5.15.0-88-generic linux-modules-extra-6.2.0-36-generic
    The following packages will be upgraded:
      linux-generic linux-generic-hwe-20.04 linux-headers-generic linux-headers-generic-hwe-20.04
      linux-image-generic linux-image-generic-hwe-20.04
    6 upgraded, 13 newly installed, 2 to remove and 0 not upgraded.
    2 not fully installed or removed.
    6 standard LTS security updates
    Need to get 0 B/242 MB of archives.
    After this operation, 1,260 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 215206 files and directories currently installed.)
    Removing linux-image-5.13.0-37-generic (5.13.0-37.42~20.04.1) ...
    /etc/kernel/postrm.d/initramfs-tools:
    update-initramfs: Deleting /boot/initrd.img-5.13.0-37-generic
    /etc/kernel/postrm.d/zz-update-grub:
    Sourcing file `/etc/default/grub'
    Sourcing file `/etc/default/grub.d/init-select.cfg'
    Generating grub configuration file ...
    using custom appearance settings
    /etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
    run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
    dpkg: error processing package linux-image-5.13.0-37-generic (--remove):
     installed linux-image-5.13.0-37-generic package post-removal script subprocess returned error exit status 1
    dpkg: too many errors, stopping
    Errors were encountered while processing:
     linux-image-5.13.0-37-generic
    Processing was halted because there were too many errors.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    (base) jack@HR-Kubuntu:~$
    __________________________________________________ _____

    The removal script doesn't check the grub config file. It just removes the kernel, then runs update-grub, which creates a new grub config file with whatever kernels are left. It could be that your grub update scripts are broken. Did you have anything special in there? Grub-customizer is known for causing this kind of trouble sometimes. Or maybe installation of some kernel went wrong due to lack of disk space, usually when you've got a small /boot partition.
    The "grub config file" theory was, admittedly, speculation. (A WAG might be a better description.) But it was the only deviation I made (saving the existing/old Grub config file) when upgrading from 20.X to 22.X. Since Grub selects the kernel to be used, well, again, the association between kernels that refuse to purge and Grub was a guess.

  8. #8
    Join Date
    Oct 2023
    Beans
    11

    Re: Can't install updates or app's.

    Sorry that I didn't reply to each of you with your replies quoted. I'm still figuring out how the forum works.

    Thanks for your patience.

  9. #9
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Can't install updates or app's.

    That's okay... Let me try to explain what I see from all that output, and tell the story it tell's...

    *** The only kernel that is currently there in the /boot folder to actually boot from is kernel 5.15.0-87-generic. ***

    That is odd, because package-wise it says that these kernels are installed:
    Code:
    linux-image-5.13.0-37-generic
    linux-image-5.13.0-39-generic
    linux-image-5.15.0-87-generic
    So the kernels for -39 and -37 didn't completely install correctly (no initramfs images present in /boot). It looks like the problems started with -37 back in 20.04... Either that, or it started to remove them , then when that failed, didn't roll anything back. It shows -87 as the current running kernel...

    Your updates are trying to install kernel versions 5.15.0-88-generic and 6.2.0-36-generic... Those are the current kernels for 22.04 in the generic and generic-hwe series.

    This starts a change of events... When Ubuntu installs a new kernel, it leaves 2 previous kernels, and tries to remove the older kernels than those.

    It sees kernel 5.15.0-87 as an installed package, is booted from that as the latest kernel.

    It's trying to remove the oldest kernels, so that after the install of the 2 new kernels that there will be the newest, and 2 older kernels (6.2.0-36, 5.15.0-88, 5.15.0-87). That would be the right things to do.

    But it can't, because it cannot remove those because there were some problems. It cannot resolve those problems on it's own.

    Did you follow that logic?



    Let's try to check if they are even available anymore through his apt system. Becaseu they were 20.04 kernels, and he is now 22.04...
    Code:
    apt list linux-*-5.13.0-37-generic
    I see those in my 22.04 results...
    Code:
    sudo update 
    sudo apt install --reinstall openssl
    sudo apt install --reinstall linux-modules-extra-5.13.0-37-generic linux-modules-extra-5.13.0-37-generic linux-headers-5.13.0-37-generic linux-image-5.13.0-37-generic
    sudo apt install --reinstall linux-modules-extra-5.13.0-39-generic  linux-modules-extra-5.13.0-39-generic linux-headers-5.13.0-39-generic  linux-image-5.13.0-39-generic
    The run your updates to see if they get removed successfully.
    Last edited by MAFoElffen; November 1st, 2023 at 03:44 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

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

    Re: Can't install updates or app's.

    Code:
    Generating grub configuration file ...
    using custom appearance settings
    /etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
    I can't find /etc/grub.d/bin/grubcfg_proxy in the official repos, neither in 20.04 nor in 22.04. I can find libcrypto.so.1.1, which is in libssl1.1, a package in the repos for 20.04, but not for 22.04. I suspect that grubcfg_proxy was installed from some third party source and wasn't removed during the upgrade. It depends on libcrypto.so.1.1, which was removed during the upgrade. So your update-grub is broken and must be fixed before any kernel can be fully installed or removed. Leaving third party software during an upgrade, especially is such a vital position as grub, may lead to trouble. May it have anything to do with those "custom appearance settings"?

    Question is: how to cleanly remove grubcfg_proxy? Maybe this will give a clue:
    Code:
    dpkg --list grub*
    dpkg --search /etc/grub.d/bin/grubcfg_proxy

Page 1 of 3 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
  •