Error, sudo apt upgrade

Error: The package Linux-image-5.10.0-23-amd64 needs to be reinstalled, but I can’t find an archive for it.
sudo apt upgrade runs.
Upgradeable runs.
Running sudo apt upgrade returns the above listed error.
sudo apt update --fix- missing runs.
sudo apt upgrade – fix- missing return’s the same error.
sudo apt-get install linux-image-5.10.0-amd64 same error.

This package must not exist in the Repository??? How can this dependency be removed???
Thanks for any help Fred

1 Like

Can you provide more information? What OS are you using? If its PureOS what version?

Can you provide a screenshot of the error?

1 Like

OS Name: Pure OS (Byzantium)
64 Bit
Gnome Version: 3.38.5
Windoing System: Wayland

[sudo] password for xxxxxxxxxx:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: The package linux-image-5.10.0-23-amd64 needs to be reinstalled, but I can’t find an archive for it.

1 Like

Execute this code and display the output using either GNU Nano or Vim:

sudo apt edit-sources
1 Like

deb Index of /pureos/ byzantium main
deb Index of /pureos/ byzantium-security main
deb Index of /pureos/ byzantium-updates main

1 Like

Okay, what displays when you search for the package?

sudo apt search linux-image
1 Like

sudo apt search linux-image
[sudo] password for xxxxxxxxxxx:
Sorting… Done
Full Text Search… Done
linux-headers-5.10.0-13-amd64/now 5.10.106-1 amd64 [installed,local]
Header files for Linux 5.10.0-13-amd64

linux-headers-5.10.0-21-amd64/now 5.10.162-1 amd64 [installed,local]
Header files for Linux 5.10.0-21-amd64

linux-headers-5.10.0-23-amd64/now 5.10.179-1 amd64 [installed,local]
Header files for Linux 5.10.0-23-amd64

linux-headers-5.10.0-28-amd64/byzantium 5.10.209-2 amd64
Header files for Linux 5.10.0-28-amd64

linux-headers-5.10.0-28-cloud-amd64/byzantium 5.10.209-2 amd64
Header files for Linux 5.10.0-28-cloud-amd64

linux-headers-5.10.0-28-rt-amd64/byzantium 5.10.209-2 amd64
Header files for Linux 5.10.0-28-rt-amd64

linux-headers-5.10.0-8-amd64/now 5.10.46-5 amd64 [installed,local]
Header files for Linux 5.10.0-8-amd64

linux-image-5.10.0-11-amd64/now 5.10.92-2 amd64 [residual-config]
(none)

linux-image-5.10.0-12-amd64/now 5.10.103-1 amd64 [residual-config]
(none)

linux-image-5.10.0-13-amd64/now 5.10.106-1 amd64 [installed,local]
Linux 5.10 for 64-bit PCs (signed)

linux-image-5.10.0-21-amd64/now 5.10.162-1 amd64 [installed,local]
Linux 5.10 for 64-bit PCs (signed)

linux-image-5.10.0-23-amd64/now 5.10.179-1 amd64 [installed,local]
(none)

linux-image-5.10.0-27-amd64/byzantium-security 5.10.205-2 amd64
Linux 5.10 for 64-bit PCs (signed)

linux-image-5.10.0-27-cloud-amd64/byzantium-security 5.10.205-2 amd64
Linux 5.10 for x86-64 cloud (signed)

linux-image-5.10.0-27-rt-amd64/byzantium-security 5.10.205-2 amd64
Linux 5.10 for 64-bit PCs, PREEMPT_RT (signed)

linux-image-5.10.0-28-amd64/byzantium 5.10.209-2 amd64
Linux 5.10 for 64-bit PCs (signed)

linux-image-5.10.0-28-amd64-dbg/byzantium 5.10.209-2 amd64
Debug symbols for linux-image-5.10.0-28-amd64

linux-image-5.10.0-28-amd64-unsigned/byzantium 5.10.209-2 amd64
Linux 5.10 for 64-bit PCs

linux-image-5.10.0-28-cloud-amd64/byzantium 5.10.209-2 amd64
Linux 5.10 for x86-64 cloud (signed)

linux-image-5.10.0-28-cloud-amd64-dbg/byzantium 5.10.209-2 amd64
Debug symbols for linux-image-5.10.0-28-cloud-amd64

linux-image-5.10.0-28-cloud-amd64-unsigned/byzantium 5.10.209-2 amd64
Linux 5.10 for x86-64 cloud

linux-image-5.10.0-28-rt-amd64/byzantium 5.10.209-2 amd64
Linux 5.10 for 64-bit PCs, PREEMPT_RT (signed)

linux-image-5.10.0-28-rt-amd64-dbg/byzantium 5.10.209-2 amd64
Debug symbols for linux-image-5.10.0-28-rt-amd64

linux-image-5.10.0-28-rt-amd64-unsigned/byzantium 5.10.209-2 amd64
Linux 5.10 for 64-bit PCs, PREEMPT_RT

linux-image-5.10.0-6-amd64/now 5.10.28-1 amd64 [residual-config]
(none)

linux-image-5.10.0-7-amd64/now 5.10.40-1 amd64 [residual-config]
(none)

linux-image-5.10.0-8-amd64/now 5.10.46-5 amd64 [installed,local]
Linux 5.10 for 64-bit PCs (signed)

linux-image-5.10.0-9-amd64/now 5.10.70-1 amd64 [residual-config]
(none)

linux-image-5.9.0-1-amd64/now 5.9.1-1 amd64 [residual-config]
(none)

linux-image-amd64/byzantium 5.10.209-2 amd64 [upgradable from: 5.10.162-1]
Linux for 64-bit PCs (meta-package)

linux-image-amd64-dbg/byzantium 5.10.209-2 amd64
Debugging symbols for Linux amd64 configuration (meta-package)

linux-image-amd64-signed-template/byzantium 5.10.209-2 amd64
Template for signed linux-image packages for amd64

linux-image-cloud-amd64/byzantium 5.10.209-2 amd64
Linux for x86-64 cloud (meta-package)

linux-image-cloud-amd64-dbg/byzantium 5.10.209-2 amd64
Debugging symbols for Linux cloud-amd64 configuration (meta-package)

linux-image-rt-amd64/byzantium 5.10.209-2 amd64
Linux for 64-bit PCs (meta-package)

linux-image-rt-amd64-dbg/byzantium 5.10.209-2 amd64
Debugging symbols for Linux rt-amd64 configuration (meta-package)

1 Like

Okay, try installing it with the full package name:

sudo apt install linux-image-5.10.0-23-amd64

Display the output as usual.

1 Like

Same issue, not sure where the “archive” should be to look for the solution???
Thanks, Fred

sudo apt install linux-image-5.10.0-23-amd64
[sudo] password for xxxxxxxxxxx:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: The package linux-image-5.10.0-23-amd64 needs to be reinstalled, but I can’t find an archive for it.

1 Like

Alright, I suggest contacting Purism Support.

1 Like

Start with uname -r
i.e. what kernel version are you actually using - because we want to make sure that you are using a later version.

What happens if you try to remove the offending kernel version?

Do you have a current disk image in case this goes pear-shaped?

It looks to me that you have some weird other kernels installed that you have been trying out.

1 Like

Attempting to remove the offending kernel version and got the same error.
Didn’t / haven’t tried any other kernels???
Always stay with Pure OS recommendations for upgrades.
I have downloaded a current Byzantium iso and will install as soon as I get a clean thumb drive.
Hopefully that will solve the issue. Thanks to ALL for your help Fred

1 Like

Hello All:

No fix (yet) for my error: “E: The package linux-image-5.10.0-23-amd64 needs to be reinstalled, but I can’t find an archive for it.”

I followed advice of Purism support, several Emails.

Finally downloaded Etcher and created; PureOS 10.3 gnome (live) on a USB drive.

Tested and booted from the USB drive which created a working system.

Attempted to update and upgrade in this image.

Restarted on hard drive in Librem 14 and attempted to update and upgrade which again gave me: “E: The package linux-image-5.10.0-23-amd64 needs to be reinstalled, but I can’t find an archive for it.”

Any suggestions on a solution other than booting from the USB and installing by overwriting my hard drive deleting all information?

Thanks, Fred Walker

1 Like

Looking at repo.pureos.net it seems linux-image-5.10.0-23-amd64 is not in the repo anymore.
What kernel version is currently running on your device / what is the output of uname -r?

1 Like

5.10.0-21-amd64

I agree, I have not been able to locate a repository holding that image.
I have a clean install on a USB that will boot but is seems the only way to solve my issue is to install and over write my drive. I have current backups but I’m afraid if I restore the backup it will also copy over the problem with Linux-image-5.10.0-23-amd64.
Anyone out there have an idea as to the best way to proceed???
Thanks, Fred

1 Like

So your current kernel is even older than linux-headers-5.10.0-23-amd64.

Did you already try to install a newer kernel?
The following commands install the latest available Linux kernel:

sudo apt update
sudo apt install linux-image-amd64

You should be safe if you restore only the /home folder from your backup (which contains your personal data).

1 Like

Yes update and upgrade fail showing error “E: The package linux-image-5.10.0-23-amd64 needs to be reinstalled, but I can’t find an archive for it.”
looks like I will have to blow away everything and go from there.
Thanks, Fred

2 Likes