Problems with upgrade from 18.04LTS to 20.04LTS
Upgrade from 18.04LTS to 20.04LTS did not complete (for whatever reason).
If I try to run a partial upgrade,to correct it, I get the error message (1) "installed linux-image-
I can't install anything else as I get the same error msg as (1) above and the install aborts.
How do I correct this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
For diagnostic purposes, what is the full output of the commands
uname -a
lsb_release -crid
sudo dpkg --audit
sudo dpkg --configure -a
Revision history for this message
|
#2 |
Manfred
Thank you for this, I ran the diagnostic questions & the outputs are as follows:
fred@fred-
Linux fred-ThinkCentre 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
fred@fred-
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
fred@fred-
[sudo] password for fred:
The following packages are only half installed, due to problems during
installation. The installation can probably be completed by retrying it;
the packages can be removed using dselect or dpkg --remove:
linux-
fred@fred-
fred@fred-
I don't think 'the installation can probably be completed by retrying it' as I've tried that! I've NOT tried the 'remove' option, might that work?
Thanks once again.
Revision history for this message
|
#3 |
What is the output of the commands
dpkg -l | grep 4.15.0-111
apt-cache policy linux-image-
sudo apt install --reinstall linux-image-
sudo dpkg --remove linux-image-
Revision history for this message
|
#4 |
Manfred - Output as follows:
fred@fred-
rH linux-image-
rc linux-modules-
rc linux-modules-
fred@fred-
linux-image-
Installed: 4.15.0-111.112
Candidate: 4.15.0-111.112
Version table:
*** 4.15.0-111.112 100
100 /var/lib/
fred@fred-
[sudo] password for fred:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of linux-image-
The following packages will be REMOVED
linux-
0 to upgrade, 0 to newly install, 1 to remove and 21 not to upgrade.
1 not fully installed or removed.
After this operation, 8,411 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 226097 files and directories currently installed.)
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Windows 7 on /dev/sda1
Found Windows 7 on /dev/sda2
/etc/grub.
Found Windows 7 on /dev/sda1
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
installed linux-image-
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
fred@fred-
(Reading database ... 226097 files and directories currently installed.)
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Windows 7 on /dev/sda1
Found Windows 7 on /dev/sda2
/etc/grub.
Found Windows 7 on /dev/sda1
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
installed linux-image-
Errors were encountered while processing:
linux-
Thanks again
Revision history for this message
|
#5 |
ok, this didn't help, but it shows, that the culprit probably is not linux-image-
/etc/grub.
The file /etc/grub.
What is the output of the commands
sudo update-grub
apt-cache policy grub-customizer
Revision history for this message
|
#6 |
This seems to be the same problem as https:/
Revision history for this message
|
#7 |
Manfred
Thank you for this and I'm sorry to have taken so long to get back to you.
I ran your other commands and the output is as follows . . .
fred@fred-
[sudo] password for fred:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Windows 7 on /dev/sda1
Found Windows 7 on /dev/sda2
/etc/grub.
Found Windows 7 on /dev/sda1
fred@fred-
grub-customizer:
Installed: 5.1.0-2
Candidate: 5.1.0-2
Version table:
*** 5.1.0-2 500
500 http://
100 /var/lib/
fred@fred-
I have also tried the suggestion(s) in the duplicate question and they haven't worked so I'm no further forward.
Any ideas?
Revision history for this message
|
#8 |
I am sorry, but I do not know how to help further.
The problem apparently is caused by an old version of grub-customizer from outside Ubuntu.
In my opinion you should ask the provider of that previous version of grub-customizer for help
probably https:/
What is the output of the commands
sudo updatedb
locate grubcfg
locate libcrypto.so.1.0.0
apt list libssl1*
Revision history for this message
|
#9 |
Manfred
Thanks once again
Output is as follows:
fred@fred-
[sudo] password for fred:
fred@fred-
/etc/grub.
/usr/lib/
fred@fred-
/snap/core/
/snap/core/
/snap/core18/
/snap/core18/
/snap/gnome-
/snap/gnome-
/snap/makemkv/
/snap/makemkv/
fred@fred-
Listing... Done
libssl1.0.0/now 1.0.2n-1ubuntu5.3 amd64 [residual-config]
libssl1.1/focal,now 1.1.1f-1ubuntu2 amd64 [installed,
libssl1.1/focal,now 1.1.1f-1ubuntu2 i386 [installed]
fred@fred-
Revision history for this message
|
#10 |
You could try one of the suggestions in https:/
sudo cp /snap/core18/
sudo update-grub
or
sudo rm /etc/grub.
sudo rm /usr/lib/
sudo update-grub
As already told, these are foreign files, I do not know anything about them, no warranty given.
Revision history for this message
|
#11 |
Manfred
That worked!!! I ran 'sudo cp /snap/core18/1885 . . .' & 'sudo update-grub' & then re-ran the partial upgrade and everything now seems to be working OK.
I think I'll also remove grub-customizer just to be on the safe side.
Thank you once again for your help.
Revision history for this message
|
#12 |
Thanks Manfred Hampl, that solved my question.