package linux-image-4.2.0-30-generic 4.2.0-30.35 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1

Bug #1549899 reported by Matt Cole
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

When upgrading from 14.04 to 15.10, I've consistently received this error across different machines.

Was able to work around the issue by modifying /usr/share/initramfs-tools/hooks/udev, from:

# now copy all custom udev rules which don't have an equivalent in /lib (e. g.
# 70-persistent-net.rules or similar); They might contain network names or
# other bits which are relevant for the initramfs.
for rules in /etc/udev/rules.d/*.rules; do
  if [ -e "$rules" ] && [ ! -e "/lib/${rules#/etc/}" ]; then
    cp -p $rules $DESTDIR/lib/udev/rules.d/
  fi
done

To:

# now copy all custom udev rules which don't have an equivalent in /lib (e. g.
# 70-persistent-net.rules or similar); They might contain network names or
# other bits which are relevant for the initramfs.
for rules in /etc/udev/rules.d/*.rules; do
  if [ -e "$rules" ] && [ ! -e "/lib/${rules#/etc/}" ]; then
    cp -a $rules $DESTDIR/lib/udev/rules.d/
  fi
done

(Changed "cp -p" to "cp -a") -- and then ran sudo apt-get install -f. System seems to be upgraded/working afterwards.

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: linux-image-4.2.0-30-generic 4.2.0-30.35
ProcVersionSignature: Ubuntu 3.13.0-52.86-generic 3.13.11-ckt18
Uname: Linux 3.13.0-52-generic x86_64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Feb 25 16:51 seq
 crw-rw---- 1 root audio 116, 33 Feb 25 16:51 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Date: Thu Feb 25 16:54:00 2016
DuplicateSignature: package:linux-image-4.2.0-30-generic:4.2.0-30.35:run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
ErrorMessage: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb:
 Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: OpenStack Foundation OpenStack Nova
PciMultimedia:

ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-52-generic root=UUID=e9ce1610-d74c-465a-8077-22cee3fa2e3d ro console=tty1 console=ttyS0
RelatedPackageVersions: grub-pc 2.02~beta2-29ubuntu0.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: initramfs-tools
Title: package linux-image-4.2.0-30-generic 4.2.0-30.35 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
UpgradeStatus: Upgraded to wily on 2016-02-25 (0 days ago)
dmi.bios.date: 01/01/2011
dmi.bios.vendor: Bochs
dmi.bios.version: Bochs
dmi.chassis.type: 1
dmi.chassis.vendor: Bochs
dmi.modalias: dmi:bvnBochs:bvrBochs:bd01/01/2011:svnOpenStackFoundation:pnOpenStackNova:pvr2013.2.4:cvnBochs:ct1:cvr:
dmi.product.name: OpenStack Nova
dmi.product.version: 2013.2.4
dmi.sys.vendor: OpenStack Foundation

Revision history for this message
Matt Cole (macole) wrote :
tags: removed: need-duplicate-check
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
Changed in initramfs-tools (Ubuntu):
importance: Undecided → High
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The relevant dpkg terminal log says:

cp: omitting directory ‘/etc/udev/rules.d/70-persistent-net.rules’
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.

Re-assigning to systemd source package for the udev package that ships /usr/share/initramfs-tools/hooks/udev.

affects: initramfs-tools (Ubuntu) → systemd (Ubuntu)
Nick Rosbrook (enr0n)
Changed in systemd (Ubuntu):
status: Confirmed → Won't Fix
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.