关于ubuntu17.04之apt-get源失败 解决办法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于ubuntu17.04之apt-get源失败 解决办法相关的知识,希望对你有一定的参考价值。

这个是清华的apt-get源,适用于ubuntu17.04


命令行:
cd /etc/apt/sources.list.d


命令行:
sudo vi /etc/apt/sources.list


将以下内容复制粘贴替换原来的全部内容(记得先备份,如果不成功还可以改回来):

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

修改完成之后
命令行:
apt-get clean
【将 /var/cache/apt/archives/ 的 所有 deb 删掉,可以理解为 rm /var/cache/apt/archives/*.deb】


命令行:
apt-get update
【更新软件源中的所有软件列表】

以上是关于关于ubuntu17.04之apt-get源失败 解决办法的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu apt-get update 失败解决

Ubuntu17.04更换阿里源

一般都是源的问题ubuntu使用apt-get update更新失败

Ubuntu系统 apt-get update失败,出现“Certificate verification failed ”错误以及“无法安全地用该源进行更新“等问题解决办法

ubuntu17.04新安装之后的软件准备

连接到VM虚拟机的NVIDIA 边缘服务器apt-get更新源失败