Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32

Thread: Can NOT remove four linux-images, so can't update software.

  1. #21
    Join Date
    Jun 2010
    Beans
    532

    Re: Can NOT remove four linux-images, so can't update software.

    I tried in synaptic to re-install grub-pc, but it can not because of the 17(?) linux-images it can't uninstall that it says it needs to....I'm still at the initial problem....I can't do much because of the 'stuck' unremovable or partly-instlaled images.
    Last edited by crazybear; March 21st, 2017 at 09:14 PM.

  2. #22
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,201
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Can NOT remove four linux-images, so can't update software.

    crazybear; Hey;

    Looking much cleaner now ,
    However we still have this sloppyation:
    iU linux-generic
    iU linux-image-generic
    where the 'iU' means : i is the desired state (installed) and U is unpacked but not configured . We must at some point get these fully installed.

    And this has to go as it is End_Of_Life:
    iU linux-generic-lts-vivid
    And requiring attention is all these files marked :
    rH linux-image-3.13.0-54-generic
    where here the r is removed and the H means Half installed . need to get rid of all the old remnants - some how !

    At this point may be easier to remove manually, breaking the package manager real bad . Once all kernel files are consistent we then have the package manager "heal it's self ' . Now that is my opinion !

    Were me I would look at :
    Code:
    ls -al /usr/src/
    ls -al /lib/modules/
    ls -al /boot/
    dpkg -l | grep linux
    Make these directories all agree, re-install linux-generic and inux-image-generic ( if we can at this point ) . Then heal the package manager .

    make sense ?
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #23
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Can NOT remove four linux-images, so can't update software.

    Quote Originally Posted by crazybear View Post
    Ah, do I really want to remove grub? and whatever it will uninstall with it? Will I be able to just re-install each item removed without having to resort to a grub-rescue disk? I'll at least wait to see what damage, if any, I've done with the terminal 'move' posted above, before I try this. I had a LOT deleted and want to move slowly here, least I have to totally re-install 16.04 - which was not a lot of fun nor as simple as 'people say' by a LOOOOOOOONNNNG shot.
    You will be fine if you make sure you first run the command to purge the grub packages in your system and then immediately, ie, without shutting down, (or you would be in trouble), install all the packages that you just removed. The terminal will tell you the names of those removed so you can just copy those back into an install command.

    What I am hoping will happen is that the purging command will remove all configurations that may be causing that error noticed by impavidus, and we can then reinstall all the grub packages with new configuration.

    Keep your fingers crossed!
    If none of this helps I am beginning to wonder if the easiest way out of your problem might be a reinstallation of the OS; it looks as if you may have updated distro version a couple of times already which may be why you appear to have so many errant and unwanted kernels, so a clean reinstallation my give you a clean start.

  4. #24
    Join Date
    Jun 2010
    Beans
    532

    Re: Can NOT remove four linux-images, so can't update software.

    Quote Originally Posted by Bashing-om View Post
    crazybear; Hey;

    Looking much cleaner now ,
    However we still have this sloppyation:

    where the 'iU' means : i is the desired state (installed) and U is unpacked but not configured . We must at some point get these fully installed.

    And this has to go as it is End_Of_Life:

    And requiring attention is all these files marked :

    where here the r is removed and the H means Half installed . need to get rid of all the old remnants - some how !

    At this point may be easier to remove manually, breaking the package manager real bad . Once all kernel files are consistent we then have the package manager "heal it's self ' . Now that is my opinion !

    Were me I would look at :
    Code:
    ls -al /usr/src/
    ls -al /lib/modules/
    ls -al /boot/
    dpkg -l | grep linux
    Make these directories all agree, re-install linux-generic and inux-image-generic ( if we can at this point ) . Then heal the package manager .
    make sense ?
    Yes, makes sense. To my untrained they don't agree. I still see iU and rH entries for the last query:

    Code:
    ~$ ls -al /usr/src/
    total 120
    drwxr-xr-x 30 root root 4096 Mar 21 20:45 .
    drwxr-xr-x 14 root root 4096 Apr 28  2016 ..
    drwxr-xr-x  3 root root 4096 May 15  2016 libdvd-pkg
    drwxr-xr-x 24 root root 4096 Jun  7  2015 linux-headers-3.13.0-54
    drwxr-xr-x  7 root root 4096 Jun  7  2015 linux-headers-3.13.0-54-generic
    drwxr-xr-x 24 root root 4096 Jun 25  2015 linux-headers-3.13.0-57
    drwxr-xr-x  7 root root 4096 Jun 25  2015 linux-headers-3.13.0-57-generic
    drwxr-xr-x 24 root root 4096 Jul 30  2015 linux-headers-3.13.0-59
    drwxr-xr-x  7 root root 4096 Jul 30  2015 linux-headers-3.13.0-59-generic
    drwxr-xr-x 24 root root 4096 Aug 13  2015 linux-headers-3.13.0-62
    drwxr-xr-x  7 root root 4096 Aug 13  2015 linux-headers-3.13.0-62-generic
    drwxr-xr-x 24 root root 4096 Aug 19  2015 linux-headers-3.13.0-63
    drwxr-xr-x  7 root root 4096 Aug 19  2015 linux-headers-3.13.0-63-generic
    drwxr-xr-x 24 root root 4096 Mar 11  2016 linux-headers-3.13.0-79
    drwxr-xr-x  7 root root 4096 Mar 11  2016 linux-headers-3.13.0-79-generic
    drwxr-xr-x 24 root root 4096 Mar 11  2016 linux-headers-3.19.0-51
    drwxr-xr-x  7 root root 4096 Mar 11  2016 linux-headers-3.19.0-51-generic
    drwxr-xr-x 27 root root 4096 Apr 28  2016 linux-headers-4.4.0-21
    drwxr-xr-x  7 root root 4096 Apr 28  2016 linux-headers-4.4.0-21-generic
    drwxr-xr-x 27 root root 4096 May 18  2016 linux-headers-4.4.0-22
    drwxr-xr-x  7 root root 4096 May 18  2016 linux-headers-4.4.0-22-generic
    drwxr-xr-x 27 root root 4096 Feb 22 06:42 linux-headers-4.4.0-64
    drwxr-xr-x  7 root root 4096 Feb 22 06:42 linux-headers-4.4.0-64-generic
    drwxr-xr-x 27 root root 4096 Mar 16 21:08 linux-headers-4.4.0-66
    drwxr-xr-x  7 root root 4096 Mar 16 21:08 linux-headers-4.4.0-66-generic
    drwxr-xr-x 24 root root 4096 May 26  2016 linux-headers-4.6.0-040600
    drwxr-xr-x 24 root root 4096 May 26  2016 linux-headers-4.6.0-040600rc3
    drwxr-xr-x  8 root root 4096 May 26  2016 linux-headers-4.6.0-040600rc3-generic
    drwxr-xr-x  6 root root 4096 Mar 21 20:45 oem-audio-hda-daily-lts-xenial-0.201703210732~ubuntu16.04.1
    drwxr-xr-x 12 root root 4096 Feb 22 06:45 virtualbox-5.0.32
    
    
    :~$ ls -al /lib/modules/
    total 56
    drwxr-xr-x 14 root root 4096 Mar 16 21:08 .
    drwxr-xr-x 30 root root 4096 Mar 21 20:44 ..
    drwxr-xr-x  2 root root 4096 Mar 17 06:17 3.13.0-54-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:17 3.13.0-57-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:18 3.13.0-59-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:18 3.13.0-62-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:19 3.13.0-63-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:20 3.13.0-79-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:21 3.19.0-51-generic
    drwxr-xr-x  6 root root 4096 Mar 21 20:47 4.4.0-21-generic
    drwxr-xr-x  6 root root 4096 Mar 21 21:13 4.4.0-22-generic
    drwxr-xr-x  6 root root 4096 Mar 21 21:13 4.4.0-64-generic
    drwxr-xr-x  6 root root 4096 Mar 21 21:13 4.4.0-66-generic
    drwxr-xr-x  2 root root 4096 Jun  8  2016 4.6.0-040600rc3-generic
    
    
    :~$ ls -al /boot/
    total 203860
    drwxr-xr-x  4 root root    12288 Mar 21 21:14 .
    drwxr-xr-x 26 root root     4096 Mar 21 21:13 ..
    -rw-r--r--  1 root root  1239577 Apr 19  2016 abi-4.4.0-21-generic
    -rw-r--r--  1 root root  1239612 May 13  2016 abi-4.4.0-22-generic
    -rw-r--r--  1 root root  1245512 Feb 20 14:40 abi-4.4.0-64-generic
    -rw-r--r--  1 root root  1245512 Mar  3 19:25 abi-4.4.0-66-generic
    -rw-r--r--  1 root root   189412 Apr 19  2016 config-4.4.0-21-generic
    -rw-r--r--  1 root root   189520 May 13  2016 config-4.4.0-22-generic
    -rw-r--r--  1 root root   190247 Feb 20 14:40 config-4.4.0-64-generic
    -rw-r--r--  1 root root   190247 Mar  3 19:25 config-4.4.0-66-generic
    drwxr-xr-x  6 root root     4096 Mar 21 21:13 grub
    drwxr-xr-x  5 root root     4096 May  9  2016 grub.bak
    -rw-r--r--  1 root root 39406840 Feb 22 06:57 initrd.img-4.4.0-21-generic
    -rw-r--r--  1 root root 39408251 Mar 21 21:13 initrd.img-4.4.0-22-generic
    -rw-r--r--  1 root root 39945705 Mar 21 21:13 initrd.img-4.4.0-64-generic
    -rw-r--r--  1 root root 39944727 Mar 21 21:14 initrd.img-4.4.0-66-generic
    -rw-r--r--  1 root root   182704 Jan 28  2016 memtest86+.bin
    -rw-r--r--  1 root root   184380 Jan 28  2016 memtest86+.elf
    -rw-r--r--  1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
    -rw-------  1 root root  3853719 Apr 19  2016 System.map-4.4.0-21-generic
    -rw-------  1 root root  3855781 May 13  2016 System.map-4.4.0-22-generic
    -rw-------  1 root root  3883990 Feb 20 14:40 System.map-4.4.0-64-generic
    -rw-------  1 root root  3883990 Mar  3 19:25 System.map-4.4.0-66-generic
    -rw-------  1 root root  7013968 Apr 19  2016 vmlinuz-4.4.0-21-generic
    -rw-------  1 root root  7015440 May 13  2016 vmlinuz-4.4.0-22-generic
    -rw-------  1 root root  7087152 Feb 20 14:40 vmlinuz-4.4.0-64-generic
    -rw-------  1 root root  7087024 Mar  3 19:25 vmlinuz-4.4.0-66-generic
    
    :~$ dpkg -l | grep linux
    ii  bluez-tools                                                 0.2.0~20140808-5                              amd64        Set of tools to manage Bluetooth devices for linux
    ii  console-setup-linux                                         1.108ubuntu15.3                               all          Linux specific part of console-setup
    ii  fonts-linuxlibertine                                        5.3.0-2                                       all          Linux Libertine family of fonts
    ii  ladspa-sdk                                                  1.13-2                                        amd64        sample tools for linux-audio-dev plugin architecture
    ii  libselinux1:amd64                                           2.4-3build2                                   amd64        SELinux runtime shared libraries
    ii  libselinux1:i386                                            2.4-3build2                                   i386         SELinux runtime shared libraries
    ii  libv4l-0:amd64                                              1.10.0-1                                      amd64        Collection of video4linux support libraries
    ii  libv4l-0:i386                                               1.10.0-1                                      i386         Collection of video4linux support libraries
    ii  libv4lconvert0:amd64                                        1.10.0-1                                      amd64        Video4linux frame format conversion library
    ii  libv4lconvert0:i386                                         1.10.0-1                                      i386         Video4linux frame format conversion library
    ii  linux-base                                                  4.0ubuntu1                                    all          Linux image base package
    ii  linux-firmware                                              1.157.8                                       all          Firmware for Linux kernel drivers
    iU  linux-generic                                               4.4.0.66.70                                   amd64        Complete Generic Linux kernel and headers
    iU  linux-generic-lts-vivid                                     4.4.0.66.70                                   amd64        Complete Generic Linux kernel and headers (dummy transitional package)
    ii  linux-headers-3.13.0-54                                     3.13.0-54.91                                  all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-54-generic                             3.13.0-54.91                                  amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-57                                     3.13.0-57.95                                  all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-57-generic                             3.13.0-57.95                                  amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-59                                     3.13.0-59.98                                  all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-59-generic                             3.13.0-59.98                                  amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-62                                     3.13.0-62.102                                 all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-62-generic                             3.13.0-62.102                                 amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-63                                     3.13.0-63.103                                 all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-63-generic                             3.13.0-63.103                                 amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-79                                     3.13.0-79.123                                 all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-79-generic                             3.13.0-79.123                                 amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.19.0-51                                     3.19.0-51.58~14.04.1                          all          Header files related to Linux kernel version 3.19.0
    ii  linux-headers-3.19.0-51-generic                             3.19.0-51.58~14.04.1                          amd64        Linux kernel headers for version 3.19.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-21                                      4.4.0-21.37                                   all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-21-generic                              4.4.0-21.37                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-22                                      4.4.0-22.40                                   all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-22-generic                              4.4.0-22.40                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-64                                      4.4.0-64.85                                   all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-64-generic                              4.4.0-64.85                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-66                                      4.4.0-66.87                                   all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-66-generic                              4.4.0-66.87                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.6.0-040600                                  4.6.0-040600.201605151930                     all          Header files related to Linux kernel version 4.6.0
    ii  linux-headers-4.6.0-040600rc3                               4.6.0-040600rc3.201604120934                  all          Header files related to Linux kernel version 4.6.0
    ii  linux-headers-4.6.0-040600rc3-generic                       4.6.0-040600rc3.201604120934                  amd64        Linux kernel headers for version 4.6.0 on 64 bit x86 SMP
    ii  linux-headers-generic                                       4.4.0.66.70                                   amd64        Generic Linux kernel headers
    rH  linux-image-3.13.0-54-generic                               3.13.0-54.91                                  amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-3.13.0-57-generic                               3.13.0-57.95                                  amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-3.13.0-59-generic                               3.13.0-59.98                                  amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-3.13.0-62-generic                               3.13.0-62.102                                 amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-3.13.0-63-generic                               3.13.0-63.103                                 amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-3.13.0-79-generic                               3.13.0-79.123                                 amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-3.19.0-51-generic                               3.19.0-51.58~14.04.1                          amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
    rH  linux-image-3.19.0-58-generic                               3.19.0-58.64~14.04.1                          amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-21-generic                                4.4.0-21.37                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-4.4.0-22-generic                                4.4.0-22.40                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-4.4.0-64-generic                                4.4.0-64.85                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-4.4.0-66-generic                                4.4.0-66.87                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    rH  linux-image-4.6.0-040600-generic                            4.6.0-040600.201605151930                     amd64        Linux kernel image for version 4.6.0 on 64 bit x86 SMP
    rH  linux-image-4.6.0-040600rc3-generic                         4.6.0-040600rc3.201604120934                  amd64        Linux kernel image for version 4.6.0 on 64 bit x86 SMP
    rH  linux-image-extra-3.13.0-57-generic                         3.13.0-57.95                                  amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-extra-3.13.0-59-generic                         3.13.0-59.98                                  amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-extra-3.13.0-62-generic                         3.13.0-62.102                                 amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-extra-3.13.0-63-generic                         3.13.0-63.103                                 amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-extra-3.13.0-79-generic                         3.13.0-79.123                                 amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rH  linux-image-extra-3.19.0-51-generic                         3.19.0-51.58~14.04.1                          amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
    rH  linux-image-extra-3.19.0-58-generic                         3.19.0-58.64~14.04.1                          amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-21-generic                          4.4.0-21.37                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-22-generic                          4.4.0-22.40                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-64-generic                          4.4.0-64.85                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-66-generic                          4.4.0-66.87                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-generic                                         4.4.0.66.70                                   amd64        Generic Linux kernel image
    ii  linux-libc-dev:amd64                                        4.4.0-67.88                                   amd64        Linux Kernel Headers for development
    ii  linux-lts-vivid-tools-common                                3.19.0-18.18~14.04.1                          all          Linux kernel version specific tools for version 3.19.0
    ii  linux-sound-base                                            1.0.25+dfsg-0ubuntu5                          all          base package for ALSA and OSS sound systems
    ii  linuxinfo                                                   2.2.3-1                                       amd64        Displays extended system information
    ii  playonlinux                                                 4.2.10-2ubuntu0.1                             all          front-end for Wine
    ii  pptp-linux                                                  1.8.0-1                                       amd64        Point-to-Point Tunneling Protocol (PPTP) Client
    ii  syslinux                                                    3:6.03+dfsg-11ubuntu1                         amd64        collection of bootloaders (DOS FAT and NTFS bootloader)
    ii  syslinux-common                                             3:6.03+dfsg-11ubuntu1                         all          collection of bootloaders (common)
    ii  syslinux-legacy                                             2:3.63+dfsg-2ubuntu8                          amd64        Bootloader for Linux/i386 using MS-DOS floppies
    ii  util-linux                                                  2.27.1-6ubuntu3.2                             amd64        miscellaneous system utilities
    ii  v4l-conf                                                    3.103-3build1                                 amd64        tool to configure video4linux drivers
    So, how to proceed? I have my butcher's knife sharpened, but don't know where or how to 'cut'.

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

    Re: Can NOT remove four linux-images, so can't update software.

    Quote Originally Posted by ajgreeny View Post
    What I am hoping will happen is that the purging command will remove all configurations that may be causing that error noticed by impavidus, and we can then reinstall all the grub packages with new configuration.
    I think that hope is reasonable. You can run
    Code:
    dpkg --list | grep grub
    to get a list of currently installed grub packages.

  6. #26
    Join Date
    Jun 2010
    Beans
    532

    Re: Can NOT remove four linux-images, so can't update software.

    Quote Originally Posted by Impavidus View Post
    I think that hope is reasonable. You can run
    Code:
    dpkg --list | grep grub
    to get a list of currently installed grub packages.
    Here is the output:

    Code:
    $ dpkg --list | grep grub
    ii  grub-common                                                 2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader (common files)
    ii  grub-customizer                                             5.0.6-0ubuntu1~ppa1x                          amd64        Grub Customizer - A graphical Grub2/BURG configuration application
    ii  grub-gfxpayload-lists                                       0.7                                           amd64        GRUB gfxpayload blacklist
    iF  grub-pc                                                     2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
    ii  grub-pc-bin                                                 2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS binaries)
    ii  grub2-common                                                2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader (common files for version 2)

  7. #27
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Can NOT remove four linux-images, so can't update software.

    Code:
    $ dpkg --list | grep grub
    ii  grub-common                                                 2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader (common files)
    ii  grub-customizer                                             5.0.6-0ubuntu1~ppa1x                          amd64        Grub Customizer - A graphical Grub2/BURG configuration application
    ii  grub-gfxpayload-lists                                       0.7                                           amd64        GRUB gfxpayload blacklist
    iF  grub-pc                                                     2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
    ii  grub-pc-bin                                                 2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS binaries)
    ii  grub2-common
    The line shown in red above is a bit of a worry as it means that grub-pc is only part configured, so I think a reinstall of at least that package is in order; it may be behind your difficulties.

    Try command
    Code:
    sudo apt-get install --reinstall grub-pc

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

    Re: Can NOT remove four linux-images, so can't update software.

    Reinstalling grub-pc may work, but configuration of this package failed for the same reason as for which (un-)installation of kernels failed. See the output of dpkg --reconfigure -a in post #10. The tool that gave the error message, /usr/sbin/grub-probe, is part of grub-common. So I suspect one of the other packages is broken and grub-pc failed configuration during install the last time it was upgraded.

    So, if that doesn't work, purge and reinstall all grub* packages.

    First purge them, to remove the packages including their configuration files:
    Code:
    sudo apt-get purge grub-common grub-customizer grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common
    This will make your computer unbootable. Then reinstall them to get them back with the default configuration files:
    Code:
    sudo apt-get install grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common
    I left out grub-customizer for reinstall, as that package is not vital. You can reinstall it later, but be careful as I suspect it may have contributed to your problem. If you made any changes to grub to support, for example, your graphics card, make those changes again. Make sure that not only the packages are reinstalled, but grub is also reinstalled to the MBR. I see you have the bios version of grub, so I assume you use MBR partitioning. If this all works, your computer should be bootable and it should be possible to uninstall the old kernels. If you end up with an unbootable system, reinstall.

    REALLY IMPORTANT: First check you have a working live disk and good backups of your important files. Then nothing can go wrong.

  9. #29
    Join Date
    Jun 2010
    Beans
    532

    Re: Can NOT remove four linux-images, so can't update software.

    Well, I think I finally made progress.....without doing any damage. I did finally add in grub-customizer [I've not had any trouble with it in other [12.04; 14.04] and it seems to be working OK now too.

    As for the linux-images, they seem to be installed OK now [and some new ones that couldn't be before]. I'll remove some of the old ones shortly, but what I have now is:

    Code:
    $ ls -al /usr/src/
    total 120
    drwxr-xr-x 30 root root 4096 Mar 24 18:44 .
    drwxr-xr-x 14 root root 4096 Apr 28  2016 ..
    drwxr-xr-x  3 root root 4096 May 15  2016 libdvd-pkg
    drwxr-xr-x 24 root root 4096 Jun  7  2015 linux-headers-3.13.0-54
    drwxr-xr-x  7 root root 4096 Jun  7  2015 linux-headers-3.13.0-54-generic
    drwxr-xr-x 24 root root 4096 Jun 25  2015 linux-headers-3.13.0-57
    drwxr-xr-x  7 root root 4096 Jun 25  2015 linux-headers-3.13.0-57-generic
    drwxr-xr-x 24 root root 4096 Jul 30  2015 linux-headers-3.13.0-59
    drwxr-xr-x  7 root root 4096 Jul 30  2015 linux-headers-3.13.0-59-generic
    drwxr-xr-x 24 root root 4096 Aug 13  2015 linux-headers-3.13.0-62
    drwxr-xr-x  7 root root 4096 Aug 13  2015 linux-headers-3.13.0-62-generic
    drwxr-xr-x 24 root root 4096 Aug 19  2015 linux-headers-3.13.0-63
    drwxr-xr-x  7 root root 4096 Aug 19  2015 linux-headers-3.13.0-63-generic
    drwxr-xr-x 24 root root 4096 Mar 11  2016 linux-headers-3.13.0-79
    drwxr-xr-x  7 root root 4096 Mar 11  2016 linux-headers-3.13.0-79-generic
    drwxr-xr-x 24 root root 4096 Mar 11  2016 linux-headers-3.19.0-51
    drwxr-xr-x  7 root root 4096 Mar 11  2016 linux-headers-3.19.0-51-generic
    drwxr-xr-x 27 root root 4096 Apr 28  2016 linux-headers-4.4.0-21
    drwxr-xr-x  7 root root 4096 Apr 28  2016 linux-headers-4.4.0-21-generic
    drwxr-xr-x 27 root root 4096 May 18  2016 linux-headers-4.4.0-22
    drwxr-xr-x  7 root root 4096 May 18  2016 linux-headers-4.4.0-22-generic
    drwxr-xr-x 27 root root 4096 Feb 22 06:42 linux-headers-4.4.0-64
    drwxr-xr-x  7 root root 4096 Feb 22 06:42 linux-headers-4.4.0-64-generic
    drwxr-xr-x 27 root root 4096 Mar 16 21:08 linux-headers-4.4.0-66
    drwxr-xr-x  7 root root 4096 Mar 16 21:08 linux-headers-4.4.0-66-generic
    drwxr-xr-x 24 root root 4096 May 26  2016 linux-headers-4.6.0-040600
    drwxr-xr-x 24 root root 4096 May 26  2016 linux-headers-4.6.0-040600rc3
    drwxr-xr-x  8 root root 4096 May 26  2016 linux-headers-4.6.0-040600rc3-generic
    drwxr-xr-x  6 root root 4096 Mar 24 18:44 oem-audio-hda-daily-lts-xenial-0.201703240731~ubuntu16.04.1
    drwxr-xr-x 12 root root 4096 Feb 22 06:45 virtualbox-5.0.32
    
    
    ~$ ls -al /lib/modules/
    total 56
    drwxr-xr-x 14 root root 4096 Mar 16 21:08 .
    drwxr-xr-x 30 root root 4096 Mar 24 18:43 ..
    drwxr-xr-x  2 root root 4096 Mar 17 06:17 3.13.0-54-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:17 3.13.0-57-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:18 3.13.0-59-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:18 3.13.0-62-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:19 3.13.0-63-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:20 3.13.0-79-generic
    drwxr-xr-x  3 root root 4096 Mar 17 15:21 3.19.0-51-generic
    drwxr-xr-x  6 root root 4096 Mar 24 18:45 4.4.0-21-generic
    drwxr-xr-x  6 root root 4096 Mar 24 18:44 4.4.0-22-generic
    drwxr-xr-x  6 root root 4096 Mar 24 18:44 4.4.0-64-generic
    drwxr-xr-x  6 root root 4096 Mar 24 18:45 4.4.0-66-generic
    drwxr-xr-x  2 root root 4096 Jun  8  2016 4.6.0-040600rc3-generic
    
    
    ~$ ls -al /boot/
    total 203856
    drwxr-xr-x  4 root root    12288 Mar 24 18:36 .
    drwxr-xr-x 26 root root     4096 Mar 24 18:35 ..
    -rw-r--r--  1 root root  1239577 Apr 19  2016 abi-4.4.0-21-generic
    -rw-r--r--  1 root root  1239612 May 13  2016 abi-4.4.0-22-generic
    -rw-r--r--  1 root root  1245512 Feb 20 14:40 abi-4.4.0-64-generic
    -rw-r--r--  1 root root  1245512 Mar  3 19:25 abi-4.4.0-66-generic
    -rw-r--r--  1 root root   189412 Apr 19  2016 config-4.4.0-21-generic
    -rw-r--r--  1 root root   189520 May 13  2016 config-4.4.0-22-generic
    -rw-r--r--  1 root root   190247 Feb 20 14:40 config-4.4.0-64-generic
    -rw-r--r--  1 root root   190247 Mar  3 19:25 config-4.4.0-66-generic
    drwxr-xr-x  6 root root     4096 Mar 24 19:00 grub
    drwxr-xr-x  5 root root     4096 May  9  2016 grub.bak
    -rw-r--r--  1 root root 39406840 Feb 22 06:57 initrd.img-4.4.0-21-generic
    -rw-r--r--  1 root root 39409220 Mar 24 18:35 initrd.img-4.4.0-22-generic
    -rw-r--r--  1 root root 39943738 Mar 24 18:35 initrd.img-4.4.0-64-generic
    -rw-r--r--  1 root root 39944512 Mar 24 18:36 initrd.img-4.4.0-66-generic
    -rw-r--r--  1 root root   182704 Jan 28  2016 memtest86+.bin
    -rw-r--r--  1 root root   184380 Jan 28  2016 memtest86+.elf
    -rw-r--r--  1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
    -rw-------  1 root root  3853719 Apr 19  2016 System.map-4.4.0-21-generic
    -rw-------  1 root root  3855781 May 13  2016 System.map-4.4.0-22-generic
    -rw-------  1 root root  3883990 Feb 20 14:40 System.map-4.4.0-64-generic
    -rw-------  1 root root  3883990 Mar  3 19:25 System.map-4.4.0-66-generic
    -rw-------  1 root root  7013968 Apr 19  2016 vmlinuz-4.4.0-21-generic
    -rw-------  1 root root  7015440 May 13  2016 vmlinuz-4.4.0-22-generic
    -rw-------  1 root root  7087152 Feb 20 14:40 vmlinuz-4.4.0-64-generic
    -rw-------  1 root root  7087024 Mar  3 19:25 vmlinuz-4.4.0-66-generic
    
    
    ~$ dpkg -l | grep linux
    ii  bluez-tools                                                 0.2.0~20140808-5                              amd64        Set of tools to manage Bluetooth devices for linux
    ii  console-setup-linux                                         1.108ubuntu15.3                               all          Linux specific part of console-setup
    ii  fonts-linuxlibertine                                        5.3.0-2                                       all          Linux Libertine family of fonts
    ii  ladspa-sdk                                                  1.13-2                                        amd64        sample tools for linux-audio-dev plugin architecture
    ii  libselinux1:amd64                                           2.4-3build2                                   amd64        SELinux runtime shared libraries
    ii  libselinux1:i386                                            2.4-3build2                                   i386         SELinux runtime shared libraries
    ii  libv4l-0:amd64                                              1.10.0-1                                      amd64        Collection of video4linux support libraries
    ii  libv4l-0:i386                                               1.10.0-1                                      i386         Collection of video4linux support libraries
    ii  libv4lconvert0:amd64                                        1.10.0-1                                      amd64        Video4linux frame format conversion library
    ii  libv4lconvert0:i386                                         1.10.0-1                                      i386         Video4linux frame format conversion library
    ii  linux-base                                                  4.0ubuntu1                                    all          Linux image base package
    ii  linux-firmware                                              1.157.8                                       all          Firmware for Linux kernel drivers
    ii  linux-generic                                               4.4.0.66.70                                   amd64        Complete Generic Linux kernel and headers
    ii  linux-generic-lts-vivid                                     4.4.0.66.70                                   amd64        Complete Generic Linux kernel and headers (dummy transitional package)
    ii  linux-headers-3.13.0-54                                     3.13.0-54.91                                  all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-54-generic                             3.13.0-54.91                                  amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-57                                     3.13.0-57.95                                  all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-57-generic                             3.13.0-57.95                                  amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-59                                     3.13.0-59.98                                  all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-59-generic                             3.13.0-59.98                                  amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-62                                     3.13.0-62.102                                 all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-62-generic                             3.13.0-62.102                                 amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-63                                     3.13.0-63.103                                 all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-63-generic                             3.13.0-63.103                                 amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.13.0-79                                     3.13.0-79.123                                 all          Header files related to Linux kernel version 3.13.0
    ii  linux-headers-3.13.0-79-generic                             3.13.0-79.123                                 amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
    ii  linux-headers-3.19.0-51                                     3.19.0-51.58~14.04.1                          all          Header files related to Linux kernel version 3.19.0
    ii  linux-headers-3.19.0-51-generic                             3.19.0-51.58~14.04.1                          amd64        Linux kernel headers for version 3.19.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-21                                      4.4.0-21.37                                   all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-21-generic                              4.4.0-21.37                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-22                                      4.4.0-22.40                                   all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-22-generic                              4.4.0-22.40                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-64                                      4.4.0-64.85                                   all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-64-generic                              4.4.0-64.85                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.4.0-66                                      4.4.0-66.87                                   all          Header files related to Linux kernel version 4.4.0
    ii  linux-headers-4.4.0-66-generic                              4.4.0-66.87                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
    ii  linux-headers-4.6.0-040600                                  4.6.0-040600.201605151930                     all          Header files related to Linux kernel version 4.6.0
    ii  linux-headers-4.6.0-040600rc3                               4.6.0-040600rc3.201604120934                  all          Header files related to Linux kernel version 4.6.0
    ii  linux-headers-4.6.0-040600rc3-generic                       4.6.0-040600rc3.201604120934                  amd64        Linux kernel headers for version 4.6.0 on 64 bit x86 SMP
    ii  linux-headers-generic                                       4.4.0.66.70                                   amd64        Generic Linux kernel headers
    rc  linux-image-3.13.0-54-generic                               3.13.0-54.91                                  amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-3.13.0-57-generic                               3.13.0-57.95                                  amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-3.13.0-59-generic                               3.13.0-59.98                                  amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-3.13.0-62-generic                               3.13.0-62.102                                 amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-3.13.0-63-generic                               3.13.0-63.103                                 amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-3.13.0-79-generic                               3.13.0-79.123                                 amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-3.19.0-51-generic                               3.19.0-51.58~14.04.1                          amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
    rc  linux-image-3.19.0-58-generic                               3.19.0-58.64~14.04.1                          amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-21-generic                                4.4.0-21.37                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-22-generic                                4.4.0-22.40                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-64-generic                                4.4.0-64.85                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-66-generic                                4.4.0-66.87                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    rc  linux-image-4.6.0-040600-generic                            4.6.0-040600.201605151930                     amd64        Linux kernel image for version 4.6.0 on 64 bit x86 SMP
    rc  linux-image-4.6.0-040600rc3-generic                         4.6.0-040600rc3.201604120934                  amd64        Linux kernel image for version 4.6.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.13.0-57-generic                         3.13.0-57.95                                  amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.13.0-59-generic                         3.13.0-59.98                                  amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.13.0-62-generic                         3.13.0-62.102                                 amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.13.0-63-generic                         3.13.0-63.103                                 amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.13.0-79-generic                         3.13.0-79.123                                 amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.19.0-51-generic                         3.19.0-51.58~14.04.1                          amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
    rc  linux-image-extra-3.19.0-58-generic                         3.19.0-58.64~14.04.1                          amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-21-generic                          4.4.0-21.37                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-22-generic                          4.4.0-22.40                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-64-generic                          4.4.0-64.85                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-66-generic                          4.4.0-66.87                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-generic                                         4.4.0.66.70                                   amd64        Generic Linux kernel image
    ii  linux-libc-dev:amd64                                        4.4.0-67.88                                   amd64        Linux Kernel Headers for development
    ii  linux-lts-vivid-tools-common                                3.19.0-18.18~14.04.1                          all          Linux kernel version specific tools for version 3.19.0
    ii  linux-sound-base                                            1.0.25+dfsg-0ubuntu5                          all          base package for ALSA and OSS sound systems
    ii  linuxinfo                                                   2.2.3-1                                       amd64        Displays extended system information
    ii  playonlinux                                                 4.2.10-2ubuntu0.1                             all          front-end for Wine
    ii  pptp-linux                                                  1.8.0-1                                       amd64        Point-to-Point Tunneling Protocol (PPTP) Client
    ii  syslinux                                                    3:6.03+dfsg-11ubuntu1                         amd64        collection of bootloaders (DOS FAT and NTFS bootloader)
    ii  syslinux-common                                             3:6.03+dfsg-11ubuntu1                         all          collection of bootloaders (common)
    ii  syslinux-legacy                                             2:3.63+dfsg-2ubuntu8                          amd64        Bootloader for Linux/i386 using MS-DOS floppies
    ii  util-linux                                                  2.27.1-6ubuntu3.2                             amd64        miscellaneous system utilities
    ii  v4l-conf                                                    3.103-3build1                                 amd64        tool to configure video4linux drivers
    Thanks. I need to test it a bit before I declare this fixed. I did have some special code in the grub for the keyboard that now is gone and I need to check some other things before declaring victory, but so far thanks. How does it look from there?

  10. #30
    Join Date
    Jun 2010
    Beans
    532

    Re: Can NOT remove four linux-images, so can't update software.

    And for grub files:

    Code:
    $ dpkg --list | grep grub
    ii  grub-common                                                 2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader (common files)
    ii  grub-customizer                                             5.0.6-0ubuntu1~ppa1x                          amd64        Grub Customizer - A graphical Grub2/BURG configuration application
    ii  grub-gfxpayload-lists                                       0.7                                           amd64        GRUB gfxpayload blacklist
    ii  grub-pc                                                     2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
    ii  grub-pc-bin                                                 2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS binaries)
    ii  grub2-common                                                2.02~beta2-36ubuntu3.8                        amd64        GRand Unified Bootloader (common files for version 2)

Page 3 of 4 FirstFirst 1234 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
  •