One L5 unwilling to update

Sorry, I don’t currently have the info at hand.

1 Like

Take this steps (if you don’t mind):
cd /var/cache/apt
ls -la
sudo apt clean
ls -la
sudo apt update && sudo apt upgrade

Did not changed anything.

This gives:

# apt install linux-image-5.17.0-1-librem5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  linux-image-5.17.0-1-librem5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.9 MB of archives.
After this operation, 78.4 MB of additional disk space will be used.
Err:1 https://repo.pureos.net/pureos byzantium/main arm64 linux-image-5.17.0-1-librem5 arm64 5.17.0pureos1
  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/l/linux-next-librem5/linux-image-5.17.0-1-librem5_5.17.0pureos1_arm64.deb  404  Not Found [IP: 138.201.228.45 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

There is/was a bug whereby the releases file does not get updated, the current workaround is to remove the contents of /var/lib/apt/lists (or for the more cautious, move it out the way) and rerun apt update which will rebuild the releases file…

sudo mv /var/lib/apt/lists{,.old}
sudo apt update

Now try upgrading through whatever means you usually use. If all went well you can remove the old lists directory…

sudo rm -rf /var/lib/apt/lists.old
4 Likes

I just noticed that you attempted to install a specific version of this package, this will 404 as that version of that package does not exist in the repository. I had incorrectly attributed the 404 error you were seeing to an out of date releases file so removing the contents of the lists directly as detailed above may resolve the issue but it may not.

Have you actually checked to see if the Librem 5 thinks there is an upgrade available?

In the first post there’s a gap in the terminal output, I believe the output below the gap is phone #2.

1 Like

Yes, I understand that. However, the output merely shows what is not installed, not that there is or is not an upgrade available.

There are various methods available to determine if there is an upgrade available one such is as @Quarnero suggested earlier in thread for example…

loki@sikozu:~$ apt list linux-image-librem5 -a
Listing... Done
linux-image-librem5/byzantium 5.17.3pureos1 arm64 [upgradable from: 5.13.19pureos5]
linux-image-librem5/now 5.13.19pureos5 arm64 [installed,upgradable to: 5.17.3pureos1]

This shows what is installed and also that there is an upgrade available.

linux-image-*-librem5 packages are a dependency of the linux-image-librem5 meta package, in this case, it’s the meta package that should be looked at not the dependency.

1 Like

Yes, we are just late (just checked PureOS repo), as Purism Team in the meantime changed, actually positively moved forward. This one is not available any more:

Yet, @guru, output to related package, to its full name, will tell you exactly what to do/install:
apt list linux-image-5.18*

Please note: It is as of today available as rc4 so you do not need to rush.

Please repeat above slowly (read if two .bin files inside of /var/cache/apt). Those will come back after: sudo apt update.

This did it. Thanks.

2 Likes

Thanks! Below output is for your as-of-now orientation (nothing special):

I see that it says “All packages are up to date” at the bottom. Is that not good enough? (I understand the issue in this thread has been resolved, so this is for my own information)

1 Like

You are correct, it probably is sufficient enough in this case. I completely missed that part of the output. Although I should be using apt my muscle memory has me stuck on apt-get, apt-get update doesn’t give any feedback on whether or not any upgrades are available which I suspect is why I overlooked it and didn’t pick up on it in the output of apt.

2 Likes

Usually yes, but today is just another day that I’m confused for some good reason as this linked package needs to be renamed:
linux-image-librem5_5.17.5pureos1_arm64.deb
/main/l/linux-librem5/linux-image-5.17.0-1-librem5_5.17.5pureos1_arm64.deb

Correct/current/working one (for all):
linux-image-librem5_5.17.3pureos1_arm64.deb
/main/l/linux-librem5/linux-image-librem5_5.17.3pureos1_arm64.deb

And Purism repository maintainers do not need proof from my side anyway, just this note of this very current situation (as-of-20220504).

EDIT:

Related, as kindly recommended, command works as it should:

Now I’m confused. Some people say there should be two or even more kernels installed.

Only two under properly maintained installation, I think. Screenshot from above shows:

[installed,local]
and therefore about to be auto-removed (not useful any more). I’ve noted this already here: Two kernels installed: 5.16 and 5.17 with: sudo dpkg -l | grep linux-image | grep ^rc would show which Kernel is about to be purged with: sudo apt autoremove.

@guru, now is just about right time for another official upgrade (as you probably already noticed, as new day should equal/lead toward brand new happiness):


And, as @Loki noted correctly, please stick to:

Yet simple and officially proofed (recommended for sure :sweat_smile:): sudo apt upgrade is the best command for the job done. Thanks Purism!

Are you aware of Phased updates? Not saying it is or is not part of the Librem repository or Debian but I know Ubuntu does…

https://wiki.ubuntu.com/PhasedUpdates

It is official that we have linux-image-librem5 5.18.1pureos1 arm64 available for upgrade within PureOS. Thanks!