This problem appeared suddenly after a casual "sudo apt upgrade" : packages would still install or upgrade but I got an error at the end, so I dug a little on the internet and found out that it was a problem of package configuration.
Here the output of "dpkg -C" (misconfigured packages) :
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-image-amd64 Linux for 64-bit PCs (meta-package)
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
initramfs-tools generic modular initramfs generator (automation)
linux-image-4.9.0-3-amd64 Linux 4.9 for 64-bit PCs
And here is the output of "dpkg --configure initramfs-tools" where the problem seems to come from :
Setting up initramfs-tools (0.130) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.9.0-3-amd64
cp: cannot stat '-': No such file or directory
cp: cannot stat 'usbblaster.rules': No such file or directory
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.9.0-3-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
the problem seems to come from the lines in bold :
cp: cannot stat '-': No such file or directory
cp: cannot stat 'usbblaster.rules': No such file or directory
I tried to configure those packages with dpkg directly and with dselect, but it didn't work in either cases.
can you help me find how to solve this please ?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
initramfs-tools configuration error
-
- Posts: 1403
- Joined: 2009-09-10 20:15
- Location: Saint-Petersburg, Russian Federation
- Been thanked: 11 times
Re: initramfs-tools configuration error
1st what I do in such case:
and then depend of the result.
Peter.
Code: Select all
apt-get -f install
Peter.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: initramfs-tools configuration error
The error does not come from dpkg or apt but from the execution of update-initramfs during the configuration of initramfs-tools.
Can you run the following command to print more information ?
Can you run the following command to print more information ?
Code: Select all
update-initramfs -v -u
Re: initramfs-tools configuration error
@peter_irich : already tried that before coming here. It gave me approximatively the same error, with "cp : cannot stat "-" no such file or directoy"
@p.H : already tried it, and got the same error like dpkg --configure initramfs-tools
After a reboot, my system wouldn't start any more so I backed up my documents and reinstalled a new Debian, so issue closed.
@p.H : already tried it, and got the same error like dpkg --configure initramfs-tools
After a reboot, my system wouldn't start any more so I backed up my documents and reinstalled a new Debian, so issue closed.