Update error

More
06 Jan 2024 00:32 #289913 by MaHa
Update error was created by MaHa
The new Installation on a HP 8300SFF ,which runs perfect, normally, the update after installation failed, after raspi firmware missing. From terminal:
dpkg: Fehler beim Bearbeiten des Paketes linux-image-rt-amd64 (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für initramfs-tools (0.142) werden verarbeitet ...
update-initramfs: Generating /boot/initrd.img-6.1.0-17-rt-amd64
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
dpkg: Fehler beim Bearbeiten des Paketes initramfs-tools (--configure):
 »installiertes post-installation-Skript des Paketes initramfs-tools«-Unterprozess gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 linux-image-6.1.0-17-rt-amd64
 linux-image-rt-amd64
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please Log in or Create an account to join the conversation.

More
06 Jan 2024 04:39 - 06 Jan 2024 04:40 #289920 by rodw
Replied by rodw on topic Update error
Should be fixed in 2.9.2 download but this will fix it.#
sudo rm /etc/{initramfs/post-update.d/,kernel/{postinst.d/,postrm.d/}}z50-raspi-firmware#
sudo apt purge raspi-firmware

Its something we inherited from Debian so its annoying as it is nothing to do with our installer.
 
Last edit: 06 Jan 2024 04:40 by rodw.
The following user(s) said Thank You: MaHa, jjdege

Please Log in or Create an account to join the conversation.

More
27 Jan 2024 21:07 #291765 by bob8020
Thanks Rod !

I can confirm that downloading 2.9.2 iso today and running sudo apt update and sudo apt upgrade gives the raspi-firmware error.

And I can confirm that your suggestion above *almost* fixes it

There is a typo, trailing # on the sudo rm /etc... line.

With the trailing # removed and fresh update and upgrade all is well.

Today's install is to play with EtherCAT on some Beckhoff and Leadshine modules.
The following user(s) said Thank You: rodw, jjdege

Please Log in or Create an account to join the conversation.

More
04 Feb 2024 13:51 #292385 by tommylight
Replied by tommylight on topic Update error

Should be fixed in 2.9.2 download but this will fix it.
Its something we inherited from Debian so its annoying as it is nothing to do with our installer.

It is not fixed as stated on the post above.
Deferring blame is not fixing it, it is Debian, so it is our installer.
Clean the build environment before building a new ISO version, this is dragging on from Debian 12 or 12.1

Please Log in or Create an account to join the conversation.

More
04 Feb 2024 18:56 #292426 by bob8020
Replied by bob8020 on topic Update error
Hi tommylight,

Agreed 100%, having to delete arm stuff that Debian 12 installs on a brand new x86 install stuff isn't fixing... can we agree to call it a workaround?

But in all things Unix (and true since I installed the PC/IX 19 floppy disks of System III around 1984) stuff goes wrong and a quick workaround helps.

Many noticed this Debian issue since July 2023:

forums.debian.net/viewtopic.php?t=155216

where I found this somewhat safer (no I did not try it) workaround:

sudo dpkg -P raspi-firmware
sudo apt-get dist-upgrade

It appears that Debian 12 has been updated, fixing this, so would a fix (not workaround) be to re-build our LinuxCNC iso from a slightly newer Debian 12 release?

I'd like to be able to do this but am literally tied up in many meters of shielded servo encoder cables at the moment :)
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
04 Feb 2024 20:05 #292435 by tommylight
Replied by tommylight on topic Update error

Agreed 100%, having to delete arm stuff that Debian 12 installs on a brand new x86 install stuff isn't fixing... can we agree to call it a workaround?

Yes we can.
The thing is, new users download/burn/install from that ISO then go to update or add/install something and bump into that error, so normally they search for the last line in the error report and waste a lot of time getting nowhere, especially since searching for "exited with -1" will bring back thousands of unrelated results, etc etc so by the time they are able to fix this and move on, 2 or more days have passed by and frustration has skyrocketed to outer space...

It appears that Debian 12 has been updated, fixing this, so would a fix (not workaround) be to re-build our LinuxCNC iso from a slightly newer Debian 12 release?

Yes, that would fix it.
The following user(s) said Thank You: my1987toyota

Please Log in or Create an account to join the conversation.

More
04 Feb 2024 21:01 #292443 by tommylight
Replied by tommylight on topic Update error
@Bob8020,
Can you please post the result of
cat /etc/os-release
Thank you.

Please Log in or Create an account to join the conversation.

More
05 Feb 2024 01:15 - 05 Feb 2024 01:16 #292458 by bob8020
Replied by bob8020 on topic Update error
@tommylight,

bob@cnc:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="www.debian.org/"
SUPPORT_URL="www.debian.org/support"
BUG_REPORT_URL="bugs.debian.org/"

bob@cnc:~$ uname -a
Linux cnc 6.1.0-17-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux

History: downloaded LinuxCNC iso around Jan 26, found workaround from rodw, removed trailing #, now updates OK.
Last edit: 05 Feb 2024 01:16 by bob8020. Reason: added uname -a output
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
05 Feb 2024 01:31 #292462 by tommylight
Replied by tommylight on topic Update error
Thank you.
Trying to find out how to know what minor version of Debian is in use, given the huge user base Debian has, it is strange i can not find anything about it on the net, or google reverted back to being useless again.

Please Log in or Create an account to join the conversation.

More
05 Feb 2024 01:39 #292464 by phillc54
Replied by phillc54 on topic Update error
Tommy, this works
cat /etc/debian_version

Please Log in or Create an account to join the conversation.

Time to create page: 0.380 seconds
Powered by Kunena Forum