Arch linux template qubes-vm-core error

Hello, I am trying to create an arch linux template, I get the following error.

make app-linux-usb-proxy-vm
Currently installed dependencies:
createrepo_c-0.17.5-1.fc34.x86_64
createrepo_c-0.17.5-1.fc34.x86_64
debootstrap-1.0.126-1.nmu1.fc34.noarch
dialog-1.3-30.20210117.fc34.x86_64
dpkg-dev-1.21.1-1.fc34.noarch
git-2.31.1-3.fc34.x86_64
perl-Digest-MD5-2.58-2.fc34.x86_64
perl-Digest-SHA-6.02-459.fc34.x86_64
python3-sh-1.14.1-2.fc34.noarch
rpm-build-4.16.1.3-1.fc34.x86_64
rpmdevtools-9.6-1.fc34.noarch
--> Archlinux dist-prepare-chroot (makefile):
-> Building app-linux-usb-proxy (archlinux) for archlinux vm (logfile: build-logs/app-linux-usb-proxy-vm-archlinux.log)
--> build failed!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
==> Updating trust database...
gpg: Warning: using insecure memory!
gpg: next trustdb check due at 2022-05-06
==> Updating trust database...
gpg: Warning: using insecure memory!
gpg: next trustdb check due at 2022-05-06
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
Container chroot-vm-archlinux exited successfully.

Spawning container chroot-vm-archlinux on /home/user/qubes-builder/chroot-vm-archlinux.
Press ^] three times within 1s to kill container.
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 qubes is up to date
:: Starting full system upgrade...
 there is nothing to do
Container chroot-vm-archlinux exited successfully.

--> Archlinux dist-package (makefile)
  --> Building package in /home/user/qubes-src/app-linux-usb-proxy
sudo systemd-nspawn --directory="/home/user/qubes-builder/chroot-vm-archlinux" \
	--bind="/home/user/qubes-builder/cache/archlinux/pacman_cache":"/var/cache/pacman" \
	--bind="/home/user/qubes-builder/qubes-packages-mirror-repo/vm-archlinux":"/tmp/qubes-packages-mirror-repo" \
	--keep-unit \
        --register=no \
	--user=user \
	--setenv=BACKEND_VMM=xen  \
	--setenv=SOURCE_DATE_EPOCH="1631272299" \
	--setenv=http_proxy="" \
	--chdir="/home/user/qubes-src/app-linux-usb-proxy" \
	sh -c 'cp archlinux/PKGBUILD* ./ && makepkg --syncdeps --noconfirm --skipinteg'
Spawning container chroot-vm-archlinux on /home/user/qubes-builder/chroot-vm-archlinux.
Press ^] three times within 1s to kill container.
==> Making package: qubes-usb-proxy 1.1.1-1 (Tue Mar  1 20:15:34 2022)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: qubes-vm-core
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> qubes-vm-core
  -> usbutils
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
Container chroot-vm-archlinux failed with error code 8.
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:111: dist-package] Error 8
make[1]: *** [Makefile.generic:197: packages] Error 1
make: *** [Makefile:265: app-linux-usb-proxy-vm] Error 1

Sorry i’m using Qubes OS 4.1

Hi @aka0kuro

app-linux-usb-proxy-vm depends on qubes-vm-core (see its PKGBUILD), so I suggest you build first the qubes-vm-core packages (see the related documentation).

1 Like

Thanks for your answer.
Now it gives me another problem.

install: cannot stat '/home/user/qubes-src/core-agent-linux/src/PKGBUILD-qubes-repo-4.2.conf': No such file or directory
==> ERROR: A failure occurred in package_qubes-vm-core().
    Aborting...
Container chroot-vm-archlinux failed with error code 4.
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:111: dist-package] Error 4
make[1]: *** [Makefile.generic:197: packages] Error 1
make: *** [Makefile:265: core-agent-linux-vm] Error 1

Edited since that problem has been removed.

You need to install systemd-nspawn.

1 Like

Thank you, but I have already fixed that, now it gives me the following error

install: cannot stat '/home/user/qubes-src/core-agent-linux/src/PKGBUILD-qubes-repo-4.2.conf': No such file or directory
==> ERROR: A failure occurred in package_qubes-vm-core().
    Aborting...
Container chroot-vm-archlinux failed with error code 4.
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:111: dist-package] Error 4
make[1]: *** [Makefile.generic:197: packages] Error 1
make: *** [Makefile:265: core-agent-linux-vm] Error 1

4.2 !!? I only see 4.1 in the git repository… Maybe you did a mistake in the #4 step for the builder.conf setting file.

Thanks for the answers. I have found that in the pkgbuild it has a variable called release and I don’t know why it marks me as 4.2.

I just have seen this commit :

Could you try again, and if it failed again try the same workaround than the above commit…

1 Like

Much simppler just to edit that to 4.1, and the build will succeed.

Thank you, I got it done as Unman says.

Moved to ‘User Support | 4.1’