apt-get update 全部 ign怎么办

问题展示

 

 

 

修改更新源为国内高速源

vim /etc/apt/sources.list

删除旧的更新源,换成国内的更新源,如下

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

 

 

执行 apt-get update

如果这时出现无法解析国内的域名

一般来说是dns出错了

vim /etc/resolv.conf

 

看看nameserver 是否拼写错误,dns 设置成8.8.8.8即可

 

posted @ 2020-06-30 23:59  小小分析猿  阅读(10592)  评论(0编辑  收藏  举报