You are not logged in.

#1 2016-04-30 21:34:35

n0rv
Member
Registered: 2012-02-27
Posts: 49

pacstrap: multiple 'call to execv failed' errors

Hi,
I'm trying to setup container as described here: https://wiki.archlinux.org/index.php/Systemd-nspawn and I'm stuck at problem I don't understand. It looks like multiple packages from base group are broken(?).

When I try to install base system into /var/lib/machines/TestContainer using:

sudo pacstrap -c -d TestContainer base

I get:

==> Creating install root at TestContainer
==> Installing packages to TestContainer
:: Synchronizing package databases...
downloading core.db...
downloading extra.db...
downloading haskell-core.db...
downloading haskell-core.db.sig...
downloading community.db...
downloading multilib.db...
:: There are 50 members in group base:
:: Repository core
 
...

checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing linux-api-headers...
installing tzdata...
installing iana-etc...
installing filesystem...
installing glibc...
installing gcc-libs...
installing ncurses...
installing readline...
installing bash...
Optional dependencies for bash
    bash-completion: for tab completion
installing bzip2...
installing attr...
installing acl...
installing gmp...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing libcap...
installing gdbm...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing db...
installing perl...
installing openssl...
Optional dependencies for openssl
    ca-certificates [pending]
installing coreutils...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing libgpg-error...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing libgcrypt...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing lz4...
installing xz...
installing libsystemd...
installing libdbus...
installing expat...
installing dbus...
Optional dependencies for dbus
    libx11: dbus-launch support
installing libmnl...
installing libnftnl...
installing iptables...
installing zlib...
installing cracklib...
installing libutil-linux...
installing e2fsprogs...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing libsasl...
installing libldap...
installing keyutils...
installing krb5...
installing libtirpc...
installing pambase...
installing pam...
installing kbd...
installing kmod...
installing hwids...
installing pcre...
installing less...
installing gzip...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing texinfo...
installing libidn...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing libelf...
installing libseccomp...
installing shadow...
installing util-linux...
Optional dependencies for util-linux
    python: python bindings to libmount
installing systemd...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for systemd
    cryptsetup: required for encrypted block devices [pending]
    libmicrohttpd: remote journald capabilities
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries [pending]
    polkit: allow administration as unprivileged user
installing device-mapper...
installing popt...
installing cryptsetup...
installing dhcpcd...
installing diffutils...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing file...
installing findutils...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing mpfr...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing gawk...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing libffi...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing glib2...
Optional dependencies for glib2
    python: for gdbus-codegen and gtester-report
    libelf: gresource inspection tool [installed]
installing libunistring...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing gettext...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for gettext
    git: for autopoint infrastructure updates
installing grep...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing inetutils...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing iproute2...
Optional dependencies for iproute2
    linux-atm: ATM support
installing sysfsutils...
installing iputils...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for iputils
    xinetd: for tftpd
installing jfsutils...
installing licenses...
installing linux-firmware...
installing mkinitcpio-busybox...
installing lzo...
installing libarchive...
installing mkinitcpio...
Optional dependencies for mkinitcpio
    xz: Use lzma or xz compression for the initramfs image [installed]
    bzip2: Use bzip2 compression for the initramfs image [installed]
    lzop: Use lzo compression for the initramfs image
    lz4: Use lz4 compression for the initramfs image [installed]
    mkinitcpio-nfs-utils: Support for root filesystem on NFS
installing linux...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for linux
    crda: to set the correct wireless channels of your country
installing logrotate...
installing libaio...
installing thin-provisioning-tools...
installing lvm2...
installing groff...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for groff
    netpbm: for use together with man -H command interaction in browsers
    psutils: for use together with man -H command interaction in browsers
    libxaw: for gxditview
installing libpipeline...
installing man-db...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for man-db
    gzip [installed]
installing man-pages...
installing mdadm...
installing nano...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing openresolv...
installing netctl...
Optional dependencies for netctl
    dialog: for the menu based wifi assistant
    dhclient: for DHCP support (or dhcpcd)
    dhcpcd: for DHCP support (or dhclient) [installed]
    wpa_supplicant: for wireless networking support
    ifplugd: for automatic wired connections through netctl-ifplugd
    wpa_actiond: for automatic wireless connections through netctl-auto
    ppp: for PPP connections
    openvswitch: for Open vSwitch connections
installing libtasn1...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing p11-kit...
installing ca-certificates-utils...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing ca-certificates-mozilla...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing ca-certificates-cacert...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing ca-certificates...
installing libssh2...
installing curl...
installing npth...
installing libksba...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing libassuan...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing pinentry...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for pinentry
    gtk2: gtk2 backend
    qt5-base: qt backend
    gcr: gnome3 backend
installing nettle...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing gnutls...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for gnutls
    guile: for use with Guile bindings
installing sqlite...
installing gnupg...
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for gnupg
    libldap: gpg2keys_ldap [installed]
    libusb-compat: scdaemon
installing gpgme...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing pacman-mirrorlist...
installing archlinux-keyring...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing pacman...
installing pciutils...
installing pcmciautils...
installing procps-ng...
installing psmisc...
installing reiserfsprogs...
installing s-nail...
Optional dependencies for s-nail
    smtp-forwarder: for sending mail
installing sed...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing systemd-sysvcompat...
installing tar...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing libusb...
installing usbutils...
Optional dependencies for usbutils
    python2: for lsusb.py usage
    coreutils: for lsusb.py usage [installed]
installing vi...
Optional dependencies for vi
    s-nail: used by the preserve command for notification [installed]
installing which...
call to execv failed (Permission denied)
error: command failed to execute correctly
installing xfsprogs...
:: Running post-transaction hooks...
(1/1) Updating the info directory file...
call to execv failed (Permission denied)
error: command failed to execute correctly

Pacman log is not very helpful, but gives hint about hooks.

[2016-04-30 22:59] [PACMAN] Running 'pacman -r TestContainer -Sy --noconfirm base'
[2016-04-30 22:59] [PACMAN] synchronizing package lists
[2016-04-30 22:59] [ALPM] transaction started
[2016-04-30 22:59] [ALPM] installed linux-api-headers (4.4.1-1)
[2016-04-30 22:59] [ALPM] installed tzdata (2016d-1)
[2016-04-30 22:59] [ALPM] installed iana-etc (20160314-1)
[2016-04-30 22:59] [ALPM] installed filesystem (2015.09-1)
[2016-04-30 22:59] [ALPM] installed glibc (2.23-1)
[2016-04-30 22:59] [ALPM] installed gcc-libs (5.3.0-5)
[2016-04-30 22:59] [ALPM] installed ncurses (6.0-4)
[2016-04-30 22:59] [ALPM] installed readline (6.3.008-3)
[2016-04-30 22:59] [ALPM] installed bash (4.3.042-4)
[2016-04-30 22:59] [ALPM] installed bzip2 (1.0.6-5)
[2016-04-30 22:59] [ALPM] installed attr (2.4.47-1)
[2016-04-30 22:59] [ALPM] installed acl (2.2.52-2)
[2016-04-30 22:59] [ALPM] installed gmp (6.1.0-3)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libcap (2.25-1)
[2016-04-30 22:59] [ALPM] installed gdbm (1.11-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed db (5.3.28-3)
[2016-04-30 22:59] [ALPM] installed perl (5.22.1-2)
[2016-04-30 22:59] [ALPM] installed openssl (1.0.2.g-3)
[2016-04-30 22:59] [ALPM] installed coreutils (8.25-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libgpg-error (1.21-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libgcrypt (1.7.0-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed lz4 (131-1)
[2016-04-30 22:59] [ALPM] installed xz (5.2.2-1)
[2016-04-30 22:59] [ALPM] installed libsystemd (229-3)
[2016-04-30 22:59] [ALPM] installed libdbus (1.10.8-1)
[2016-04-30 22:59] [ALPM] installed expat (2.1.1-1)
[2016-04-30 22:59] [ALPM] installed dbus (1.10.8-1)
[2016-04-30 22:59] [ALPM] installed libmnl (1.0.3-2)
[2016-04-30 22:59] [ALPM] installed libnftnl (1.0.5-1)
[2016-04-30 22:59] [ALPM] installed iptables (1.6.0-1)
[2016-04-30 22:59] [ALPM] installed zlib (1.2.8-4)
[2016-04-30 22:59] [ALPM] installed cracklib (2.9.6-1)
[2016-04-30 22:59] [ALPM] installed libutil-linux (2.28-1)
[2016-04-30 22:59] [ALPM] installed e2fsprogs (1.42.13-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libsasl (2.1.26-7)
[2016-04-30 22:59] [ALPM] installed libldap (2.4.44-1)
[2016-04-30 22:59] [ALPM] installed keyutils (1.5.9-1)
[2016-04-30 22:59] [ALPM] installed krb5 (1.13.2-3)
[2016-04-30 22:59] [ALPM] installed libtirpc (1.0.1-2)
[2016-04-30 22:59] [ALPM] installed pambase (20130928-1)
[2016-04-30 22:59] [ALPM] installed pam (1.2.1-3)
[2016-04-30 22:59] [ALPM] installed kbd (2.0.3-1)
[2016-04-30 22:59] [ALPM] installed kmod (22-1)
[2016-04-30 22:59] [ALPM] installed hwids (20160306-1)
[2016-04-30 22:59] [ALPM] installed pcre (8.38-3)
[2016-04-30 22:59] [ALPM] installed less (481-2)
[2016-04-30 22:59] [ALPM] installed gzip (1.7-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed texinfo (6.1-3)
[2016-04-30 22:59] [ALPM] installed libidn (1.32-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libelf (0.166-1)
[2016-04-30 22:59] [ALPM] installed libseccomp (2.2.3-1)
[2016-04-30 22:59] [ALPM] installed shadow (4.2.1-3)
[2016-04-30 22:59] [ALPM] installed util-linux (2.28-1)
[2016-04-30 22:59] [ALPM] installed systemd (229-3)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed device-mapper (2.02.149-1)
[2016-04-30 22:59] [ALPM] installed popt (1.16-7)
[2016-04-30 22:59] [ALPM] installed cryptsetup (1.7.1-1)
[2016-04-30 22:59] [ALPM] installed dhcpcd (6.10.2-1)
[2016-04-30 22:59] [ALPM] installed diffutils (3.3-2)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed file (5.26-1)
[2016-04-30 22:59] [ALPM] installed findutils (4.6.0-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed mpfr (3.1.4-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed gawk (4.1.3-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libffi (3.2.1-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed glib2 (2.48.0-2)
[2016-04-30 22:59] [ALPM] installed libunistring (0.9.6-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed gettext (0.19.7-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed grep (2.25-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed inetutils (1.9.4-2)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed iproute2 (4.5.0-2)
[2016-04-30 22:59] [ALPM] installed sysfsutils (2.1.0-9)
[2016-04-30 22:59] [ALPM] installed iputils (20160308.0db72a4-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed jfsutils (1.1.15-4)
[2016-04-30 22:59] [ALPM] installed licenses (20140629-1)
[2016-04-30 22:59] [ALPM] installed linux-firmware (20160315.deb1d83-1)
[2016-04-30 22:59] [ALPM] installed mkinitcpio-busybox (1.24.1-1)
[2016-04-30 22:59] [ALPM] installed lzo (2.09-1)
[2016-04-30 22:59] [ALPM] installed libarchive (3.1.2-8)
[2016-04-30 22:59] [ALPM] installed mkinitcpio (19-1)
[2016-04-30 22:59] [ALPM] installed linux (4.5.1-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed logrotate (3.9.2-1)
[2016-04-30 22:59] [ALPM] installed libaio (0.3.110-1)
[2016-04-30 22:59] [ALPM] installed thin-provisioning-tools (0.6.1-2)
[2016-04-30 22:59] [ALPM] installed lvm2 (2.02.149-1)
[2016-04-30 22:59] [ALPM] installed groff (1.22.3-6)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libpipeline (1.4.1-1)
[2016-04-30 22:59] [ALPM] installed man-db (2.7.5-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed man-pages (4.05-1)
[2016-04-30 22:59] [ALPM] installed mdadm (3.4-1)
[2016-04-30 22:59] [ALPM] installed nano (2.5.3-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed openresolv (3.7.2-1)
[2016-04-30 22:59] [ALPM] installed netctl (1.11-1)
[2016-04-30 22:59] [ALPM] installed libtasn1 (4.8-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed p11-kit (0.23.2-1)
[2016-04-30 22:59] [ALPM] installed ca-certificates-utils (20150402-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed ca-certificates-mozilla (3.23-3)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed ca-certificates-cacert (20140824-2)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed ca-certificates (20150402-1)
[2016-04-30 22:59] [ALPM] installed libssh2 (1.7.0-2)
[2016-04-30 22:59] [ALPM] installed curl (7.48.0-1)
[2016-04-30 22:59] [ALPM] installed npth (1.2-1)
[2016-04-30 22:59] [ALPM] installed libksba (1.3.3-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libassuan (2.4.2-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed pinentry (0.9.7-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed nettle (3.2-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed gnutls (3.4.11-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed sqlite (3.12.2-1)
[2016-04-30 22:59] [ALPM] installed gnupg (2.1.11-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed gpgme (1.6.0-2)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed pacman-mirrorlist (20160424-1)
[2016-04-30 22:59] [ALPM] installed archlinux-keyring (20160402-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed pacman (5.0.1-2)
[2016-04-30 22:59] [ALPM] installed pciutils (3.4.1-1)
[2016-04-30 22:59] [ALPM] installed pcmciautils (018-7)
[2016-04-30 22:59] [ALPM] installed procps-ng (3.3.11-2)
[2016-04-30 22:59] [ALPM] installed psmisc (22.21-3)
[2016-04-30 22:59] [ALPM] installed reiserfsprogs (3.6.24-1)
[2016-04-30 22:59] [ALPM] installed s-nail (14.8.8-1)
[2016-04-30 22:59] [ALPM] installed sed (4.2.2-3)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed systemd-sysvcompat (229-3)
[2016-04-30 22:59] [ALPM] installed tar (1.28-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed libusb (1.0.20-1)
[2016-04-30 22:59] [ALPM] installed usbutils (008-1)
[2016-04-30 22:59] [ALPM] installed vi (1:070224-2)
[2016-04-30 22:59] [ALPM] installed which (2.21-1)
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)
[2016-04-30 22:59] [ALPM] installed xfsprogs (4.3.0-1)
[2016-04-30 22:59] [ALPM] transaction completed
[2016-04-30 22:59] [ALPM] running 'texinfo-install.hook'...
[2016-04-30 22:59] [ALPM-SCRIPTLET] call to execv failed (Permission denied)

I added permissions to execute hooks (in container, in /usr/share/libalpm/hooks), but nothing has changed.
I noticed that this error occurs when package contains .INSTALL script.
/var/lib/machines is a separate filesystem (btrfs subvolume) mounted with rw and exec flags.

Last edited by n0rv (2016-04-30 21:34:52)

Offline

Board footer

Powered by FluxBB