precice / vm

Vagrant box with preCICE and examples preinstalled
MIT License
5 stars 4 forks source link

Building results into "Failed to restart snapd.mounts-pre.target" #83

Closed MakisH closed 5 months ago

MakisH commented 5 months ago

Building on my laptop results very early into:

    default: Setting up snapd (2.61.3+20.04) ...
    default: Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
    default: snapd.failure.service is a disabled or a static unit not running, not starting it.
    default: snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
    default: Failed to restart snapd.mounts-pre.target: Operation refused, unit snapd.mounts-pre.target may be requested by dependency only (it is configured to refuse manual start/stop).
    default: See system logs and 'systemctl status snapd.mounts-pre.target' for details.
    default: Setting up systemd-sysv (245.4-4ubuntu3.23) ...
    default: Setting up libnss-systemd:amd64 (245.4-4ubuntu3.23) ...
    default: Setting up libpam-systemd:amd64 (245.4-4ubuntu3.23) ...
    default: Processing triggers for install-info (6.7.0.dfsg.2-5) ...
    default: Processing triggers for mime-support (3.64ubuntu1) ...
    default: Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
    default: update-initramfs: Generating /boot/initrd.img-5.4.0-169-generic
    default: Error 24 : Write error : cannot write compressed block
    default: E: mkinitramfs failure cpio 141 lz4 -9 -l 24
    default: update-initramfs: failed for /boot/initrd.img-5.4.0-169-generic with 1.
    default: dpkg: error processing package initramfs-tools (--configure):
    default:  installed initramfs-tools package post-installation script subprocess returned error exit status 1
    default: Processing triggers for libc-bin (2.31-0ubuntu9.14) ...
    default: Processing triggers for man-db (2.9.1-1) ...
    default: Processing triggers for plymouth-theme-ubuntu-text (0.9.4git20200323-0ubuntu6.2) ...
    default: update-initramfs: deferring update (trigger activated)
    default: Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
    default: Errors were encountered while processing:
    default:  initramfs-tools
    default: E: Sub-process /usr/bin/dpkg returned an error code (1)
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

On GitHub Actions, it seems to fail also very early (earlier) with a different issue.

MakisH commented 5 months ago

Seems to be related to the generic/ubuntu2004 base image we use since #25. Switching back to bento/ubuntu-20.04 works: https://github.com/precice/vm/pull/84