[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#847722: initramfs-tools: Package installation is not completed.



Hi Ben,

Thanks for quick response.

I ran the commands as suggested, and I get and warnings and errors on
the second command.

mabo@debian:~$ sudo dpkg --configure initramfs-tools
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
W: mkinitramfs: unsupported MODULES setting: .
W: mkinitramfs: Falling back to MODULES=most.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.8.0-2-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

Unfortunately, I still have the same problem.

mabo@debian:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
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
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)

On Sun, 11 Dec 2016 03:26:27 +0000 Ben Hutchings <ben@decadent.org.uk>
wrote:
> 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.


Reply to: