Control: retitle -1 mkinitramfs doesn't work without a configuration file Control: severity -1 wishlist On Sun, 2016-12-11 at 09:48 +0800, Marc Bonnor wrote: > Package: initramfs-tools > Version: 0.125 > Severity: important > > Dear Maintainer, > > When I do package updates I see errors; > > Setting up initramfs-tools (0.125) ... > update-initramfs: deferring update (trigger activated) > Processing triggers for initramfs-tools (0.125) ... > update-initramfs: Generating /boot/initrd.img-4.8.0-2-amd64 > /usr/sbin/mkinitramfs: 66: .: Can't open /etc/initramfs- > tools/initramfs.conf It appears that you deleted a configuration file. This is currently a fatal error. > update-initramfs: failed for /boot/initrd.img-4.8.0-2-amd64 with 2. > dpkg: error processing package initramfs-tools (--configure): > subprocess installed post-installation script returned error exit > status 2 > Errors were encountered while processing: > initramfs-tools > E: Sub-process /usr/bin/dpkg returned an error code (1) > > I see that the initramfs-tools package is partially installed when I > view package in Aptitude. > I have tried to reinstall several times, and I have tried to > downgrade package to stable version, but nothing works. dpkg considers deletion of a conffile (a configuration file that it knows about) to be deliberate, so it won't re-create the conffile on upgrade by default. You should be able to recover like this: touch /etc/initramfs-tools/initramfs.conf dpkg --configure initramfs-tools # will warn but should succeed rm /etc/initramfs-tools/initramfs.conf apt -d --reinstall install initramfs-tools-core dpkg -i --force-confnew /var/cache/apt/archives/initramfs-tools-core_0.125_all.deb Ben. -- Ben Hutchings Any sufficiently advanced bug is indistinguishable from a feature.
Attachment:
signature.asc
Description: This is a digitally signed message part