ubuntu apt-get 错误 Temporary failure resolving 'security.ubuntu.com ' 解决

加入如下dns
vim /etc/resolv.conf
nameserver 202.96.134.133
nameserver 8.8.8.
ubuntu apt 报错如下:Err:3 http://security.ubuntu.com/ubuntu jammy-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:2 http://archive.canonical.com/ubuntu jammy InRelease Temporary failure resolving 'archive.canonical.com' Err:1 https://repo.virtuozzo.com/ctpreset/deb InRelease Temporary failure resolving 'repo.virtuozzo.com' Err:4 http://archive.ubuntu.com/ubuntu jammy InRelease Temporary failure resolving 'archive.ubuntu.com' Err:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Temporary failure resolving 'archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Failed to fetch http://archive.canonical.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.canonical.com' W: Failed to fetch https://repo.virtuozzo.com/ctpreset/deb/InRelease Temporary failure resolving 'repo.virtuozzo.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
07-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值