package initramfs-tools 0.122ubuntu8 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
sudo apt-get update
Ign:1 http://
Hit:2 http://
Get:3 http://
Hit:4 http://
Hit:6 http://
Get:7 http://
Fetched 185 kB in 2s (78.3 kB/s)
Reading package lists... Done
W: http://
W: http://
sudo apt-get install initramfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
initramfs-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,592 B of archives.
After this operation, 126 kB of additional disk space will be used.
Get:1 http://
Fetched 8,592 B in 1s (7,879 B/s)
Selecting previously unselected package initramfs-tools.
(Reading database ... 430494 files and directories currently installed.)
Preparing to unpack .../initramfs-
Unpacking initramfs-tools (0.122ubuntu8) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up initramfs-tools (0.122ubuntu8) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8) ...
ls: cannot access '/var/lib/
update-initramfs: Generating /boot/initrd.
/usr/sbin/
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)
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: initramfs-tools 0.122ubuntu8
ProcVersionSign
Uname: Linux 3.19.0-26-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
AptOrdering:
initramfs-tools: Install
initramfs-tools: Configure
NULL: ConfigurePending
Architecture: amd64
Date: Thu May 5 17:47:32 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationDate: Installed on 2015-07-10 (299 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitec
RelatedPackageV
dpkg 1.18.4ubuntu1
apt 1.2.10ubuntu1
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.122ubuntu8 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: Upgraded to xenial on 2016-05-04 (1 days ago)
tags: | removed: need-duplicate-check |
I solved the error above by performing the following steps:
1. me@mypc:$ sudo mkdir /var/lib/ initramfs- tools 4.4.0-21- *
2. me@mypc:$ sudo apt-get install linux-image-
Step 1 will create the initramfs-tools directory
Step 2 will install the 4.4.0-21 kernel and all it requires to run