The following packages have been kept back: shim, but dist-upgrade dosnt help

Asked by Bernd

hello folks

the package "shim" does not install automatically for months.

that a manual installation, brings a scary warning

"You are about to do something potentially harmful".

i better ask again what to do

thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bernd
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the following commands (to be executed in a terminal window):

uname -a
lsb_release crid
sudo apt update
sudo apt full-upgrade
apt policy shim
apt --simulate install shim

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Its in the default repos which is good
https://launchpad.net/ubuntu/+source/shim

Revision history for this message
Bernd (badsmoke) said :
#3

do not wonder it the german output

uname -a:
Linux cloud-server 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

lsb_release crid:
Usage: lsb_release [options]

lsb_release: error: No arguments are permitted

lsb_release :

No LSB modules are available.

sudo apt update:
OK:1 https://download.docker.com/linux/ubuntu focal InRelease
OK:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
OK:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
OK:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
OK:5 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen.

sudo apt full-upgrade:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete sind zurückgehalten worden:
  shim
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.

apt policy shim:
shim:
  Installiert: 15+1552672080.a4a1fbe-0ubuntu1
  Installationskandidat: 15.4-0ubuntu9
  Versionstabelle:
     15.4-0ubuntu9 500
        500 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
 *** 15+1552672080.a4a1fbe-0ubuntu1 100
        100 /var/lib/dpkg/status
     15+1533136590.3beb971-0ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages

apt --simulate install shim:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  mokutil
Verwenden Sie »apt autoremove«, um es zu entfernen.
Die folgenden Pakete werden ENTFERNT:
  shim-signed
Die folgenden Pakete werden aktualisiert (Upgrade):
  shim
WARNUNG: Die folgenden essentiellen Pakete werden entfernt.
Dies sollte NICHT geschehen, außer Sie wissen genau, was Sie tun!
  shim-signed
1 aktualisiert, 0 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.
Remv shim-signed [1.41+15+1552672080.a4a1fbe-0ubuntu1]
Inst shim [15+1552672080.a4a1fbe-0ubuntu1] (15.4-0ubuntu9 Ubuntu:20.04/focal-updates [amd64])
Conf shim (15.4-0ubuntu9 Ubuntu:20.04/focal-updates [amd64])

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Sorry, my fault, should have been

lsb_release -crid

and please add the output of

apt policy shim-signed

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

The version number of shim-signed looks strange to me, seems not to be from the standard Ubuntu repositories.

What output do you receive for

apt --simulate install shim-signed=1.40.7+15.4-0ubuntu9 shim=15.4-0ubuntu9

Revision history for this message
Bernd (badsmoke) said :
#6

thanks for the support

lsb_release -crid:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04

apt policy shim-signed:
shim-signed:
  Installiert: 1.41+15+1552672080.a4a1fbe-0ubuntu1
  Installationskandidat: 1.41+15+1552672080.a4a1fbe-0ubuntu1
  Versionstabelle:
 *** 1.41+15+1552672080.a4a1fbe-0ubuntu1 100
        100 /var/lib/dpkg/status
     1.40.7+15.4-0ubuntu9 500
        500 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     1.40.3+15+1533136590.3beb971-0ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages

apt --simulate install shim-signed=1.40.7+15.4-0ubuntu9 shim=15.4-0ubuntu9:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete werden aktualisiert (Upgrade):
  shim
Die folgenden Pakete werden durch eine ÄLTERE VERSION ERSETZT (Downgrade):
  shim-signed
1 aktualisiert, 0 neu installiert, 1 durch eine ältere Version ersetzt, 0 zu entfernen und 0 nicht aktualisiert.
Inst shim [15+1552672080.a4a1fbe-0ubuntu1] (15.4-0ubuntu9 Ubuntu:20.04/focal-updates [amd64]) [shim-signed:amd64 ]
Inst shim-signed [1.41+15+1552672080.a4a1fbe-0ubuntu1] (1.40.7+15.4-0ubuntu9 Ubuntu:20.04/focal-updates [amd64])
Conf shim (15.4-0ubuntu9 Ubuntu:20.04/focal-updates [amd64])
Conf shim-signed (1.40.7+15.4-0ubuntu9 Ubuntu:20.04/focal-updates [amd64])

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

The unanswered question is: Where does shim-signed 1.41+15+1552672080.a4a1fbe-0ubuntu1 come from? I could not find such version anywhere.

In any case, downgrading shim-signed to the Ubuntu-provided version in line with the shim version seems to work, there is no "removing essential packages" message shown any more.

Based on the output above I assume that the command
sudo apt install shim-signed=1.40.7+15.4-0ubuntu9 shim=15.4-0ubuntu9
will work

Revision history for this message
Bernd (badsmoke) said :
#8

thanks that worked great, it is now up and running again and i was able to upgrade to 22.04 without any problems

no idea where the version came from, this is my "production" home-server there I have neither foreign package sources nor unofficiele software

thanks again