ubuntu apt-get默认源报以下错误解决办法

在使用`apt-get update`时遇到错误提示""W: Some index files failed to download. They have been ignored, or old ones used instead."",解决方法是通过编辑`/etc/resolv.conf`文件,将DNS改为8.8.8.8和8.8.4.4,之后重新运行`apt-get update`。" 127258214,13763043,Vue3响应式原理:ref与reactive实战解析,"['前端开发', 'Vue', 'JavaScript']
部署运行你感兴趣的模型镜像
Reading package lists... Done
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-security/InRelease  

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-updates/InRelease  

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-proposed/InRelease  

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-backports/InRelease  

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'mirrors.aliyun.com'

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'mirrors.aliyun.com'

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'mirrors.aliyun.com'

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-proposed/Release.gpg  Could not resolve 'mirrors.aliyun.com'

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty-backports/Release.gpg  Could not resolve 'mirrors.aliyun.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.

解决方法:

vim /etc/resolv.conf

修改DNS:
nameserver 8.8.8.8

nameserver 8.8.4.4

然后apt-get update


您可能感兴趣的与本文相关的镜像

HunyuanVideo-Foley

HunyuanVideo-Foley

语音合成

HunyuanVideo-Foley是由腾讯混元2025年8月28日宣布开源端到端视频音效生成模型,用户只需输入视频和文字,就能为视频匹配电影级音效

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值