Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apx install crashes when I try to install packages from the AUR #126

Open
berkakkaya opened this issue Feb 13, 2023 · 7 comments
Open

apx install crashes when I try to install packages from the AUR #126

berkakkaya opened this issue Feb 13, 2023 · 7 comments

Comments

@berkakkaya
Copy link

I've just did a fresh install of VanilliaOS. I've tried to install spotify from the AUR but it gave me an error. Also tried the apx enter --aur command but it also gave me the same error. I've installed the system with English language and Europe/Istanbul timezone selected. Here's the output of the apx install:

berk@executor:~$ apx install --aur spotify
Container apx_managed_aur is not running.
Starting container apx_managed_aur
run this command to follow along:

 podman logs -f apx_managed_aur

Error: OCI runtime error: unable to start container "70c6df570c4d9e460f4acbf623bb80066b0914b2ecfcee53cb81f08cececa6ba": mount `/etc/localtime` to `/etc/localtime`: Not a directory
Error: exit status 125
Usage:
  apx install [flags]

Examples:
apx install htop git

Flags:
  -y, --assume-yes     Proceed without manual confirmation
  -f, --fix-broken     Fix broken dependencies before installing
      --no-export      Do not export a desktop entry after the installation.
      --sideload       Install a package from a local file.
      --allow-unfree   Allow packages with unfree licenses
      --apt            Install packages from the Ubuntu repository.
      --aur            Install packages from the AUR (Arch User Repository).
      --dnf            Install packages from the Fedora's DNF (Dandified YUM) repository.
      --apk            Install packages from the Alpine repository.
      --zypper         Install packages from the OpenSUSE repository.
      --xbps           Install packages from the Void (Linux) repository.
      --nix            Install packages from the Nixpkgs (Nix packages) repository.
  -n, --name string    Apply to custom container with this name.
  -h, --help           help for install

Global Flags:
  -v, --verbose   show more detailed output

  ERROR   exit status 125

Also, podman logs -f apx_managed_aur gives me this output:

berk@executor:~$ podman logs -f apx_managed_aur
distrobox: Installing basic packages...
+ '[' -n '' ']'
+ printf 'distrobox: Installing basic packages...\n'
++ basename /bin/bash
+ shell_pkg=bash
+ '[' bash = ash ']'
/usr/sbin/find
+ '[' 0 -ne 0 ']'
+ command -v find
+ command -v mount
+ command -v passwd
/usr/sbin/mount
/usr/sbin/passwd
+ command -v sudo
+ command -v apk
+ command -v apt-get
+ command -v dnf
+ command -v emerge
+ command -v microdnf
+ command -v pacman
/usr/sbin/pacman
+ '[' 0 -ne 0 ']'
+ sed -i 's|NoExtract.*||g' /etc/pacman.conf
+ sed -i 's|NoProgressBar.*||g' /etc/pacman.conf
+ pacman --noconfirm -Syyu
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (18)              Old Version   New Version   Net Change  Download Size

core/bash                 5.1.016-1     5.1.016-3       0.12 MiB       1.68 MiB
core/cryptsetup           2.6.0-1       2.6.1-1         0.12 MiB       0.69 MiB
core/dbus                 1.14.4-1      1.14.6-1        0.00 MiB       0.30 MiB
core/e2fsprogs            1.46.5-4      1.47.0-1        0.07 MiB       1.20 MiB
core/filesystem           2023.01.30-1  2023.01.31-1    0.00 MiB       0.01 MiB
core/gcc-libs             12.2.1-1      12.2.1-2        0.00 MiB      33.88 MiB
core/glibc                2.36-7        2.37-2          0.13 MiB       9.88 MiB
core/gnutls               3.7.8-5       3.7.9-1         0.09 MiB       2.81 MiB
core/hwdata               0.366-1       0.367-1         0.02 MiB       1.53 MiB
core/iana-etc             20221215-1    20230105-1      0.00 MiB       0.39 MiB
core/iproute2             6.1.0-4       6.1.0-5         0.00 MiB       1.09 MiB
core/less                 1:608-1       1:608-2         0.00 MiB       0.12 MiB
core/libelf               0.188-2       0.188-3         0.00 MiB       0.54 MiB
core/libnl                3.7.0-2       3.7.0-3         0.00 MiB       0.40 MiB
extra/libsysprof-capture  3.46.0-3      3.46.0-4        0.00 MiB       0.04 MiB
core/linux-api-headers    5.18.15-1     6.1.9-1         0.15 MiB       1.20 MiB
core/mpfr                 4.2.0-2       4.2.0-3         0.00 MiB       0.42 MiB
core/openssl              3.0.7-4       3.0.8-1         0.03 MiB       5.10 MiB

Total Download Size:    61.27 MiB
Total Installed Size:  246.05 MiB
Net Upgrade Size:        0.74 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 gcc-libs-12.2.1-2-x86_64 downloading...
 glibc-2.37-2-x86_64 downloading...
 openssl-3.0.8-1-x86_64 downloading...
 gnutls-3.7.9-1-x86_64 downloading...
 bash-5.1.016-3-x86_64 downloading...
 hwdata-0.367-1-any downloading...
 e2fsprogs-1.47.0-1-x86_64 downloading...
 linux-api-headers-6.1.9-1-any downloading...
 iproute2-6.1.0-5-x86_64 downloading...
 cryptsetup-2.6.1-1-x86_64 downloading...
 libelf-0.188-3-x86_64 downloading...
 mpfr-4.2.0-3-x86_64 downloading...
 libnl-3.7.0-3-x86_64 downloading...
 iana-etc-20230105-1-any downloading...
 dbus-1.14.6-1-x86_64 downloading...
 less-1:608-2-x86_64 downloading...
 libsysprof-capture-3.46.0-4-x86_64 downloading...
 filesystem-2023.01.31-1-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
upgrading linux-api-headers...
upgrading iana-etc...
upgrading filesystem...
warning: directory permissions differ on /srv/ftp/
filesystem: 755  package: 555
upgrading glibc...
Generating locales...
Generation complete.
upgrading gcc-libs...
upgrading bash...
upgrading openssl...
upgrading e2fsprogs...
upgrading cryptsetup...
upgrading dbus...
upgrading gnutls...
upgrading hwdata...
upgrading libelf...
upgrading libnl...
upgrading iproute2...
upgrading less...
upgrading libsysprof-capture...
upgrading mpfr...
:: Running post-transaction hooks...
(1/6) Creating system user accounts...
(2/6) Reloading system manager configuration...
Failed to check for chroot() environment: Permission denied
  Skipped: Current root is not booted.
(3/6) Applying kernel sysctl settings...
Failed to check for chroot() environment: Permission denied
  Skipped: Current root is not booted.
(4/6) Creating temporary files...
/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:23: Failed to replace specifiers in '/run/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:25: Failed to replace specifiers in '/run/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:26: Failed to replace specifiers in '/run/log/journal/%m/*.journal*': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:29: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:30: Failed to replace specifiers in '/var/log/journal/%m/system.journal': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:32: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:33: Failed to replace specifiers in '/var/log/journal/%m/system.journal': No such file or directory
fchownat() of /tmp failed: Operation not permitted
fchownat() of /dev/snd/seq failed: Operation not permitted
fchownat() of /dev/snd/timer failed: Operation not permitted
fchownat() of /dev/loop-control failed: Operation not permitted
fchownat() of /dev/kvm failed: Operation not permitted
fchownat() of /dev/vhost-net failed: Operation not permitted
fchownat() of /dev/vhost-vsock failed: Operation not permitted
(5/6) Reloading device manager configuration...
error: command failed to execute correctly
Failed to check for chroot() environment: Permission denied
  Skipped: Device manager is not running.
(6/6) Arming ConditionNeedsUpdate...
+ pacman -Sy --noconfirm bash
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
resolving dependencies...
warning: bash-5.1.016-3 is up to date -- reinstalling
looking for conflicting packages...

Package (1)  Old Version  New Version  Net Change

core/bash    5.1.016-3    5.1.016-3      0.00 MiB

Total Installed Size:  8.32 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
reinstalling bash...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
+ pacman -Sy --noconfirm bash bc curl diffutils findutils gnupg less lsof ncurses pinentry procps-ng shadow sudo time util-linux wget vte-common
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
warning: bash-5.1.016-3 is up to date -- reinstalling
warning: curl-7.87.0-3 is up to date -- reinstalling
warning: findutils-4.9.0-2 is up to date -- reinstalling
warning: gnupg-2.2.40-1 is up to date -- reinstalling
warning: less-1:608-2 is up to date -- reinstalling
warning: ncurses-6.4-1 is up to date -- reinstalling
warning: pinentry-1.2.1-1 is up to date -- reinstalling
warning: procps-ng-3.3.17-1 is up to date -- reinstalling
warning: shadow-4.13-2 is up to date -- reinstalling
resolving dependencies...
warning: util-linux-2.38.1-1 is up to date -- reinstalling
looking for conflicting packages...

Package (17)      Old Version  New Version  Net Change  Download Size

core/bash         5.1.016-3    5.1.016-3      0.00 MiB               
extra/bc                       1.07.1-4       0.17 MiB       0.09 MiB
core/curl         7.87.0-3     7.87.0-3       0.00 MiB       1.15 MiB
core/diffutils                 3.8-1          1.47 MiB       0.35 MiB
core/findutils    4.9.0-2      4.9.0-2        0.00 MiB       0.41 MiB
core/gnupg        2.2.40-1     2.2.40-1       0.00 MiB       2.35 MiB
core/less         1:608-2      1:608-2        0.00 MiB               
extra/lsof                     4.98.0-1       0.21 MiB       0.12 MiB
core/ncurses      6.4-1        6.4-1          0.00 MiB       1.15 MiB
core/pinentry     1.2.1-1      1.2.1-1        0.00 MiB       0.13 MiB
core/procps-ng    3.3.17-1     3.3.17-1       0.00 MiB       0.50 MiB
core/shadow       4.13-2       4.13-2         0.00 MiB       1.17 MiB
core/sudo                      1.9.12.p2-2    7.10 MiB       1.72 MiB
community/time                 1.9-4          0.04 MiB       0.02 MiB
core/util-linux   2.38.1-1     2.38.1-1       0.00 MiB       2.43 MiB
extra/vte-common               0.70.3-1       0.18 MiB       0.06 MiB
extra/wget                     1.21.3-1       3.03 MiB       0.69 MiB

Total Download Size:   12.34 MiB
Total Installed Size:  54.34 MiB
Net Upgrade Size:      12.21 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 util-linux-2.38.1-1-x86_64 downloading...
 gnupg-2.2.40-1-x86_64 downloading...
 sudo-1.9.12.p2-2-x86_64 downloading...
 shadow-4.13-2-x86_64 downloading...
 ncurses-6.4-1-x86_64 downloading...
 curl-7.87.0-3-x86_64 downloading...
 wget-1.21.3-1-x86_64 downloading...
 procps-ng-3.3.17-1-x86_64 downloading...
 findutils-4.9.0-2-x86_64 downloading...
 diffutils-3.8-1-x86_64 downloading...
 pinentry-1.2.1-1-x86_64 downloading...
 lsof-4.98.0-1-x86_64 downloading...
 bc-1.07.1-4-x86_64 downloading...
 vte-common-0.70.3-1-x86_64 downloading...
 time-1.9-4-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
reinstalling ncurses...
reinstalling bash...
installing bc...
reinstalling findutils...
reinstalling curl...
installing diffutils...
reinstalling pinentry...
reinstalling gnupg...
reinstalling less...
installing lsof...
reinstalling procps-ng...
reinstalling shadow...
installing sudo...
installing time...
reinstalling util-linux...
installing wget...
Optional dependencies for wget
    ca-certificates: HTTPS downloads [installed]
installing vte-common...
:: Running post-transaction hooks...
(1/5) Creating system user accounts...
(2/5) Reloading system manager configuration...
Failed to check for chroot() environment: Permission denied
  Skipped: Current root is not booted.
(3/5) Creating temporary files...
/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:23: Failed to replace specifiers in '/run/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:25: Failed to replace specifiers in '/run/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:26: Failed to replace specifiers in '/run/log/journal/%m/*.journal*': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:29: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:30: Failed to replace specifiers in '/var/log/journal/%m/system.journal': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:32: Failed to replace specifiers in '/var/log/journal/%m': No such file or directory
/usr/lib/tmpfiles.d/systemd.conf:33: Failed to replace specifiers in '/var/log/journal/%m/system.journal': No such file or directory
fchownat() of /tmp failed: Operation not permitted
fchownat() of /dev/snd/seq failed: Operation not permitted
fchownat() of /dev/snd/timer failed: Operation not permitted
fchownat() of /dev/loop-control failed: Operation not permitted
fchownat() of /dev/kvm failed: Operation not permitted
fchownat() of /dev/vhost-net failed: Operation not permitted
fchownat() of /dev/vhost-vsock failed: Operation not permitted
error: command failed to execute correctly
(4/5) Reloading device manager configuration...
Failed to check for chroot() environment: Permission denied
  Skipped: Device manager is not running.
(5/5) Arming ConditionNeedsUpdate...
+ pacman -Sy --noconfirm mesa opengl-driver vulkan-intel vulkan-radeon
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
:: There are 3 providers available for opengl-driver:
:: Repository extra
   1) mesa  2) mesa-amber  3) nvidia-utils

Enter a number (default=1): 
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: libglvnd will be installed before its mesa dependency

Package (25)             New Version              Net Change  Download Size

extra/default-cursors    2-1                        0.00 MiB       0.00 MiB
extra/libdrm             2.4.114-1                  1.18 MiB       0.32 MiB
core/libedit             20210910_3.1-2             0.27 MiB       0.11 MiB
extra/libglvnd           1.6.0-1                    3.70 MiB       0.35 MiB
extra/libomxil-bellagio  0.9.3-4                    0.58 MiB       0.12 MiB
extra/libpciaccess       0.17-1                     0.06 MiB       0.02 MiB
extra/libunwind          1.6.2-2                    0.25 MiB       0.11 MiB
extra/libx11             1.8.4-1                   10.01 MiB       2.05 MiB
extra/libxau             1.0.11-1                   0.02 MiB       0.01 MiB
extra/libxcb             1.15-2                     3.78 MiB       0.98 MiB
extra/libxdamage         1.1.6-1                    0.02 MiB       0.01 MiB
extra/libxdmcp           1.1.4-1                    0.13 MiB       0.03 MiB
extra/libxext            1.3.5-1                    0.30 MiB       0.10 MiB
extra/libxfixes          6.0.0-2                    0.04 MiB       0.01 MiB
extra/libxshmfence       1.3.2-1                    0.02 MiB       0.01 MiB
extra/libxxf86vm         1.1.5-1                    0.03 MiB       0.02 MiB
extra/llvm-libs          15.0.7-1                 120.49 MiB      29.27 MiB
extra/lm_sensors         1:3.6.0.r41.g31d1f125-2    0.47 MiB       0.13 MiB
extra/vulkan-icd-loader  1.3.240-1                  0.47 MiB       0.12 MiB
extra/wayland            1.21.0-2                   0.77 MiB       0.13 MiB
extra/xcb-proto          1.15.2-2                   0.88 MiB       0.11 MiB
extra/xorgproto          2022.2-1                   1.43 MiB       0.24 MiB
extra/mesa               22.3.4-1                  75.40 MiB      10.50 MiB
extra/vulkan-intel       22.3.4-1                  17.30 MiB       2.81 MiB
extra/vulkan-radeon      22.3.4-1                   8.36 MiB       2.07 MiB

Total Download Size:    49.62 MiB
Total Installed Size:  245.96 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 llvm-libs-15.0.7-1-x86_64 downloading...
 mesa-22.3.4-1-x86_64 downloading...
 vulkan-intel-22.3.4-1-x86_64 downloading...
 vulkan-radeon-22.3.4-1-x86_64 downloading...
 libx11-1.8.4-1-x86_64 downloading...
 libxcb-1.15-2-x86_64 downloading...
 libglvnd-1.6.0-1-x86_64 downloading...
 libdrm-2.4.114-1-x86_64 downloading...
 xorgproto-2022.2-1-any downloading...
 wayland-1.21.0-2-x86_64 downloading...
 lm_sensors-1:3.6.0.r41.g31d1f125-2-x86_64 downloading...
 vulkan-icd-loader-1.3.240-1-x86_64 downloading...
 libomxil-bellagio-0.9.3-4-x86_64 downloading...
 xcb-proto-1.15.2-2-any downloading...
 libunwind-1.6.2-2-x86_64 downloading...
 libedit-20210910_3.1-2-x86_64 downloading...
 libxext-1.3.5-1-x86_64 downloading...
 libxdmcp-1.1.4-1-x86_64 downloading...
 libpciaccess-0.17-1-x86_64 downloading...
 libxxf86vm-1.1.5-1-x86_64 downloading...
 libxfixes-6.0.0-2-x86_64 downloading...
 libxau-1.0.11-1-x86_64 downloading...
 libxdamage-1.1.6-1-x86_64 downloading...
 libxshmfence-1.3.2-1-x86_64 downloading...
 default-cursors-2-1-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libpciaccess...
installing libdrm...
installing default-cursors...
Optional dependencies for default-cursors
    adwaita-cursors: default cursor theme
installing wayland...
installing xcb-proto...
installing libxdmcp...
installing libxau...
installing libxcb...
installing xorgproto...
installing libx11...
installing libxext...
installing libxxf86vm...
installing libxfixes...
installing libxdamage...
installing libxshmfence...
installing libomxil-bellagio...
installing libunwind...
installing libedit...
installing llvm-libs...
installing lm_sensors...
Optional dependencies for lm_sensors
    rrdtool: for logging with sensord
    perl: for sensor detection and configuration convert
installing libglvnd...
installing vulkan-icd-loader...
Optional dependencies for vulkan-icd-loader
    vulkan-driver: packaged vulkan driver [pending]
installing mesa...
Optional dependencies for mesa
    opengl-man-pages: for the OpenGL API man pages
    mesa-vdpau: for accelerated video playback
    libva-mesa-driver: for accelerated video playback
installing vulkan-intel...
Optional dependencies for vulkan-intel
    vulkan-mesa-layers: additional vulkan layers
installing vulkan-radeon...
Optional dependencies for vulkan-radeon
    vulkan-mesa-layers: additional vulkan layers
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
Failed to check for chroot() environment: Permission denied
  Skipped: Current root is not booted.
(2/2) Arming ConditionNeedsUpdate...
+ '[' bash = ash ']'
++ command -v bash
+ SHELL=/usr/sbin/bash
+ printf 'distrobox: Setting up read-only mounts...\n'
distrobox: Setting up read-only mounts...
+ HOST_MOUNTS_RO='
	/var/lib/flatpak
	/var/lib/systemd/coredump
	/var/log/journal'
+ for host_mount_ro in ${HOST_MOUNTS_RO}
+ mount_bind /run/host/var/lib/flatpak /var/lib/flatpak ro
+ source_dir=/run/host/var/lib/flatpak
+ target_dir=/var/lib/flatpak
+ mount_flags=ro
+ '[' -d /run/host/var/lib/flatpak ']'
+ '[' -e /var/lib/flatpak ']'
+ '[' -d /run/host/var/lib/flatpak ']'
+ mkdir -p /var/lib/flatpak
+ '[' ro = '' ']'
+ mount --rbind -o ro /run/host/var/lib/flatpak /var/lib/flatpak
+ return 0
+ for host_mount_ro in ${HOST_MOUNTS_RO}
+ mount_bind /run/host/var/lib/systemd/coredump /var/lib/systemd/coredump ro
+ source_dir=/run/host/var/lib/systemd/coredump
+ target_dir=/var/lib/systemd/coredump
+ mount_flags=ro
+ '[' -d /run/host/var/lib/systemd/coredump ']'
+ '[' -e /var/lib/systemd/coredump ']'
+ findmnt /var/lib/systemd/coredump
+ '[' -d /run/host/var/lib/systemd/coredump ']'
+ mkdir -p /var/lib/systemd/coredump
+ '[' ro = '' ']'
+ mount --rbind -o ro /run/host/var/lib/systemd/coredump /var/lib/systemd/coredump
+ return 0
+ for host_mount_ro in ${HOST_MOUNTS_RO}
+ mount_bind /run/host/var/log/journal /var/log/journal ro
+ source_dir=/run/host/var/log/journal
+ target_dir=/var/log/journal
+ mount_flags=ro
+ '[' -d /run/host/var/log/journal ']'
+ '[' -e /var/log/journal ']'
+ findmnt /var/log/journal
+ umount /var/log/journal
+ '[' -d /run/host/var/log/journal ']'
+ mkdir -p /var/log/journal
+ '[' ro = '' ']'
+ mount --rbind -o ro /run/host/var/log/journal /var/log/journal
+ return 0
+ printf 'distrobox: Setting up read-write mounts...\n'
distrobox: Setting up read-write mounts...
+ HOST_MOUNTS='
	/etc/host.conf
	/etc/machine-id
	/media
	/mnt
	/run/libvirt
	/run/media
	/run/systemd/journal
	/run/systemd/seats
	/run/systemd/sessions
	/run/systemd/users
	/run/systemd/resolve/
	/run/netconfig/
	/run/udev
	/srv
	/var/lib/libvirt
	/var/mnt'
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/etc/host.conf /etc/host.conf rw
+ source_dir=/run/host/etc/host.conf
+ target_dir=/etc/host.conf
+ mount_flags=rw
+ '[' -d /run/host/etc/host.conf ']'
+ '[' -f /run/host/etc/host.conf ']'
+ '[' -e /etc/host.conf ']'
+ findmnt /etc/host.conf
+ '[' -d /run/host/etc/host.conf ']'
+ '[' -f /run/host/etc/host.conf ']'
+ touch /etc/host.conf
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/etc/host.conf /etc/host.conf
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/etc/machine-id /etc/machine-id rw
+ source_dir=/run/host/etc/machine-id
+ target_dir=/etc/machine-id
+ mount_flags=rw
+ '[' -d /run/host/etc/machine-id ']'
+ '[' -f /run/host/etc/machine-id ']'
+ '[' -e /etc/machine-id ']'
+ '[' -d /run/host/etc/machine-id ']'
+ '[' -f /run/host/etc/machine-id ']'
+ touch /etc/machine-id
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/etc/machine-id /etc/machine-id
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/media /media rw
+ source_dir=/run/host/media
+ target_dir=/media
+ mount_flags=rw
+ '[' -d /run/host/media ']'
+ '[' -e /media ']'
+ '[' -d /run/host/media ']'
+ mkdir -p /media
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/media /media
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/mnt /mnt rw
+ source_dir=/run/host/mnt
+ target_dir=/mnt
+ mount_flags=rw
+ '[' -d /run/host/mnt ']'
+ '[' -e /mnt ']'
+ findmnt /mnt
+ '[' -d /run/host/mnt ']'
+ mkdir -p /mnt
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/mnt /mnt
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/libvirt /run/libvirt rw
+ source_dir=/run/host/run/libvirt
+ target_dir=/run/libvirt
+ mount_flags=rw
+ '[' -d /run/host/run/libvirt ']'
+ '[' -f /run/host/run/libvirt ']'
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/media /run/media rw
+ source_dir=/run/host/run/media
+ target_dir=/run/media
+ mount_flags=rw
+ '[' -d /run/host/run/media ']'
+ '[' -f /run/host/run/media ']'
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/systemd/journal /run/systemd/journal rw
+ source_dir=/run/host/run/systemd/journal
+ target_dir=/run/systemd/journal
+ mount_flags=rw
+ '[' -d /run/host/run/systemd/journal ']'
+ '[' -e /run/systemd/journal ']'
+ '[' -d /run/host/run/systemd/journal ']'
+ mkdir -p /run/systemd/journal
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/run/systemd/journal /run/systemd/journal
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/systemd/seats /run/systemd/seats rw
+ source_dir=/run/host/run/systemd/seats
+ target_dir=/run/systemd/seats
+ mount_flags=rw
+ '[' -d /run/host/run/systemd/seats ']'
+ '[' -e /run/systemd/seats ']'
+ findmnt /run/systemd/seats
+ '[' -d /run/host/run/systemd/seats ']'
+ mkdir -p /run/systemd/seats
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/run/systemd/seats /run/systemd/seats
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/systemd/sessions /run/systemd/sessions rw
+ source_dir=/run/host/run/systemd/sessions
+ target_dir=/run/systemd/sessions
+ mount_flags=rw
+ '[' -d /run/host/run/systemd/sessions ']'
+ '[' -e /run/systemd/sessions ']'
+ findmnt /run/systemd/sessions
+ '[' -d /run/host/run/systemd/sessions ']'
+ mkdir -p /run/systemd/sessions
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/run/systemd/sessions /run/systemd/sessions
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/systemd/users /run/systemd/users rw
+ source_dir=/run/host/run/systemd/users
+ target_dir=/run/systemd/users
+ mount_flags=rw
+ '[' -d /run/host/run/systemd/users ']'
+ '[' -e /run/systemd/users ']'
+ findmnt /run/systemd/users
+ '[' -d /run/host/run/systemd/users ']'
+ mkdir -p /run/systemd/users
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/run/systemd/users /run/systemd/users
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/systemd/resolve/ /run/systemd/resolve/ rw
+ source_dir=/run/host/run/systemd/resolve/
+ target_dir=/run/systemd/resolve/
+ mount_flags=rw
+ '[' -d /run/host/run/systemd/resolve/ ']'
+ '[' -e /run/systemd/resolve/ ']'
+ '[' -d /run/host/run/systemd/resolve/ ']'
+ mkdir -p /run/systemd/resolve/
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/run/systemd/resolve/ /run/systemd/resolve/
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/netconfig/ /run/netconfig/ rw
+ source_dir=/run/host/run/netconfig/
+ target_dir=/run/netconfig/
+ mount_flags=rw
+ '[' -d /run/host/run/netconfig/ ']'
+ '[' -f /run/host/run/netconfig/ ']'
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/run/udev /run/udev rw
+ source_dir=/run/host/run/udev
+ target_dir=/run/udev
+ mount_flags=rw
+ '[' -d /run/host/run/udev ']'
+ '[' -e /run/udev ']'
+ '[' -d /run/host/run/udev ']'
+ mkdir -p /run/udev
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/run/udev /run/udev
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/srv /srv rw
+ source_dir=/run/host/srv
+ target_dir=/srv
+ mount_flags=rw
+ '[' -d /run/host/srv ']'
+ '[' -e /srv ']'
+ findmnt /srv
+ '[' -d /run/host/srv ']'
+ mkdir -p /srv
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/srv /srv
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/var/lib/libvirt /var/lib/libvirt rw
+ source_dir=/run/host/var/lib/libvirt
+ target_dir=/var/lib/libvirt
+ mount_flags=rw
+ '[' -d /run/host/var/lib/libvirt ']'
+ '[' -f /run/host/var/lib/libvirt ']'
+ return 0
+ for host_mount in ${HOST_MOUNTS}
+ mount_bind /run/host/var/mnt /var/mnt rw
+ source_dir=/run/host/var/mnt
+ target_dir=/var/mnt
+ mount_flags=rw
+ '[' -d /run/host/var/mnt ']'
+ '[' -f /run/host/var/mnt ']'
+ return 0
+ HOST_MOUNTS_RO_INIT='
		/etc/localtime
		/run/systemd/journal
		/run/systemd/resolve
		/run/systemd/seats
		/run/systemd/sessions
		/run/systemd/users
		/var/lib/systemd/coredump
		/var/log/journal'
+ '[' -e /var/home/berk ']'
+ printf 'distrobox: Setting up host'\''s sockets integration...\n'
distrobox: Setting up host's sockets integration...
++ find /run/host/run -name user -prune -o -path /run/host/run/media -prune -o -name nscd -prune -o -name bees -prune -o -name system_bus_socket -prune -o -type s -print
++ :
+ host_sockets='/run/host/run/samba/nmbd/unexpected
/run/host/run/charon.ctl
/run/host/run/nvidia-persistenced/socket
/run/host/run/uuidd/request
/run/host/run/cups/cups.sock
/run/host/run/avahi-daemon/socket
/run/host/run/rpcbind.sock
/run/host/run/systemd/resolve/io.systemd.Resolve
/run/host/run/systemd/journal/io.systemd.journal
/run/host/run/systemd/journal/stdout
/run/host/run/systemd/journal/socket
/run/host/run/systemd/journal/dev-log
/run/host/run/systemd/journal/syslog
/run/host/run/systemd/io.system.ManagedOOM
/run/host/run/systemd/userdb/io.systemd.DynamicUser
/run/host/run/systemd/private
/run/host/run/systemd/notify
/run/host/run/systemd/inaccessible/sock
/run/host/run/udev/control'
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/samba/nmbd/unexpected
++ sed 's|/run/host||g'
+ container_socket=/run/samba/nmbd/unexpected
+ '[' '!' -S /run/samba/nmbd/unexpected ']'
+ '[' '!' -L /run/samba/nmbd/unexpected ']'
+ rm -f /run/samba/nmbd/unexpected
++ dirname /run/samba/nmbd/unexpected
+ mkdir -p /run/samba/nmbd
+ ln -s /run/host/run/samba/nmbd/unexpected /run/samba/nmbd/unexpected
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/charon.ctl
++ sed 's|/run/host||g'
+ container_socket=/run/charon.ctl
+ '[' '!' -S /run/charon.ctl ']'
+ '[' '!' -L /run/charon.ctl ']'
+ rm -f /run/charon.ctl
++ dirname /run/charon.ctl
+ mkdir -p /run
+ ln -s /run/host/run/charon.ctl /run/charon.ctl
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/nvidia-persistenced/socket
++ sed 's|/run/host||g'
+ container_socket=/run/nvidia-persistenced/socket
+ '[' '!' -S /run/nvidia-persistenced/socket ']'
+ '[' '!' -L /run/nvidia-persistenced/socket ']'
+ rm -f /run/nvidia-persistenced/socket
++ dirname /run/nvidia-persistenced/socket
+ mkdir -p /run/nvidia-persistenced
+ ln -s /run/host/run/nvidia-persistenced/socket /run/nvidia-persistenced/socket
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/uuidd/request
++ sed 's|/run/host||g'
+ container_socket=/run/uuidd/request
+ '[' '!' -S /run/uuidd/request ']'
+ '[' '!' -L /run/uuidd/request ']'
+ rm -f /run/uuidd/request
++ dirname /run/uuidd/request
+ mkdir -p /run/uuidd
+ ln -s /run/host/run/uuidd/request /run/uuidd/request
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/cups/cups.sock
++ sed 's|/run/host||g'
+ container_socket=/run/cups/cups.sock
+ '[' '!' -S /run/cups/cups.sock ']'
+ '[' '!' -L /run/cups/cups.sock ']'
+ rm -f /run/cups/cups.sock
++ dirname /run/cups/cups.sock
+ mkdir -p /run/cups
+ ln -s /run/host/run/cups/cups.sock /run/cups/cups.sock
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/avahi-daemon/socket
++ sed 's|/run/host||g'
+ container_socket=/run/avahi-daemon/socket
+ '[' '!' -S /run/avahi-daemon/socket ']'
+ '[' '!' -L /run/avahi-daemon/socket ']'
+ rm -f /run/avahi-daemon/socket
++ dirname /run/avahi-daemon/socket
+ mkdir -p /run/avahi-daemon
+ ln -s /run/host/run/avahi-daemon/socket /run/avahi-daemon/socket
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/rpcbind.sock
++ sed 's|/run/host||g'
+ container_socket=/run/rpcbind.sock
+ '[' '!' -S /run/rpcbind.sock ']'
+ '[' '!' -L /run/rpcbind.sock ']'
+ rm -f /run/rpcbind.sock
++ dirname /run/rpcbind.sock
+ mkdir -p /run
+ ln -s /run/host/run/rpcbind.sock /run/rpcbind.sock
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/resolve/io.systemd.Resolve
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/resolve/io.systemd.Resolve
+ '[' '!' -S /run/systemd/resolve/io.systemd.Resolve ']'
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/journal/io.systemd.journal
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/journal/io.systemd.journal
+ '[' '!' -S /run/systemd/journal/io.systemd.journal ']'
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/journal/stdout
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/journal/stdout
+ '[' '!' -S /run/systemd/journal/stdout ']'
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/journal/socket
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/journal/socket
+ '[' '!' -S /run/systemd/journal/socket ']'
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/journal/dev-log
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/journal/dev-log
+ '[' '!' -S /run/systemd/journal/dev-log ']'
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/journal/syslog
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/journal/syslog
+ '[' '!' -S /run/systemd/journal/syslog ']'
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/io.system.ManagedOOM
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/io.system.ManagedOOM
+ '[' '!' -S /run/systemd/io.system.ManagedOOM ']'
+ '[' '!' -L /run/systemd/io.system.ManagedOOM ']'
+ rm -f /run/systemd/io.system.ManagedOOM
++ dirname /run/systemd/io.system.ManagedOOM
+ mkdir -p /run/systemd
+ ln -s /run/host/run/systemd/io.system.ManagedOOM /run/systemd/io.system.ManagedOOM
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/userdb/io.systemd.DynamicUser
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/userdb/io.systemd.DynamicUser
+ '[' '!' -S /run/systemd/userdb/io.systemd.DynamicUser ']'
+ '[' '!' -L /run/systemd/userdb/io.systemd.DynamicUser ']'
+ rm -f /run/systemd/userdb/io.systemd.DynamicUser
++ dirname /run/systemd/userdb/io.systemd.DynamicUser
+ mkdir -p /run/systemd/userdb
+ ln -s /run/host/run/systemd/userdb/io.systemd.DynamicUser /run/systemd/userdb/io.systemd.DynamicUser
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/private
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/private
+ '[' '!' -S /run/systemd/private ']'
+ '[' '!' -L /run/systemd/private ']'
+ rm -f /run/systemd/private
++ dirname /run/systemd/private
+ mkdir -p /run/systemd
+ ln -s /run/host/run/systemd/private /run/systemd/private
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/notify
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/notify
+ '[' '!' -S /run/systemd/notify ']'
+ '[' '!' -L /run/systemd/notify ']'
+ rm -f /run/systemd/notify
++ dirname /run/systemd/notify
+ mkdir -p /run/systemd
+ ln -s /run/host/run/systemd/notify /run/systemd/notify
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/systemd/inaccessible/sock
++ sed 's|/run/host||g'
+ container_socket=/run/systemd/inaccessible/sock
+ '[' '!' -S /run/systemd/inaccessible/sock ']'
+ '[' '!' -L /run/systemd/inaccessible/sock ']'
+ rm -f /run/systemd/inaccessible/sock
++ dirname /run/systemd/inaccessible/sock
+ mkdir -p /run/systemd/inaccessible
+ ln -s /run/host/run/systemd/inaccessible/sock /run/systemd/inaccessible/sock
+ for host_socket in ${host_sockets}
++ printf %s /run/host/run/udev/control
++ sed 's|/run/host||g'
+ container_socket=/run/udev/control
+ '[' '!' -S /run/udev/control ']'
distrobox: Integrating host's themes, icons, fonts...
+ printf 'distrobox: Integrating host'\''s themes, icons, fonts...\n'
+ mount_bind /run/host/usr/share/themes /usr/local/share/themes rw
+ source_dir=/run/host/usr/share/themes
+ target_dir=/usr/local/share/themes
+ mount_flags=rw
+ '[' -d /run/host/usr/share/themes ']'
+ '[' -e /usr/local/share/themes ']'
+ '[' -d /run/host/usr/share/themes ']'
+ mkdir -p /usr/local/share/themes
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/usr/share/themes /usr/local/share/themes
+ return 0
+ mount_bind /run/host/usr/share/icons /usr/local/share/icons rw
+ source_dir=/run/host/usr/share/icons
+ target_dir=/usr/local/share/icons
+ mount_flags=rw
+ '[' -d /run/host/usr/share/icons ']'
+ '[' -e /usr/local/share/icons ']'
+ '[' -d /run/host/usr/share/icons ']'
+ mkdir -p /usr/local/share/icons
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/usr/share/icons /usr/local/share/icons
+ return 0
+ mount_bind /run/host/usr/share/fonts /usr/local/share/fonts rw
+ source_dir=/run/host/usr/share/fonts
+ target_dir=/usr/local/share/fonts
+ mount_flags=rw
+ '[' -d /run/host/usr/share/fonts ']'
+ '[' -e /usr/local/share/fonts ']'
+ '[' -d /run/host/usr/share/fonts ']'
+ mkdir -p /usr/local/share/fonts
+ '[' rw = '' ']'
+ mount --rbind -o rw /run/host/usr/share/fonts /usr/local/share/fonts
+ return 0
+ printf 'distrobox: Setting up package manager exceptions...\n'
distrobox: Setting up package manager exceptions...
+ '[' -d /usr/lib/rpm/macros.d/ ']'
+ '[' -d /etc/dpkg/dpkg.cfg.d/ ']'
+ '[' -d /usr/share/libalpm/scripts ']'
distrobox: Setting up pacman exceptions...
+ printf 'distrobox: Setting up pacman exceptions...\n'
+ printf '#!/bin/sh\n'
+ printf '#!/bin/sh\n'
+ printf '#!/bin/sh\n'
+ chmod +x /usr/share/libalpm/scripts/00_distrobox_pre_hook.sh /usr/share/libalpm/scripts/01_distrobox_post_hook.sh /usr/share/libalpm/scripts/02_distrobox_post_hook.sh
+ for net_mount in ${HOST_MOUNTS_RO}
+ printf 'if findmnt %s >/dev/null; then umount %s; fi\n' /var/lib/flatpak /var/lib/flatpak
+ printf 'if [ -e /run/host/%s ]; then mount --rbind -o ro /run/host/%s %s; fi\n' /var/lib/flatpak /var/lib/flatpak /var/lib/flatpak
+ for net_mount in ${HOST_MOUNTS_RO}
+ printf 'if findmnt %s >/dev/null; then umount %s; fi\n' /var/lib/systemd/coredump /var/lib/systemd/coredump
+ printf 'if [ -e /run/host/%s ]; then mount --rbind -o ro /run/host/%s %s; fi\n' /var/lib/systemd/coredump /var/lib/systemd/coredump /var/lib/systemd/coredump
+ for net_mount in ${HOST_MOUNTS_RO}
+ printf 'if findmnt %s >/dev/null; then umount %s; fi\n' /var/log/journal /var/log/journal
+ printf 'if [ -e /run/host/%s ]; then mount --rbind -o ro /run/host/%s %s; fi\n' /var/log/journal /var/log/journal /var/log/journal
+ cat
distrobox: Setting up pacman hooks...
+ printf 'distrobox: Setting up pacman hooks...\n'
+ rm -f '/usr/share/libalpm/hooks/*distrobox*'
+ for hook in 00_distrobox_pre_hook 01_distrobox_post_hook 02_distrobox_post_hook
+ when=PostTransaction
+ '[' -z '' ']'
+ when=PreTransaction
+ cat
+ for hook in 00_distrobox_pre_hook 01_distrobox_post_hook 02_distrobox_post_hook
+ when=PostTransaction
+ '[' -z 01_distrobox_post_hook ']'
+ cat
+ for hook in 00_distrobox_pre_hook 01_distrobox_post_hook 02_distrobox_post_hook
+ when=PostTransaction
+ '[' -z 02_distrobox_post_hook ']'
+ cat
distrobox: Setting up sudo...
+ printf 'distrobox: Setting up sudo...\n'
+ mkdir -p /etc/sudoers.d
+ grep -q 'Defaults !fqdn' /etc/sudoers.d/sudoers
grep: /etc/sudoers.d/sudoers: No such file or directory
+ printf 'Defaults !fqdn\n'
+ grep -q '"berk" ALL = (root) NOPASSWD:ALL' /etc/sudoers.d/sudoers
+ printf '"%s" ALL = (root) NOPASSWD:ALL\n' berk
distrobox: Setting up groups...
+ printf 'distrobox: Setting up groups...\n'
+ grep -q '^berk:' /etc/group
distrobox: Setting up users...
+ printf 'distrobox: Setting up users...\n'
+ '[' -d /run/host/var/kerberos ']'
++ printf %s berk
++ tr '\\' .
+ grep -q '^berk:' /etc/passwd
+ '[' '!' -e /etc/passwd.done ']'
+ usermod --home /home/berk --shell /usr/sbin/bash --uid 1000 --gid 1000 berk
+ touch /etc/passwd.done
++ cat /proc/sys/kernel/random/uuid
+ temporary_password=6c950a46-43b2-4717-9596-47ffbecc55c8
+ printf '%s\n%s\n' 6c950a46-43b2-4717-9596-47ffbecc55c8 6c950a46-43b2-4717-9596-47ffbecc55c8
+ passwd root
New password: Retype new password: passwd: password updated successfully
+ printf %s:%s berk 6c950a46-43b2-4717-9596-47ffbecc55c8
+ chpasswd -e
+ printf %s: root
+ chpasswd -e
+ printf %s: berk
+ chpasswd -e
+ mkdir -p /etc/profile.d
+ printf 'test -z "$USER" && USER="$(id -un 2> /dev/null)"\n'
+ printf 'test -z "$UID"  && readonly  UID="$(id -ur 2> /dev/null)"\n'
+ printf 'test -z "$EUID" && readonly EUID="$(id -u  2> /dev/null)"\n'
+ '[' -n '' ']'
+ printf 'distrobox: Executing init hooks...\n'
distrobox: Executing init hooks...
+ eval
+ '[' 0 -eq 0 ']'
container_setup_done
+ printf 'container_setup_done\n'
+ HOST_WATCH='
		/etc/hosts
		/etc/localtime
		/etc/resolv.conf
	'
+ set +x
diff: /etc/localtime/Istanbul: No such file or directory
mount: /etc/localtime: mount(2) system call failed: Not a directory.
       dmesg(1) may have more information after failed mount system call.
Warning: failed to bind mount /run/host/etc/localtime to /etc/localtime
Error: An error occurred
@berkakkaya berkakkaya changed the title Apx crashes when I try to install packages from the AUR apx crashes when I try to install packages from the AUR Feb 13, 2023
@berkakkaya berkakkaya changed the title apx crashes when I try to install packages from the AUR apx install crashes when I try to install packages from the AUR Feb 13, 2023
@berkakkaya
Copy link
Author

Interestingly, apx init --aur fixes this problem, thanks to this comment. But I don't understand why it makes this issue in the first place.

@berkakkaya
Copy link
Author

Also, before I tried this, the system was showing the wrong time, so I changed the timezone back to the Europe/Istanbul from the settings.

@jack-michaud
Copy link

I am having the exact same symptoms as you, @berkakkaya, down to the timezone being wrong (though I'm not sure if that's related).

I don't think the issue is related to the AUR. I am having these issues with the default ubuntu container too.

@berkakkaya
Copy link
Author

berkakkaya commented Feb 20, 2023

I am having the exact same symptoms as you, @berkakkaya, down to the timezone being wrong (though I'm not sure if that's related).

The following lines at the bottom of podman log got me suspected about a timezone issue:

diff: /etc/localtime/Istanbul: No such file or directory
mount: /etc/localtime: mount(2) system call failed: Not a directory. dmesg(1) may have more information after failed mount system call.
Warning: failed to bind mount /run/host/etc/localtime to /etc/localtime

This issue might be related to other things though, I'm not sure.

I don't think the issue is related to the AUR. I am having these issues with the default ubuntu container too.

I've just had this issue with the AUR container, my Ubuntu and Fedora containers were working fine. But you're right @jack-michaud , it seems like the issue is not related to that.

@kbdharun
Copy link
Member

kbdharun commented Feb 20, 2023

These are the temporary steps to solve this issue as mentioned in the Discord server.

Fix apx localtime error:
Check if your timezone and time are set correctly, if they are and the issue still persists, follow these steps:
- `sudo abroot exec apt install tzdata`
- `reboot`
- Set your timezone to the correct one
- Check if `apx init` works, if it doesn't remove the container and image (this will remove all packages installed inside that container)
- `podman stop apx_managed`
- `podman rm apx_managed`
- `podman rmi docker.io/library/ubuntu:latest`
- Now, initializing should work: `apx init`

Replace Ubuntu docker image link with Arch

@kbdharun
Copy link
Member

Hi, Do you still face this issue, or can it be closed?

@oliveirarleo
Copy link

Hi, this issue happened to me and the suggestion worked. My guess that anytime we change localtime after the creation of the container this will happen, which is not ideal. To close the issue, ideally there should be a way that this won't happen again, but the solution works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants