Assuming you are on Ubuntu 24.04.2, and also I can't speak to the wisdom
of the following. :D. But I assume this will all be fixed in 24.04.03 or
24.04.04.  But to get around all the errors I did the following. Your
mileage may vary, and I can't speak to the wisdom of what I'm doing
below :D.

1. I ran an apt-get dist-upgrade to upgrade everything, this will fail.
2. I then downloaded  a few newer versions of packages, from the links above. 
You should find the packages yourself instead of trusting blind links from 
account that posts every 5 years :).

wget 
http://launchpadlibrarian.net/794517346/flash-kernel_3.107ubuntu13~24.04.4_arm64.deb
wget 
https://people.canonical.com/~juergh/lp2111928/linux-buildinfo-6.8.0-1028-raspi_6.8.0-1028.32+cbd1_arm64.deb
wget 
https://people.canonical.com/~juergh/lp2111928/linux-headers-6.8.0-1028-raspi_6.8.0-1028.32+cbd1_arm64.deb
wget 
https://people.canonical.com/~juergh/lp2111928/linux-image-6.8.0-1028-raspi_6.8.0-1028.32+cbd1_arm64.deb
wget 
https://people.canonical.com/~juergh/lp2111928/linux-modules-6.8.0-1028-raspi_6.8.0-1028.32+cbd1_arm64.deb

The linux images are in a message in the 2nd bug report. I don't
remember where I got the first from, but you just need to find the fixed
version for the flash kernel.

3. dpkg -i *.deb

This will fail, but that's fine, it should complain about newer images
of linux-image-6.8.0, I would make sure that 6.8.0-1028 installs though,
if not try the following:

3a. apt-get install -f

(I think it will find one more package, it needs if the debs can't
install).


4. I then remove the newer version of the kernel to stop it from upgrading

apt-get remove linux-image-6.8.0-1029-raspi

5. Then remove the current kernel

apt-get remove --purge linux-image-6.8.0-1018-raspi linux-
headers-6.8.0-1018-raspi linux-modules-6.8.0-1018-raspi

You'll get a prompt asking you to abort, hit no.

6. Hold the packages that we installed

sudo apt-mark hold flash-kernel \
  linux-buildinfo-6.8.0-1028-raspi \
  linux-headers-6.8.0-1028-raspi \
  linux-image-6.8.0-1028-raspi \
  linux-modules-6.8.0-1028-raspi

I hope this will stop future upgrades from breaking the system maybe.


7. Before rebooting make sure dpkg -i *.deb completes without errors, and that 
apt-get dist-upgrade says there is nothing to do.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2086774

Title:
  [SRU] Add CM5 to flash-kernel database

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2086774/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to