initramfs-tools configuration error

If none of the more specific forums is the right place to ask

initramfs-tools configuration error

Postby skeetis » 2017-09-23 23:44

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 ?
skeetis
 
Posts: 2
Joined: 2017-09-23 23:33

Re: initramfs-tools configuration error

Postby peter_irich » 2017-09-24 05:57

1st what I do in such case:
Code: Select all
apt-get -f install

and then depend of the result.

Peter.
peter_irich
 
Posts: 1195
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: initramfs-tools configuration error

Postby p.H » 2017-09-24 06:52

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 ?
Code: Select all
update-initramfs -v -u
p.H
 
Posts: 178
Joined: 2017-09-17 07:12

Re: initramfs-tools configuration error

Postby skeetis » 2017-09-25 08:24

@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.
skeetis
 
Posts: 2
Joined: 2017-09-23 23:33


Return to General Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable