赞
踩
sudo vim /etc/resolv.conf
nameserver 8.8.8.8
可以尝试运行
apt-get update
apt-get update --fix-missing
依然报错,则更换source源
sudo vim /etc/apt/sources.list
将文件内容替换成
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
最后要更新一下,这个命令就相当于更新软件商店里面的目录
sudo apt-get update
再升级,相当于与软件目录对比,更新本地已经下载的软件
sudo apt-get upgrade
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。