忽略:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
忽略:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease
忽略:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease
忽略:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease
错误:5 http://mirrors.aliyun.com/ubuntu xenial Release
SECURITY: URL redirect target contains control characters, rejecting. [IP: 222.188.8.224 80]
错误:6 http://mirrors.aliyun.com/ubuntu xenial-updates Release
SECURITY: URL redirect target contains control characters, rejecting. [IP: 222.188.8.224 80]
错误:7 http://mirrors.aliyun.com/ubuntu xenial-backports Release
SECURITY: URL redirect target contains control characters, rejecting. [IP: 222.188.8.224 80]
错误:8 http://mirrors.aliyun.com/ubuntu xenial-security Release
SECURITY: URL redirect target contains control characters, rejecting. [IP: 222.188.8.224 80]
正在读取软件包列表... 完成
E: 仓库 “http://mirrors.aliyun.com/ubuntu xenial Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.aliyun.com/ubuntu xenial-updates Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.aliyun.com/ubuntu xenial-backports Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “http://mirrors.aliyun.com/ubuntu xenial-security Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
通过hostnamectl命令查看linux内核版本
hostnamectl
Static hostname: zhouming-Lenovo-ideapad-310S-14ISK
Icon name: computer-laptop
Chassis: laptop
Machine ID: b76cc7b1bbdc489e93909d2043031de8
Boot ID: 3aa0976720c2434eb7eb002c845a0d7f
Operating System: Linux Mint 20
Kernel: Linux 5.4.0-26-generic
Architecture: x86-64
我使用的是linux mint20对应的ubuntu20.04
到清华镜像找到对应版本Ubuntu
清华镜像: https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
进入sources.list
sudo vim /etc/apt/sources.list
复制成下载的sources.list里面的内容到我们打开的sources.list中
保存退出
sudo apt-get update
命中:1 http://mirrors.aliyun.com/ubuntu focal InRelease
命中:2 http://dl.google.com/linux/chrome/deb stable InRelease
命中:3 http://mirrors.aliyun.com/ubuntu focal-updates InRelease
命中:4 http://mirrors.aliyun.com/ubuntu focal-backports InRelease
命中:5 http://archive.canonical.com/ubuntu focal InRelease
命中:6 http://security.ubuntu.com/ubuntu focal-security InRelease
获取:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease [265 kB]
获取:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease [111 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease [98.3 kB]
获取:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRelease [107 kB]
忽略:11 https://mirrors.tuna.tsinghua.edu.cn/linuxmint ulyana InRelease
获取:12 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/main i386 Packages [718 kB]
获取:13 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/main amd64 Packages [970 kB]
获取:14 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/main Translation-zh_CN [113 kB]
获取:15 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/main Translation-en [506 kB]
获取:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/main amd64 DEP-11 Metadata [494 kB]
获取:17 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/restricted i386 Packages [8,112 B]
获取:18 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/restricted amd64 Packages [22.0 kB]
获取:19 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/restricted Translation-zh_CN [1,324 B]
获取:20 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/restricted Translation-en [6,212 B]
获取:21 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/universe i386 Packages [4,642 kB]
命中:22 https://mirrors.tuna.tsinghua.edu.cn/linuxmint ulyana Release
ok