package initramfs-tools or linux-image-*-generic failed to install/upgrade: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1.

Bug #1658352 reported by Asif Ahmad Khan
226
This bug affects 42 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Invalid
Undecided
Rolf Leggewie

Bug Description

whenever i try to upgrade my operating system from ubuntu 14.04 to 16.04 error show "could not install initramfs-tools", "could not install linux-firmware" and "could not install linux-image-4.4.0-59-generic" and te upgrade is failed show could not install upgrade

From the dpkg terminal log, the error that's occurring is:

  Processing triggers for initramfs-tools (0.103ubuntu4.7) ...
  update-initramfs: Generating /boot/initrd.img-3.13.0-108-generic
  E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1.
  update-initramfs: failed for /boot/initrd.img-3.13.0-108-generic with 1.
  dpkg: error processing package initramfs-tools (--configure):
   subprocess installed post-installation script returned error exit status 1

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: initramfs-tools 0.103ubuntu4.7
ProcVersionSignature: Ubuntu 3.13.0-108.155-generic 3.13.11-ckt39
Uname: Linux 3.13.0-108-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.23
Architecture: amd64
Date: Sat Jan 21 23:52:45 2017
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-trusty-amd64-20140620-0
DuplicateSignature: package:initramfs-tools:0.103ubuntu4.7:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-01-14 (7 days ago)
InstallationMedia: Ubuntu 14.04 "Trusty" - Build amd64 LIVE Binary 20140620-04:25
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.17.5ubuntu5.7
 apt 1.0.1ubuntu2.17
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.103ubuntu4.7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2017-01-21 (0 days ago)

Revision history for this message
Asif Ahmad Khan (asifkhan) wrote :
Revision history for this message
Steve Beattie (sbeattie) wrote : Bug is not a security issue

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

information type: Private Security → Public
tags: removed: need-duplicate-check
Revision history for this message
Steve Beattie (sbeattie) wrote : Re: package initramfs-tools 0.103ubuntu4.7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1.

From the dpkg terminal log, the error that's occurring is:

  Processing triggers for initramfs-tools (0.103ubuntu4.7) ...
  update-initramfs: Generating /boot/initrd.img-3.13.0-108-generic
  E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1.
  update-initramfs: failed for /boot/initrd.img-3.13.0-108-generic with 1.
  dpkg: error processing package initramfs-tools (--configure):
   subprocess installed post-installation script returned error exit status 1

The casper-memdisk bit should not be necessary; it's likely that issuing the following commands will resolve the problem you're seeing:

sudo dpkg -P casper-memdisk
sudo apt-get install -f
sudo update-grub

affects: initramfs-tools (Ubuntu) → linux-firmware (Ubuntu)
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Asif, did Steve's instructions help you to resolve the issue?

Changed in linux-firmware (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: New → Incomplete
Rolf Leggewie (r0lf)
Changed in linux-firmware (Ubuntu):
status: Incomplete → Invalid
Benjamin Drung (bdrung)
affects: linux-firmware (Ubuntu) → initramfs-tools (Ubuntu)
description: updated
Benjamin Drung (bdrung)
summary: - package initramfs-tools 0.103ubuntu4.7 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 1.
+ package initramfs-tools or linux-image-*-generic failed to
+ install/upgrade: /usr/share/initramfs-tools/hooks/casper-memdisk failed
+ with return 1.
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.