This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Imagine Rpi5
#1
I can't update the latest Raspberry Pi 5 image, and the system has become unstable. Can anyone help me, or do I have to reinstall everything?

See photo  Foto 1  

Rpi5-4mega with OP4-McArtur.

foto 2
Reply
#2
WHat does 'update" actually mean? Usually it's best to do any updates either in signalk or openplotter settings.

Your attached image snipped & pasted into perplexity with "Translate this into english"
Quote:Here is the English translation of the error output from your image:

dpkg: error while processing package linux-headers-rpi-2712 (--configure):
problems with dependencies - left unconfigured

Processing triggers for initramfs-tools (0.142+rpt4+deb12u3)...
update-initramfs: Generating /boot/initrd.img-6.12.47+rpt-rpi-v8
cp: impossible to create the regular file '/boot/firmware/initramfs8': File system is read-only

run-parts: /etc/initramfs/post-update.d/z50-raspi-firmware exited with return code 1

dpkg: error while processing package initramfs-tools (--configure):
the subprocess installed package initramfs-tools script post-installation returned error status 1

Errors occurred while processing:
linux-image-6.12.47+rpt-rpi-v8
linux-headers-6.12.47+rpt-rpi-v8
raspi-firmware
linux-image-rpi-v8
linux-image-6.12.47+rpt-2712
linux-headers-rpi-v8
linux-headers-6.12.47+rpt-2712
linux-image-rpi-2712
linux-headers-rpi-2712
initramfs-tools

E: Sub-process /usr/bin/dpkg returned an error code (1)

The key line indicating the main problem is:
cp: impossible to create the regular file '/boot/firmware/initramfs8': File system is read-only

This means the script cannot write to the /boot/firmware directory because the file system is mounted as read-only, which is causing the installation errors with your kernel and initramfs packages.

Quote:here is the translation of the error message shown in the new image:

Error installing packages:
Error while installing package: the subprocess installed package linux-image-6.12.47+rpt-rpi-v8 script post-installation returned error status 1

This is a mix of Italian and English. The message indicates that, during installation, the post-install script for the kernel image package encountered an error and stopped with status code 1, preventing the install from completing.
Reply
#3
(2025-11-12, 04:04 PM)PaddyB Wrote: WHat does 'update" actually mean? Usually it's best to do any updates either in signalk or openplotter settings.

Your attached image snipped & pasted into perplexity with "Translate this into english"
Quote:Here is the English translation of the error output from your image:

dpkg: error while processing package linux-headers-rpi-2712 (--configure):
problems with dependencies - left unconfigured

Processing triggers for initramfs-tools (0.142+rpt4+deb12u3)...
update-initramfs: Generating /boot/initrd.img-6.12.47+rpt-rpi-v8
cp: impossible to create the regular file '/boot/firmware/initramfs8': File system is read-only

run-parts: /etc/initramfs/post-update.d/z50-raspi-firmware exited with return code 1

dpkg: error while processing package initramfs-tools (--configure):
the subprocess installed package initramfs-tools script post-installation returned error status 1

Errors occurred while processing:
linux-image-6.12.47+rpt-rpi-v8
linux-headers-6.12.47+rpt-rpi-v8
raspi-firmware
linux-image-rpi-v8
linux-image-6.12.47+rpt-2712
linux-headers-rpi-v8
linux-headers-6.12.47+rpt-2712
linux-image-rpi-2712
linux-headers-rpi-2712
initramfs-tools

E: Sub-process /usr/bin/dpkg returned an error code (1)

The key line indicating the main problem is:
cp: impossible to create the regular file '/boot/firmware/initramfs8': File system is read-only

This means the script cannot write to the /boot/firmware directory because the file system is mounted as read-only, which is causing the installation errors with your kernel and initramfs packages.

Quote:here is the translation of the error message shown in the new image:

Error installing packages:
Error while installing package: the subprocess installed package linux-image-6.12.47+rpt-rpi-v8 script post-installation returned error status 1

This is a mix of Italian and English. The message indicates that, during installation, the post-install script for the kernel image package encountered an error and stopped with status code 1, preventing the install from completing.
Big Grin Thanks, solved, I had disabled file system protection in the Raspberry config.

Now I have to work on CAN recognition in signalK where it says "unable to load native socketkan interface".

I need to study a bit. Before the latest SignalK update, it worked fine.
Reply
#4
Hi Max,

possible fix
Code:
cd /usr/lib/node_modules/signalk-server
sudo npm install socketcan
sudo systemctl restart signalk.service
Reply
#5
(2025-11-14, 09:41 AM)BlackSea Wrote: Hi Max,

possible fix
Code:
cd /usr/lib/node_modules/signalk-server
sudo npm install socketcan
sudo systemctl restart signalk.service

Smile Hi BlackSea,

done, and I finally brought Can back to life.

You've saved me a lot of time rebuilding.

Thanks a thousand times, and fair winds, always!
Reply
#6
(2025-11-14, 09:41 AM)BlackSea Wrote: Hi Max,

possible fix
Code:
cd /usr/lib/node_modules/signalk-server
sudo npm install socketcan
sudo systemctl restart signalk.service

Big Grin Every update is a mess, at least for me.
Can you help me?

photo
Reply
#7
Code:
cd /home/pi/.signalk
npm install geolib
Yes, yes... npm is a nightmare. For me, pm (package manager) in the name is a mockery.
Reply
#8
(2025-11-30, 01:29 PM)BlackSea Wrote:
Code:
cd /home/pi/.signalk
npm install geolib
Yes, yes... npm is a nightmare. For me, pm (package manager) in the name is a mockery.

Smile Ciao thanks.

For a copy/paste person like me, you're a blessing. I'm too old to study. 

But since I have so much free time, I enjoy it a bit.
Reply
#9
(2025-11-30, 01:15 PM)Max1947 Wrote:
(2025-11-14, 09:41 AM)BlackSea Wrote: Hi Max,

possible fix
Code:
cd /usr/lib/node_modules/signalk-server
sudo npm install socketcan
sudo systemctl restart signalk.service

Big Grin Every update is a mess, at least for me.
Can you help me?

photo

You may want to read through this thread, maybe that helps you 
"Way to get out of NPM trouble"
https://forum.openmarine.net/showthread....rcansailor
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)