package initramfs-tools 0.120ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1509769 reported by Hipek on 2015-10-25
68
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Ubuntu MATE
Undecided
Unassigned
initramfs-tools (Ubuntu)
High
Unassigned

Bug Description

Error occured during UBUNTU Mate upgrade to 15.10 on Raspberry PI2 and once trying perform manual update getting:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... 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.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.120ubuntu6) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.120ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-3.18.0-25-rpi2
Unsupported platform.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: initramfs-tools 0.120ubuntu6
ProcVersionSignature: Ubuntu 3.18.0-25.26-rpi2 3.18.17
Uname: Linux 3.18.0-25-rpi2 armv7l
ApportVersion: 2.19.1-0ubuntu3
Architecture: armhf
Date: Sun Oct 25 08:19:08 2015
DuplicateSignature: package:initramfs-tools:0.120ubuntu6:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.2ubuntu5
 apt 1.0.10.2ubuntu1
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.120ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to wily on 2015-10-25 (0 days ago)

Hipek (hipek) wrote :
tags: removed: need-duplicate-check
Tom (tdavis-73) wrote :

Also happened to me when attempting to upgrade from ubuntu mate 12.04 to 12.10 for Raspberry Pi2. Tried also to install 12.10 image to formatted micro sd (twice) but upon first booting, could not get any image on monitor. Went back to fresh image of 12.04 and tried upgrading to 12.10 again and that failed with same error as has already been report. Not clear on how to recover or whether I need to return to 12.04 until a fix is found.

Tom (tdavis-73) wrote :
david cawsey (davidcawsey) wrote :

In case it's relevant, my installation is on a usb stick, not on sd card (ecept for the boot)

Launchpad Janitor (janitor) wrote :

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

Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
KevinKK5 (kk93) wrote :

I had the same problem yesterday when i tried to upgrade my Pi2 from 15.04 to 15.10.
My installation is quite standard on a sd-card. i have an usb-stick only for swap and /tmp.

Yannick NGHIEM-XUAN (tnxgalaxy) wrote :

I have hit the same issue too, trying to upgrade a raspberry pi 2 from 15.04 to 15.10 (standard install).

Changed in initramfs-tools (Ubuntu):
importance: Undecided → High
hackeron (hackeron) wrote :

Any temporary solution in the mean time?

João Loureiro (joaofl) wrote :

Same happened to me.

RaphaëlPLE (raphael-ple) wrote :

I have the same issue.

I'm on Ubuntu Gnome on an Asus Transformer TP500L. This package was included automatically when adding fs support to edit rom images. However, installer itself did not flag an error, the system did after installer finished. (Synaptic)

gearhead_42 (dwarner-b) wrote :

Issue has occurred twice now during software update. Running Mate on a Raspberry Pi2.

redpanda.tac (redpanda-tac) wrote :

Experiencing the same issue using the software updater to upgrade to 15.10 on my Raspberry Pi 2. The issue is reproducible after restoring a backed up image of Mate 15.04.

hackeron (hackeron) wrote :

Any workaround?

Not really, I ended up reinstalling the OS.

Regards

------ Original Message ------
From: "hackeron" <email address hidden>
To: "<email address hidden>" <email address hidden>
Sent: 1/19/2016 7:44:42 AM
Subject: [Bug 1509769] Re: package initramfs-tools 0.120ubuntu6 failed
to install/upgrade: subprocess installed post-installation script
returned error exit status 1

>Any workaround?
>
>--
>You received this bug notification because you are subscribed to the
>bug
>report.
>https://bugs.launchpad.net/bugs/1509769
>
>Title:
> package initramfs-tools 0.120ubuntu6 failed to install/upgrade:
> subprocess installed post-installation script returned error exit
> status 1
>
>Status in ubuntu-mate:
> New
>Status in initramfs-tools package in Ubuntu:
> Confirmed
>
>Bug description:
> Error occured during UBUNTU Mate upgrade to 15.10 on Raspberry PI2
>and
> once trying perform manual update getting:
>
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Calculating upgrade... 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.
> Do you want to continue? [Y/n] y
> Setting up initramfs-tools (0.120ubuntu6) ...
> update-initramfs: deferring update (trigger activated)
> Processing triggers for initramfs-tools (0.120ubuntu6) ...
> update-initramfs: Generating /boot/initrd.img-3.18.0-25-rpi2
> Unsupported platform.
> run-parts: /etc/initramfs/post-update.d//flash-kernel exited with
>return code 1
> dpkg: error processing package initramfs-tools (--configure):
> subprocess installed post-installation script returned error exit
>status 1
> Errors were encountered while processing:
> initramfs-tools
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> ProblemType: Package
> DistroRelease: Ubuntu 15.10
> Package: initramfs-tools 0.120ubuntu6
> ProcVersionSignature: Ubuntu 3.18.0-25.26-rpi2 3.18.17
> Uname: Linux 3.18.0-25-rpi2 armv7l
> ApportVersion: 2.19.1-0ubuntu3
> Architecture: armhf
> Date: Sun Oct 25 08:19:08 2015
> DuplicateSignature: package:initramfs-tools:0.120ubuntu6:subprocess
>installed post-installation script returned error exit status 1
> ErrorMessage: subprocess installed post-installation script returned
>error exit status 1
> PackageArchitecture: all
> RelatedPackageVersions:
> dpkg 1.18.2ubuntu5
> apt 1.0.10.2ubuntu1
> SourcePackage: initramfs-tools
> Title: package initramfs-tools 0.120ubuntu6 failed to
>install/upgrade: subprocess installed post-installation script returned
>error exit status 1
> UpgradeStatus: Upgraded to wily on 2015-10-25 (0 days ago)
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/ubuntu-mate/+bug/1509769/+subscriptions

The Pi 2 build of UBuntu MATE is not supported by Canonical. It is a community supported build. It currently uses the Linux kernel provided by the Raspberry Pi foundation, which is provided as a binary only.

Please raise this discussion over at the Ubuntu MATE community.

  * https://ubuntu-mate.community

Changed in initramfs-tools (Ubuntu):
status: Confirmed → Invalid
Changed in ubuntu-mate:
status: New → Invalid
Adam Toth (adamt) wrote :

Seems to be caused by the custom boot loader I'm using, it unpacked the files into a subdirectory in the pen drive.
During configuration of the initramfs-tools I get the error "cp: cannot create regular file ‘/cdrom/casper/initrd.gz.new’: No such file or directory"

Karl Foley (u-karl) wrote :

Found a work around here:
https://www.raspberrypi.org/forums/viewtopic.php?f=56&t=124682

Added 'exit 0' as second line in /etc/initramfs/post-update.d/flash-kernel and the package finished installing OK.

Chris Nadovich (m-ubultu-o) wrote :

I have this problem with a pretty vanilla install of 15.10 on an Intel NUC. NUC5i7RYB, BIOS RYBDWi35.86A.0352.2015.113
0.1011 11/30/2015

Karl Foley (u-karl) wrote :

Forgot to mention that I also updated the vmlinuz and initrd.img links by hand in /boot to point to the 3.18.0-25 versions.

Armando (armandorojasj) wrote :

it happened to me on ubuntu 16.04 and on ubuntu 15.10.

Lepe (alepe-com) wrote :

It happened to me when updating 2 x Raspberry Pi 2B from 14.04 to 15.10.

The solution is to add:

Machine: Raspberry pi 2 Model B
Machine: BCM2709
Kernel-Flavors: rpi2
Boot-Kernel-Path: /boot/firmware/kernel7.img

(source: https://gist.github.com/shawnbon206/b38138874f1d32feb653)

Into: /usr/share/flash-kernel/db/all.db b/rpi2/usr/share/flash-kernel/db/all.db
(requires root permissions)

Then issue:
# flash-kernel
Will print:
> flash-kernel: installing version 3.18.0-25-rpi2

After rebooting, its working fine:
$ uname -a
> Linux ubuntu 3.18.0-25-rpi2 #26-Ubuntu SMP PREEMPT Sun Jul 5 06:46:34 UTC 2015 armv7l armv7l armv7l GNU/Linux

$ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=15.10
> DISTRIB_CODENAME=wily
> DISTRIB_DESCRIPTION="Ubuntu 15.10"

Lepe (alepe-com) wrote :

There was a mistake in my last post, the path should be:

/usr/share/flash-kernel/db/all.db

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers