Unable to install initramfs-tools

Asked by Eero Hytönen

Hi,

Followed the procedure at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure and here's the output. I hope it helps.

-Eero

hilkka@susihukka:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for hilkka:
                     KÄYTTÄJÄ PID ACCESS KÄSKY
/var/lib/dpkg/lock: root 2158 F.... synaptic
hilkka@susihukka:~$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=1
DISTRIB_CODENAME=debian
DISTRIB_DESCRIPTION="Linux Mint Xfce Edition"
hilkka@susihukka:~$ uname -a
Linux susihukka 3.1.0-1-686-pae #1 SMP Sun Dec 11 20:40:16 UTC 2011 i686 GNU/Linux
hilkka@susihukka:~$ sudo rm /var/lib/apt/lists/lock
hilkka@susihukka:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup

hilkka@susihukka:~$
hilkka@susihukka:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
hilkka@susihukka:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
hilkka@susihukka:~$ sudo rm -rf /var/lib/dpkg/updates/*
hilkka@susihukka:~$ sudo rm -rf /var/lib/apt/lists
hilkka@susihukka:~$ sudo rm /var/cache/apt/*.bin
hilkka@susihukka:~$ sudo mkdir /var/lib/apt/lists
hilkka@susihukka:~$ sudo mkdir /var/lib/apt/lists/partial
hilkka@susihukka:~$ LANG=C;sudo apt-get clean
hilkka@susihukka:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
hilkka@susihukka:~$ LANG=C;sudo apt-get --purge autoremove
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.99) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.1.0-1-686-pae
cp: cannot stat `/lib/libacl*': No such file or directory
E: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.1.0-1-686-pae with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
hilkka@susihukka:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://ftp.debian.org testing InRelease [177 kB]
Ign http://packages.linuxmint.com debian InRelease
Get:2 http://ftp.debian.org testing/main i386 Packages [7645 kB]
Get:3 http://packages.linuxmint.com debian Release.gpg [198 B]
Get:4 http://packages.linuxmint.com debian Release [12.1 kB]
Get:5 http://packages.linuxmint.com debian/main i386 Packages [9896 B]
Get:6 http://packages.linuxmint.com debian/upstream i386 Packages [5208 B]
Get:7 http://packages.linuxmint.com debian/import i386 Packages [19.4 kB]
Ign http://packages.linuxmint.com debian/import TranslationIndex
Ign http://packages.linuxmint.com debian/main TranslationIndex
Ign http://packages.linuxmint.com debian/upstream TranslationIndex
Ign http://packages.linuxmint.com debian/import Translation-en
Ign http://packages.linuxmint.com debian/main Translation-en
Ign http://packages.linuxmint.com debian/upstream Translation-en
Get:8 http://ftp.debian.org testing/contrib i386 Packages [63.7 kB]
Get:9 http://ftp.debian.org testing/non-free i386 Packages [107 kB]
Ign http://ftp.debian.org testing/contrib TranslationIndex
Get:10 http://ftp.debian.org testing/main TranslationIndex [2085 B]
Ign http://ftp.debian.org testing/non-free TranslationIndex
Ign http://ftp.debian.org testing/contrib Translation-en
Ign http://ftp.debian.org testing/non-free Translation-en
Fetched 8043 kB in 16s (476 kB/s)
Reading package lists... Done
hilkka@susihukka:~$ sudo dpkg --clear-avail
hilkka@susihukka:~$ sudo dpkg --configure -a
Setting up initramfs-tools (0.99) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.1.0-1-686-pae
cp: cannot stat `/lib/libacl*': No such file or directory
E: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.1.0-1-686-pae with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
hilkka@susihukka:~$ LANG=C;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 35 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.99) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.1.0-1-686-pae
cp: cannot stat `/lib/libacl*': No such file or directory
E: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.1.0-1-686-pae with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
hilkka@susihukka:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 35 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.99) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.1.0-1-686-pae
cp: cannot stat `/lib/libacl*': No such file or directory
E: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.1.0-1-686-pae with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
hilkka@susihukka:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://ftp.debian.org testing InRelease
Get:1 http://ftp.debian.org testing/main i386 Packages/DiffIndex [2038 B]
Ign http://packages.linuxmint.com debian InRelease
Get:2 http://ftp.debian.org testing/contrib i386 Packages/DiffIndex [2023 B]
Get:3 http://ftp.debian.org testing/non-free i386 Packages/DiffIndex [2023 B]
Ign http://ftp.debian.org testing/contrib TranslationIndex
Hit http://ftp.debian.org testing/main TranslationIndex
Ign http://ftp.debian.org testing/non-free TranslationIndex
Get:4 http://packages.linuxmint.com debian Release.gpg [198 B]
Get:5 http://packages.linuxmint.com debian Release [12.1 kB]
Ign http://ftp.debian.org testing/contrib Translation-en
Ign http://ftp.debian.org testing/non-free Translation-en
Get:6 http://packages.linuxmint.com debian/main i386 Packages [9896 B]
Get:7 http://packages.linuxmint.com debian/upstream i386 Packages [5208 B]
Get:8 http://packages.linuxmint.com debian/import i386 Packages [19.4 kB]
Ign http://packages.linuxmint.com debian/import TranslationIndex
Ign http://packages.linuxmint.com debian/main TranslationIndex
Ign http://packages.linuxmint.com debian/upstream TranslationIndex
Ign http://packages.linuxmint.com debian/import Translation-en
Ign http://packages.linuxmint.com debian/main Translation-en
Ign http://packages.linuxmint.com debian/upstream Translation-en
Fetched 53.0 kB in 5s (9480 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  mint-flashplugin-11
The following packages have been kept back:
  mint-flashplugin xserver-xorg xserver-xorg-core
  xserver-xorg-input-evdev xserver-xorg-input-synaptics
  xserver-xorg-input-wacom xserver-xorg-video-apm
  xserver-xorg-video-ark xserver-xorg-video-ati
  xserver-xorg-video-chips xserver-xorg-video-cirrus
  xserver-xorg-video-fbdev xserver-xorg-video-i128
  xserver-xorg-video-i740 xserver-xorg-video-intel
  xserver-xorg-video-mach64 xserver-xorg-video-mga
  xserver-xorg-video-neomagic xserver-xorg-video-nouveau
  xserver-xorg-video-openchrome xserver-xorg-video-r128
  xserver-xorg-video-radeon xserver-xorg-video-rendition
  xserver-xorg-video-s3 xserver-xorg-video-s3virge
  xserver-xorg-video-savage xserver-xorg-video-siliconmotion
  xserver-xorg-video-sis xserver-xorg-video-sisusb
  xserver-xorg-video-tdfx xserver-xorg-video-trident
  xserver-xorg-video-tseng xserver-xorg-video-vesa
  xserver-xorg-video-vmware xserver-xorg-video-voodoo
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
1 not fully installed or removed.
Need to get 6430 kB of archives.
After this operation, 17.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://packages.linuxmint.com/ debian/import mint-flashplugin-11 i386 11.0.d1.98 [6430 kB]
Fetched 6430 kB in 11s (541 kB/s)
Selecting previously unselected package mint-flashplugin-11.
(Reading database ... 139465 files and directories currently installed.)
Unpacking mint-flashplugin-11 (from .../mint-flashplugin-11_11.0.d1.98_i386.deb) ...
Setting up initramfs-tools (0.99) ...
update-initramfs: deferring update (trigger activated)
Setting up mint-flashplugin-11 (11.0.d1.98) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.1.0-1-686-pae
cp: cannot stat `/lib/libacl*': No such file or directory
E: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.1.0-1-686-pae with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Eero Hytönen
Solved:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

From your package retrieval, it looks like you are running linux mint, not ubuntu... So although they are similar, they are slightly different, and it could be this is what is going wrong -- I have no idea, I don't have a mint install (though it does look like it might be worth checking out next time I upgrade).

You'd probably get better help on a mint forum. My 2 cents is that you appear to be missing libacl, which is part of the libacl package. How your system is working without any posix acl functionality, I don't know. It is a required core package in ubuntu.

Revision history for this message
mycae (mycae) said :
#2

Hmm, on a double check, libacl for me is in /usr/lib/, not /lib/.

Anyway, asking on the mint forums is your best bet:
http://forums.linuxmint.com/

Revision history for this message
Eero Hytönen (eero-hytonen) said :
#3

Hi mycae,

Thanks for the quick reply and pointing me to right direction. Indeed one problem was that initramfs-tools couldn't find libacl* because it was in a different folder: in LMDE it's apparently in /lib/i386-linux-gnu/

I made a hard link to the right folder and it worked -but only for that problem. Now there is another issue for which I'll ask about over at mint forums.

Revision history for this message
mycae (mycae) said :
#4

It looks like that is a broken package (initramfs-tools). /lib/i386-linux-gnu is the new debian "multiarch" location for installing libraries (for example if cross compiling, or emulating, or what have you). Its only just started to be rolled out, AFAIK.