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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· 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 最新检测程序