apt-get 更新在 debian 10 buster 中失败

apt-get 更新在 debian 10 buster 中失败

我当前在 beaglebone black 上运行 debian 10 buster,当我尝试使用命令“sudo apt-get update”时出现以下错误:

Err:1 http://repos.rcn-ee.com/debian buster InRelease 
 Temporary failure resolving 'repos.rcn-ee.com'
Err:2 http://deb.debian.org/debian buster InRelease
  Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian buster-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Err:4 http://deb.debian.org/debian-security buster/updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Temporar                                                                  y failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease                                                                    Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/In                                                                  Release  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://repos.rcn-ee.com/debian/dists/buster/InRelease  Tempor                                                                  ary failure resolving 'repos.rcn-ee.com'
W: Some index files failed to download. They have been ignored, or old ones used                                                                   instead.

我认为存储库可能存在问题。目前,在我的 /ect/apt/sources.list 文件中,我有以下内容:

deb http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb http://deb.debian.org/debian-security buster/updates main contrib non-free
deb [arch=armhf] http://repos.rcn-ee.com/debian/ buster main

我将非常感激任何能帮助我解决该问题的事情,谢谢。

答案1

您的问题是您的 DNS 服务器/设置没有解析 FQDN 名称deb.debian.org,并且repos.rcn-ee.com

检查您的 DNS 设置并尝试apt update再次运行。

相关内容