Posts: 341
Threads: 27
Joined: Apr 2019
Reputation:
7
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
Posts: 1,456
Threads: 118
Joined: Mar 2016
Reputation:
93
2025-11-12, 04:04 PM
(This post was last modified: 2025-11-12, 04:05 PM by PaddyB.)
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.
Posts: 341
Threads: 27
Joined: Apr 2019
Reputation:
7
(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.  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.
Posts: 91
Threads: 4
Joined: Jan 2018
Reputation:
10
Hi Max,
possible fix
Code: cd /usr/lib/node_modules/signalk-server
sudo npm install socketcan
sudo systemctl restart signalk.service
Posts: 341
Threads: 27
Joined: Apr 2019
Reputation:
7
(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
 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!
Posts: 341
Threads: 27
Joined: Apr 2019
Reputation:
7
(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
 Every update is a mess, at least for me.
Can you help me?
photo
Posts: 91
Threads: 4
Joined: Jan 2018
Reputation:
10
2025-11-30, 01:29 PM
(This post was last modified: 2025-12-01, 12:01 PM by BlackSea.)
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.
Posts: 341
Threads: 27
Joined: Apr 2019
Reputation:
7
(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.
 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.
Posts: 43
Threads: 2
Joined: Jan 2018
Reputation:
1
(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
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
|