Could not resolve ‘mirrors.tuna.tsinghua.edu.cn‘

Question:

orangepi@HiGuys:~$ sudo apt update
Err:1 http://mirrors.tuna.tsinghua.edu.cn/debian bullseye InRelease
  Could not resolve 'mirrors.tuna.tsinghua.edu.cn'
Err:2 http://mirrors.tuna.tsinghua.edu.cn/debian bullseye-updates InRelease
  Could not resolve 'mirrors.tuna.tsinghua.edu.cn'
Err:3 http://mirrors.tuna.tsinghua.edu.cn/debian bullseye-backports InRelease
  Could not resolve 'mirrors.tuna.tsinghua.edu.cn'
Err:4 http://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security InRelease
  Could not resolve 'mirrors.tuna.tsinghua.edu.cn'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/debian/dists/bullseye/InRelease  Could not resolve 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/debian/dists/bullseye-updates/InRelease  Could not resolve 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/debian/dists/bullseye-backports/InRelease  Could not resolve 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/debian-security/dists/bullseye-security/InRelease  Could not resolve 'mirrors.tuna.tsinghua.edu.cn'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Solve:

真尴尬,我的是 DNS 配置文件写错了 XD,nameserver没写全

balabala@balabala:~$ sudo vim /etc/resolv.conf
## resolv.conf 文件主要的配置内容
# 我用的是路由器作为DNS,当然,你可以用其他的,或者自己搭设的
nameserver 192.168.3.1
# resolv.conf 结束

Solve:

这个是在找答案的路上,遇到的其他情况和解决方案
针对于 http与https 协议的,使用https加密协议的,可以使用加密的http协议的地址试一试
这个貌似主要针对于 清华的源(tsinghua)。因为主流的源中,只有清华的源中,http和https两种协议镜像地址是相同的。(gentoo 的 source mirrors 是只有tsinghua的是双协议同地址的)

# 临时将更新方式改为http方式, update一下
balabala@bala:~$ sudo apt update
# 然后,再次修改回HTTPS方式,update一下
balabala@bala:~$ sudo apt update && sudo upgrde -y
# 然后,应该就好了
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值