Strugling with installation

More
06 Oct 2025 22:36 #335957 by Digger011
Strugling with installation was created by Digger011
After the initial hick-ups with Lan connection, I hoped everything will be smooth sail, but it looks like no luck.
I tried a couple of times to install it from scratch, but same problem is there initramfs tools error code 1. Wondering why it looks for raspi when I am not running Rospi?
What can I do to properly finish with installation? 

Thanks,
M

dkms: running auto installation service for kernel 6.1.0-40-amd64.
dkms: autoinstall for kernel: 6.1.0-40-amd64.
Setting up libqt5opengl5:amd64 (5.15.8+dfsg-11+deb12u3) ...
Setting up linux-headers-rt-amd64 (6.1.153-1) ...
Setting up libgimp2.0:amd64 (2.10.34-1+deb12u3) ...
Setting up libpoppler-qt5-1:amd64 (22.12.0-2+deb12u1) ...
Setting up linux-headers-amd64 (6.1.153-1) ...
Processing triggers for systemd (252.39-1~deb12u1) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for dbus (1.14.10-1~deb12u1) ...
Processing triggers for shared-mime-info (2.2-1) ...
Processing triggers for debianutils (5.7-0.5~deb12u1) ...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.36-9+deb12u13) ...
Processing triggers for initramfs-tools (0.142+deb12u3) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-40-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 c
ode 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned 
error exit status 1
Processing triggers for ca-certificates (20230311+deb12u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Errors were encountered while processing:
 linux-image-6.1.0-40-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
07 Oct 2025 00:35 - 07 Oct 2025 00:38 #335963 by Digger011
Replied by Digger011 on topic Strugling with installation
After running sudo apt-get install -f I've got this:

dpkg: error processing package linux-image-rt-amd64 (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142+deb12u3) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-40-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: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-6.1.0-40-rt-amd64
linux-image-rt-amd64
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then went with

sudo apt-get check
apt-cache depends

I got this:

milos@cnc:~$ apt-cache depends linux-image-rt-amd64
linux-image-rt-amd64
Depends: linux-image-6.1.0-40-rt-amd64
milos@cnc:~$ apt-cache depends linux-image-6.1.0-40-rt-amd64
linux-image-6.1.0-40-rt-amd64
Depends: kmod
Depends: linux-base
|Depends: initramfs-tools
Depends: <linux-initramfs-tool>
dracut
initramfs-tools
tiny-initramfs
Conflicts: linux-image-6.1.0-40-rt-amd64-unsigned
Breaks: fwupdate
Breaks: initramfs-tools
Breaks: wireless-regdb
Recommends: firmware-linux-free
Recommends: apparmor
Suggests: linux-doc-6.1
Suggests: debian-kernel-handbook
|Suggests: grub-pc
|Suggests: grub-efi-amd64
Suggests: extlinux
Replaces: linux-image-6.1.0-40-rt-amd64-unsigned

what should I do next? I don't understand this.:(
Last edit: 07 Oct 2025 00:38 by Digger011.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
07 Oct 2025 00:42 #335965 by tommylight
Replied by tommylight on topic Strugling with installation

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

More
10 Oct 2025 18:45 #336210 by Digger011
Replied by Digger011 on topic Strugling with installation
I believe you referred to this to run

# rm /etc/{initramfs/post-update.d/,kernel/{postinst.d/,postrm.d/}}z50-raspi-firmware
# apt purge raspi-firmware

What should I do after that? I apologize Tommy, but I have no idea what should I do.
Thanks.

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

  • andypugh
  • andypugh's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Oct 2025 20:06 #336222 by andypugh
Replied by andypugh on topic Strugling with installation
Is this with the LinuxCNC install image?

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

More
10 Oct 2025 21:05 #336235 by Digger011
Replied by Digger011 on topic Strugling with installation
This is what I have a problem with after installing from LinuxCNC install image linux_2.9.4-amd64.hybrid

Is this correct?

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Oct 2025 21:41 #336240 by tommylight
Replied by tommylight on topic Strugling with installation
Did you do this
sudo apt purge raspi-firmware
After you do
sudo apt update
then you can upgrade if you want to
[sudo apt upgrade[/code]
Then you can install whatever you want as usual.

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

More
10 Oct 2025 22:50 #336245 by Digger011
Replied by Digger011 on topic Strugling with installation
Tommy, thanks for the instructions.

milos@cnc:~$ apt list --upgradable
Listing... Done
libtiff-dev/oldstable-security 4.5.0-6+deb12u3 amd64 [upgradable from: 4.5.0-6+deb12u2]
libtiff6/oldstable-security 4.5.0-6+deb12u3 amd64 [upgradable from: 4.5.0-6+deb12u2]
libtiffxx6/oldstable-security 4.5.0-6+deb12u3 amd64 [upgradable from: 4.5.0-6+deb12u2]
milos@cnc:~$ sudo apt upgrade libtiff-dev/oldstable-security 4.5.0-6+deb12u3 amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package 4.5.0-6+deb12u3
E: Couldn't find any package by glob '4.5.0-6+deb12u3'
E: Unable to locate package amd64
milos@cnc:~$ sudo apt upgrade libtiff-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libtiff-dev libtiff6 libtiffxx6
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 916 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 security.debian.org/debian-security bookworm-security/main amd64 libtiff-dev amd64 4.5.0-6+deb12u3 [456 kB]
Get:2 security.debian.org/debian-security bookworm-security/main amd64 libtiff6 amd64 4.5.0-6+deb12u3 [316 kB]
Get:3 security.debian.org/debian-security bookworm-security/main amd64 libtiffxx6 amd64 4.5.0-6+deb12u3 [144 kB]
Fetched 916 kB in 0s (2,671 kB/s)   
(Reading database ... 180636 files and directories currently installed.)
Preparing to unpack .../libtiff-dev_4.5.0-6+deb12u3_amd64.deb ...
Unpacking libtiff-dev:amd64 (4.5.0-6+deb12u3) over (4.5.0-6+deb12u2) ...
Preparing to unpack .../libtiff6_4.5.0-6+deb12u3_amd64.deb ...
Unpacking libtiff6:amd64 (4.5.0-6+deb12u3) over (4.5.0-6+deb12u2) ...
Preparing to unpack .../libtiffxx6_4.5.0-6+deb12u3_amd64.deb ...
Unpacking libtiffxx6:amd64 (4.5.0-6+deb12u3) over (4.5.0-6+deb12u2) ...
Setting up initramfs-tools (0.142+deb12u3) ...
update-initramfs: deferring update (trigger activated)
Setting up libtiff6:amd64 (4.5.0-6+deb12u3) ...
Setting up libtiffxx6:amd64 (4.5.0-6+deb12u3) ...
Setting up linux-image-6.1.0-40-rt-amd64 (6.1.153-1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-40-rt-amd64.
dkms: autoinstall for kernel: 6.1.0-40-rt-amd64.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-40-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
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-6.1.0-40-rt-amd64 (--configure):
 installed linux-image-6.1.0-40-rt-amd64 package post-installation script subprocess returned error exit status 1
Setting up libtiff-dev:amd64 (4.5.0-6+deb12u3) ...
dpkg: dependency problems prevent configuration of linux-image-rt-amd64:
 linux-image-rt-amd64 depends on linux-image-6.1.0-40-rt-amd64 (= 6.1.153-1); however:
  Package linux-image-6.1.0-40-rt-amd64 is not configured yet.

dpkg: error processing package linux-image-rt-amd64 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u13) ...
Processing triggers for initramfs-tools (0.142+deb12u3) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-40-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: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-6.1.0-40-rt-amd64
 linux-image-rt-amd64
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Wonering what am I doing wrong. 

M

 

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Oct 2025 22:57 #336246 by tommylight
Replied by tommylight on topic Strugling with installation
Try
sudo apt purge *raspi*
then sudo apt update
-
Sorry, i copied and pasted that line from the post i linked and now i noticed that line will not work as was written there, dang, now i have to find all the posts about it and fix them.
Not my mess, luckily, but i hate dealing with it as it's been dragging for over a year now, all because someone did not clean the build environment before building the ISO.

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

More
10 Oct 2025 23:28 #336250 by Digger011
Replied by Digger011 on topic Strugling with installation
No problem Tommy, I should be sorry to bug you for all of this.
Here is what is going on:
milos@cnc:~$ sudo apt purge *raspi*
[sudo] password for milos: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'linux-firmware-raspi3' for glob '*raspi*'
Note, selecting 'raspi-firmware' for glob '*raspi*'
Note, selecting 'raspi3-firmware' for glob '*raspi*'
Package 'linux-firmware-raspi3' is not installed, so not removed
Package 'raspi3-firmware' is not installed, so not removed
The following packages will be REMOVED:
  raspi-firmware*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.142+deb12u3) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-6.1.0-40-rt-amd64 (6.1.153-1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-40-rt-amd64.
dkms: autoinstall for kernel: 6.1.0-40-rt-amd64.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-40-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
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-6.1.0-40-rt-amd64 (--configure):
 installed linux-image-6.1.0-40-rt-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-rt-amd64:
 linux-image-rt-amd64 depends on linux-image-6.1.0-40-rt-amd64 (= 6.1.153-1); however:
  Package linux-image-6.1.0-40-rt-amd64 is not configured yet.

dpkg: error processing package linux-image-rt-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-6.1.0-40-rt-amd64
 linux-image-rt-amd64

E: Sub-process /usr/bin/dpkg returned an error code (1)
milos@cnc:~$ sudo apt update
Hit:1 deb.debian.org/debian bookworm InRelease
Hit:2 deb.debian.org/debian bookworm-updates InRelease
Hit:3 security.debian.org/debian-security bookworm-security InRelease
Hit:4 www.linuxcnc.org bookworm InRelease
Hit:5 repository.qtpyvcp.com/apt develop InRelease    
Hit:6 download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

Does it mean that everything is ok now? There was an error, but after update it looks ok.

M

 

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

Time to create page: 0.173 seconds
Powered by Kunena Forum