ubuntu18.043399pro环境配置

出现如下错误:

Err:1 http://wiki.t-firefly.com/firefly-rk3399-repo bionic InRelease
  Could not resolve 'wiki.t-firefly.com'
Err:2 https://download.docker.com/linux/ubuntu bionic InRelease
  Could not resolve 'download.docker.com'
Err:3 http://mirrors.aliyun.com/ubuntu-ports bionic InRelease
  Could not resolve 'mirrors.aliyun.com'
Err:4 http://mirrors.aliyun.com/ubuntu-ports bionic-updates InRelease
  Could not resolve 'mirrors.aliyun.com'
Err:5 http://mirrors.aliyun.com/ubuntu-ports bionic-backports InRelease
  Could not resolve 'mirrors.aliyun.com'
Err:6 http://mirrors.aliyun.com/ubuntu-ports bionic-security InRelease
  Could not resolve 'mirrors.aliyun.com'
Reading package lists... Done
W: Failed to fetch http://mirrors.aliyun.com/ubuntu-ports/dists/bionic/InRelease  Could not resolve 'mirrors.aliyun.com'
W: Failed to fetch http://mirrors.aliyun.com/ubuntu-ports/dists/bionic-updates/InRelease  Could not resolve 'mirrors.aliyun.com'
W: Failed to fetch http://mirrors.aliyun.com/ubuntu-ports/dists/bionic-backports/InRelease  Could not resolve 'mirrors.aliyun.com'
W: Failed to fetch http://mirrors.aliyun.com/ubuntu-ports/dists/bionic-security/InRelease  Could not resolve 'mirrors.aliyun.com'
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/InRelease  Could not resolve 'download.docker.com'
W: Failed to fetch http://wiki.t-firefly.com/firefly-rk3399-repo/dists/bionic/InRelease  Could not resolve 'wiki.t-firefly.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

解决方法:设置妥当DNS服务器即可,如电信网络的设置如下所示

(参考:https://blog.csdn.net/npy_lp/article/details/42080553

https://blog.csdn.net/weixin_30449239/article/details/98918706)

$ sudo vi /etc/resolv.conf

 

 

 修改为114.114.114.114

添加:

cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

nameserver 8.8.8.8
nameserver 8.8.4.4

 

重启网络:

 

sudo /etc/init.d/networking restart

 

再执行命令:sudo apt-get update

 

执行完成,然后:

 

sudo apt-get upgrade

 

posted @   水木清扬  阅读(345)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
历史上的今天:
2019-10-13 TX2开发板Ubuntu16.04设置静态IP
2019-10-13 最新检测程序
点击右上角即可分享
微信分享提示