[Solved] Apt-get cannot configure initramfs-tools and linux-image

Archived topics about LMDE 1 and LMDE 2
Locked
George_blagra

[Solved] Apt-get cannot configure initramfs-tools and linux-image

Post by George_blagra »

I run an up to date LMDE 2. Apt-get cannot configure the packages " initramfs-tools " and " linux-image ".

My installation is on an SSD that passes an extended test without problems. I load my /tmp, /var/tmp, /var/lock, /var/run folder in the RAM memory. However, the same problems persist even when I load these folder in a hard drive.

I get errors

Code: Select all

cp: error reading ‘/usr/lib/x86_64-linux-gnu/plymouth//label.so’: Input/output error
cp: failed to extend ‘/var/tmp/mkinitramfs_jls9cK//usr/lib/x86_64-linux-gnu/plymouth//label.so’: Input/output error
cp: failed to extend ‘/var/tmp/mkinitramfs_WluwsX//usr/lib/x86_64-linux-gnu/plymouth//label.so’: Input/output error
In more detail, running,

Code: Select all

sudo apt-get install -f
yields

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.120+deb8u1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.16.0-4-amd64 (3.16.7-ckt25-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
cp: error reading ‘/usr/lib/x86_64-linux-gnu/plymouth//label.so’: Input/output error
cp: failed to extend ‘/var/tmp/mkinitramfs_jls9cK//usr/lib/x86_64-linux-gnu/plymouth//label.so’: Input/output error
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.16.0-4-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.0-4-amd64.postinst line 634.
dpkg: error processing package linux-image-3.16.0-4-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.120+deb8u1) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
cp: error reading ‘/usr/lib/x86_64-linux-gnu/plymouth//label.so’: Input/output error
cp: failed to extend ‘/var/tmp/mkinitramfs_WluwsX//usr/lib/x86_64-linux-gnu/plymouth//label.so’: Input/output error
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.16.0-4-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:
 linux-image-3.16.0-4-amd64
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Please, help me configure the packages.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
supertuxkart
Level 4
Level 4
Posts: 403
Joined: Sat Jan 23, 2016 5:58 pm

Re: Apt-get cannot configure initramfs-tools and linux-image

Post by supertuxkart »

The messages are referred to the package plymouth-label maybe damaged.
You can try to reinstall it.
If it's not possible, because it takes many more other packages and can harm the system. you can try to do the downgrade from the package manager.
George_blagra

Re: Apt-get cannot configure initramfs-tools and linux-image

Post by George_blagra »

I'm sorry. Apt-get is unable to locate the package " plymouth-label ". I can neither reinstall is neither install it.

I ran

Code: Select all

sudo apt-get install --reinstall plymouth-*
This resolved the problem and installed three new packages, namely plymouth-dbg plymouth-dev & plymouth-x11. I don't want them if I don't need them. Which ones can I remove safely?
supertuxkart
Level 4
Level 4
Posts: 403
Joined: Sat Jan 23, 2016 5:58 pm

Re: Apt-get cannot configure initramfs-tools and linux-image

Post by supertuxkart »

Well, the important is you solved the problem.
LMDE2 is slightly different from other Mints editions, so you do it good.

The package *-dev, contains the development files, i believe to build plugins for and the *-dbg the debug messages, mainly used from people who develop and maintan the packages.
Anyway, i don't think you will free more than 200 Kb, so you can keep it.
When everything work, the proverb says it's better to don't touch nothing.
George_blagra

Re: Apt-get cannot configure initramfs-tools and linux-image

Post by George_blagra »

I don't see an option to close the question or flag it as answered.

/thread
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Apt-get cannot configure initramfs-tools and linux-image

Post by austin.texas »

George_blagra wrote:I don't see an option to close the question or flag it as answered.
Go to the first post, click EDIT, and add [SOLVED] to the title.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
Locked

Return to “LMDE Archive”