-
Notifications
You must be signed in to change notification settings - Fork 338
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
Arch Linux = error: failed retrieving file 'core.db' from geo.mirror.pkgbuild.com : Could not resolve host: geo.mirror.pkgbuild.com #2887
Comments
@componentscience Can you run with |
@DaanDeMeyer after specifying a nameserver in /etc/resolv.conf everything is working. Previously we had only configured /etc/systemd/resolved.conf. Closing this. Thank you. |
For anyone else with a similar DNS resolution issue in their scripts and your host is WSL2, the issue might be caused by this: Another workaround is to override #!/bin/sh
# ./mkosi.build.chroot
rm /etc/resolv.conf
echo "nameserver 8.8.8.8" > /etc/resolv.conf
# DNS resolution fixed! EDIT:
Updated workaround that works both with and without #!/bin/sh
# ./mkosi.build.chroot
# If systemd-resolved was installed before build,
# resolv.conf is a dead symlink, so we write our own.
# This does not get persisted after the build step.
if [ -L /etc/resolv.conf ]; then
rm /etc/resolv.conf
echo "nameserver 8.8.8.8" > /etc/resolv.conf
fi
# DNS resolution fixed! |
mkosi commit the issue has been seen with
main
Used host distribution
Arch Linux 2024.07.01
Used target distribution
Arch Linux 2024.07.01
Linux kernel version used
6.9.9-arch1-1
CPU architectures issue was seen on
x86_64
Unexpected behaviour you saw
When running a vanilla # mkosi command, the error below is thrown. There are no DNS issues on this system that we know of.
[root@myhost mydir]# mkosi
Create subvolume '/var/tmp/mkosi-workspace-0bya2h_o/root'
‣ Syncing package manager metadata for default image
:: Synchronizing package databases...
core.db failed to download
extra.db failed to download
error: failed retrieving file 'core.db' from geo.mirror.pkgbuild.com : Could not resolve host: geo.mirror.pkgbuild.com
warning: fatal error from geo.mirror.pkgbuild.com, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from geo.mirror.pkgbuild.com : Could not resolve host: geo.mirror.pkgbuild.com
error: failed to synchronize all databases (invalid url for server)
‣ "pacman --root=/buildroot --logfile=/dev/null --dbpath=/var/lib/pacman --cachedir=/var/cache/pacman/mkosi --cachedir=/var/cache/pacman/pkg --hookdir=/buildroot/etc/pacman.d/hooks --arch x86_64 --color auto --noconfirm --sync --refresh" returned non-zero exit code 1.
Used mkosi config
The vanilla # mkosi command was ran without any config files as a test.
mkosi output
The text was updated successfully, but these errors were encountered: