首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >archlinux chroot更新pacman失败

archlinux chroot更新pacman失败
EN

Unix & Linux用户
提问于 2016-09-25 19:42:01
回答 1查看 2.9K关注 0票数 2

注意:我在一个Ubuntu安装程序中,向一个拱形安装程序进行着色。

当运行pacman -Syu时,

代码语言:javascript
复制
:: 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 (通过chroot)使arch可引导(在ubuntu中运行os-probe不能检测到arch安装)有它自己的问题。

我无法更新我的pacman存储库数据库

有什么建议吗?

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2016-09-25 19:50:17

/etc/resolv.conf文件复制到有色度的会话中,并用以下行替换nameserver行:

代码语言:javascript
复制
nameserver 8.8.8.8
nameserver 8.8.4.4

保存并重新启动网络。

票数 3
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/312255

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档