package initramfs-tools 0.122ubuntu8 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #1578616 reported by deeps
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [92.2 kB]
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Get:7 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [93.3 kB]
Fetched 185 kB in 2s (78.3 kB/s)
Reading package lists... Done
W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1)
W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 3B068FB4789ABE4AEFA3BB491397BC53640DB551 uses weak digest algorithm (SHA1)

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://in.archive.ubuntu.com/ubuntu xenial/main amd64 initramfs-tools all 0.122ubuntu8 [8,592 B]
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-tools_0.122ubuntu8_all.deb ...
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/initramfs-tools': No such file or directory
update-initramfs: Generating /boot/initrd.img-4.4.0-21-generic
/usr/sbin/update-initramfs: 206: /usr/sbin/update-initramfs: cannot create /var/lib/initramfs-tools/4.4.0-21-generic: Directory nonexistent
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
ProcVersionSignature: Ubuntu 3.19.0-26.28-generic 3.19.8-ckt4
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)
PackageArchitecture: all
RelatedPackageVersions:
 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)

Revision history for this message
deeps (dmpatil1995) wrote :
tags: removed: need-duplicate-check
Revision history for this message
l3s7r0z (lestrozo) wrote :

I solved the error above by performing the following steps:

1. me@mypc:$ sudo mkdir /var/lib/initramfs-tools
2. me@mypc:$ sudo apt-get install linux-image-4.4.0-21-*

Step 1 will create the initramfs-tools directory
Step 2 will install the 4.4.0-21 kernel and all it requires to run

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.