archlinux chroot pacman の更新が失敗する

archlinux chroot pacman の更新が失敗する

注: 私はUbuntuインストールからArchインストールにchrootしています

実行中はpacman -Syu次のように応答します

:: Synchronizing package databases...
error: failed retrieving file 'core.db' from archlinux.polymorf.fr : Could not resolve host: archlinux.polymorf.fr
error: failed retrieving file 'core.db' from mirror.js-webcoding.de : Could not resolve host: mirror.js-webcoding.de
...
error: failed retrieving file 'community.db' from mirror.kavalinux.com : Could not resolve host: mirror.kavalinux.com
error: failed retrieving file 'community.db' from f.archlinuxvn.org : Could not resolve host: f.archlinuxvn.org
error: failed to update community (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)

合計を見る出力

うまくいけば、出力は十分なものになるはずです。

ArchLinux をインストールしたばかりですが、Arch インストールにバイナリが存在しないため、grub-mkconfig を実行できませんでした。

したがって、arch を起動可能にするために grub (chroot 経由) をインストールしたい場合 ( os-probeubuntu 内で実行すると arch インストールが検出されない)、独自の問題が発生します。

pacmanリポジトリデータベースを更新できません

助言がありますか?

答え1

/etc/resolv.confファイルを chroot されたセッションにコピーし、nameserver次の行を置き換えます。

nameserver 8.8.8.8
nameserver 8.8.4.4

保存してネットワークを再起動します。

関連情報