Hi, while testing building some packages on rawhide, using mock --rebuild, I got into trouble with the following error:
$ mock -r fedora-40-x86_64 --rebuild pygsl-2.3.4-1.fc41.src.rpm
Start: installing minimal buildroot with dnf5 execv(/usr/bin/dnf5) failed: No such file or directory ERROR: Exception(pygsl-2.3.4-1.fc41.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 2 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M 3740df7c87a249ebb62eeaed758aea07 -D /var/lib/ mock/fedora-rawhide-x86_64-bootstrap/root -a --capability=cap_ipc_lock -- bind=/tmp/mock-resolv.dpfedow6:/etc/resolv.conf --console=pipe -- setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/var/lib/mock/fedora- rawhide-x86_64/root/installation-homedir --setenv=HOSTNAME=mock -- setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v$ ' -- setenv=LANG=C.UTF-8 --setenv=LC_MESSAGES=C.UTF-8 --resolv-conf=off /usr/bin/ dnf5 --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ --releasever 41 install @buildsys-build --setopt=deltarpm=False -- setopt=allow_vendor_change=yes --allowerasing --setopt=tsflags=nocontexts execv(/usr/bin/dnf5) failed: No such file or directory
This happened last week from F39 and now also with F40.
The only option for me was to add --config-opts='package_manager=dnf' to the call.
How can I fix that? Either to use dnf4 or dnf5 without further changes? Are there any configuration files that are changed on my installation?
Best regards,
On 15/02/2024 20:13, José Abílio Matos wrote:
How can I fix that? Either to use dnf4 or dnf5 without further changes?
Use "mock --scrub=all" to flush all the cached data for the problem root and that should fix it.
Tom
packaging@lists.fedoraproject.org