linux mint环境sudo apt-get update出现错误

忽略: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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值