Skip to content

ubuntu1604: initramfs udev hook fails and blocks package installation #597

Closed
@artem-sidorenko

Description

@artem-sidorenko
$ kitchen create packages-bento-ubuntu-1604
-----> Starting Kitchen (v1.7.3)
-----> Creating <packages-bento-ubuntu-1604>...
       Bringing machine 'default' up with 'virtualbox' provider...
       ==> default: Importing base box 'bento/ubuntu-16.04'...
==> default: Matching MAC address for NAT networking...
       ==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
...
       Vagrant instance <packages-bento-ubuntu-1604> created.
       Finished creating <packages-bento-ubuntu-1604> (0m58.62s).
-----> Kitchen is finished. (0m59.36s)
$ kitchen login packages-bento-ubuntu-1604
...
vagrant@packages-bento-ubuntu-1604:~$ sudo -i bash
root@packages-bento-ubuntu-1604:~# apt-get install systemd-container
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  btrfs-tools liblzo2-2
The following NEW packages will be installed:
  btrfs-tools liblzo2-2 systemd-container
0 upgraded, 3 newly installed, 0 to remove and 27 not upgraded.
Need to get 0 B/1,220 kB of archives.
After this operation, 6,505 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package liblzo2-2:amd64.
(Reading database ... 34840 files and directories currently installed.)
Preparing to unpack .../liblzo2-2_2.08-1.2_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.08-1.2) ...
Selecting previously unselected package btrfs-tools.
Preparing to unpack .../btrfs-tools_4.4-1_amd64.deb ...
Unpacking btrfs-tools (4.4-1) ...
Selecting previously unselected package systemd-container.
Preparing to unpack .../systemd-container_229-4ubuntu5_amd64.deb ...
Unpacking systemd-container (229-4ubuntu5) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for dbus (1.10.6-1ubuntu3) ...
Setting up liblzo2-2:amd64 (2.08-1.2) ...
Setting up btrfs-tools (4.4-1) ...
update-initramfs: deferring update (trigger activated)
Setting up systemd-container (229-4ubuntu5) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for initramfs-tools (0.122ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-21-generic
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes and plymouth-label package to fix this.
cp: omitting directory '/etc/udev/rules.d/70-persistent-net.rules'
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-21-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for dbus (1.10.6-1ubuntu3) ...
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

This can be reproduced by calling update-initramfs -v -k all -u too

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions