Hi,
I want to execute dnf command on fedora-arm version 22 with qemu-arm-static chroot environment. Unfortunately, dnf command was failed with below errors:
cachedir: /var/cache/dnf DNF version: 1.1.6 qemu: Unsupported syscall: 374 Failed to synchronize cache for repo 'rpmfusion-free-updates' from 'http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-22...': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-22... [Could not resolve host: mirrors.rpmfusion.org], disabling. Error: Failed to synchronize cache for repo 'fedora' from 'https://mirrors.fedoraproject.org/metalink?repo=fedora-22&arch=arm': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-22&arch=arm [Could not resolve host: mirrors.fedoraproject.org]
It seems the qemu-arm-static could be recognized on 'arm' not 'armhfp'. Is there any ways to run dnf command on the qemu chroot environment?
Full work history: sudo cp /usr/bin/qemu-arm-static arm_root/usr/bin sudo mount -o rbind /proc arm_root/proc sudo mount -o rbind /sys arm_root/sys sudo mount -o rbind /dev arm_root/dev sudo mount -o rbind /dev/pts arm_root/dev/pts
sudo chroot arm_root
dnf update
I had similar issue. I've tried to install the most recent ca-certificates*.rpm manually. No success. Having no other idea how to manage the situation, I decided to implement very ugly and brutal workaround. Namely, I have added temporarily 'sslverify=0' to '/etc/dnf/dnf.conf'. I'm still looking for the solution that addresses the real root cause.
I have revealed the root cause of my issue. That was a time synchronization failure. Having the system time set to 1970-01-01, I had the setup outside the certificates' validation period. The proper chrony setup ceased the problem.