Strugling with installation

More
1 year 3 weeks ago #336240 by tommylight
Did you do this
Code:
sudo apt purge raspi-firmware
After you do
Code:
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
1 year 3 weeks ago #336245 by Digger011
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.

More
1 year 3 weeks ago #336246 by tommylight
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
1 year 3 weeks ago #336250 by Digger011
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.

More
1 year 3 weeks ago #336251 by tommylight
Nope, not entirely, but something did, so give this a go
Code:
sudo rm /etc/{initramfs/post-update.d/,kernel/{postinst.d/,postrm.d/}}z50-raspi-firmware
Code:
sudo apt purge raspi-firmware
and post the result.

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

More
1 year 3 weeks ago #336252 by Digger011
Here they are:

milos@cnc:~$ sudo rm /etc/{initramfs/post-update.d/,kernel/{postinst.d/,postrm.d/}}z50-raspi-firmware
[sudo] password for milos: 
milos@cnc:~$ sudo apt purge raspi-firmware
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  raspi-firmware*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 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 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
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-40-rt-amd64
Found initrd image: /boot/initrd.img-6.1.0-40-rt-amd64
Found linux image: /boot/vmlinuz-6.1.0-30-rt-amd64
Found initrd image: /boot/initrd.img-6.1.0-30-rt-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
Setting up linux-image-rt-amd64 (6.1.153-1) ...
Processing triggers for initramfs-tools (0.142+deb12u3) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-40-rt-amd64
(Reading database ... 180636 files and directories currently installed.)
Purging configuration files for raspi-firmware (1.20220830+ds-1) ...

First time that I don't see any error. Are we out of the woods now?

 

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

Time to create page: 0.348 seconds
Powered by Kunena Forum