ubuntu20.04“E: 软件包 vim 没有可安装候选”“/etc/apt/sources.list:7 中被配置了多次”解决方法

问题一:ubuntu20.04安装vim时提示"E: 软件包 vim 没有可安装候选"

**解决:**更换下载,比如我原先使用的是清华源,后切换成阿里云源,ubuntu直接在"软件和更新"切换

问题一解决。

问题二:ubuntu20.04提示"W: 目标 Sources (main/source/Sources) 在 /etc/apt/sources.list:2 和 /etc/apt/sources.list:7 中被配置了多次"

**解决:**直接更新下载源:sudo apt upgrade

问题二解决。

运行log:

bash 复制代码
h@h-virtual-machine:~/work$ sudo apt install vim
[sudo] h 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
没有可用的软件包 vim,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

W: 目标 Sources (main/source/Sources) 在 /etc/apt/sources.list:2 和 /etc/apt/sources.list:7 中被配置了多次
E: 软件包 vim 没有可安装候选
h@h-virtual-machine:~/work$ sudo apt update
获取:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal InRelease [265 kB]
获取:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates InRelease [114 kB]
获取:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports InRelease [108 kB]
获取:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security InRelease [114 kB]
获取:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main Sources [847 kB]
获取:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe Sources [9,707 kB]
获取:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted Sources [6,472 B]
获取:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse Sources [174 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages [970 kB]
忽略:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages
获取:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages [718 kB]
获取:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages [718 kB]
获取:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages [718 kB]
获取:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages [718 kB]
获取:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages [718 kB]
获取:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages [718 kB]
忽略:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages
忽略:45 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted i386 Packages
忽略:46 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted amd64 Packages
忽略:47 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe i386 Packages
忽略:48 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe amd64 Packages
忽略:49 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse amd64 Packages
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
获取:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages [74.7 kB]
忽略:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages
忽略:67 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main amd64 Packages
忽略:68 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main i386 Packages
忽略:69 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted amd64 Packages
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
获取:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages [37.3 kB]
忽略:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages
获取:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe i386 Packages [776 kB]
获取:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe i386 Packages [776 kB]
忽略:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe i386 Packages
获取:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe amd64 Packages [1,170 kB]
获取:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe amd64 Packages [1,170 kB]
忽略:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe amd64 Packages
获取:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages [26.1 kB]
获取:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages [26.1 kB]
获取:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages [26.1 kB]
获取:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages [26.1 kB]
获取:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages [26.1 kB]
获取:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages [26.1 kB]
忽略:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages
忽略:98 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse i386 Packages
忽略:99 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main i386 Packages
忽略:100 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main amd64 Packages
获取:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages [25.0 kB]
获取:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages [25.0 kB]
获取:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages [25.0 kB]
获取:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages [25.0 kB]
获取:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages [25.0 kB]
获取:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages [25.0 kB]
获取:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages [25.0 kB]
获取:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages [25.0 kB]
忽略:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages
忽略:110 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe i386 Packages
忽略:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages
忽略:111 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main i386 Packages
忽略:112 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main amd64 Packages
忽略:113 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted amd64 Packages
获取:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages [36.0 kB]
获取:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages [36.0 kB]
获取:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages [36.0 kB]
获取:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages [36.0 kB]
获取:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages [36.0 kB]
获取:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages [36.0 kB]
忽略:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages
忽略:121 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe amd64 Packages
忽略:122 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe i386 Packages
忽略:123 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse amd64 Packages
忽略:124 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse i386 Packages
忽略:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages
忽略:45 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted i386 Packages
忽略:46 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted amd64 Packages
忽略:47 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe i386 Packages
忽略:48 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe amd64 Packages
忽略:49 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse amd64 Packages
忽略:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages
忽略:67 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main amd64 Packages
忽略:68 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main i386 Packages
忽略:69 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted amd64 Packages
忽略:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages
忽略:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe i386 Packages
忽略:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe amd64 Packages
忽略:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages
忽略:98 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse i386 Packages
忽略:99 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main i386 Packages
忽略:100 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main amd64 Packages
忽略:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages
忽略:110 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe i386 Packages
忽略:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages
忽略:111 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main i386 Packages
忽略:112 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main amd64 Packages
忽略:113 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted amd64 Packages
忽略:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages
忽略:121 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe amd64 Packages
忽略:122 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe i386 Packages
忽略:123 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse amd64 Packages
忽略:124 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse i386 Packages
忽略:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages
忽略:45 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted i386 Packages
忽略:46 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted amd64 Packages
忽略:47 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe i386 Packages
忽略:48 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe amd64 Packages
忽略:49 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse amd64 Packages
忽略:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages
忽略:67 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main amd64 Packages
忽略:68 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main i386 Packages
忽略:69 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted amd64 Packages
忽略:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages
忽略:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe i386 Packages
忽略:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe amd64 Packages
忽略:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages
忽略:98 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse i386 Packages
忽略:99 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main i386 Packages
忽略:100 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main amd64 Packages
忽略:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages
忽略:110 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe i386 Packages
忽略:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages
忽略:111 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main i386 Packages
忽略:112 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main amd64 Packages
忽略:113 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted amd64 Packages
忽略:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages
忽略:121 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe amd64 Packages
忽略:122 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe i386 Packages
忽略:123 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse amd64 Packages
忽略:124 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse i386 Packages
忽略:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages
忽略:45 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted i386 Packages
忽略:46 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted amd64 Packages
忽略:47 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe i386 Packages
忽略:48 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe amd64 Packages
忽略:49 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse amd64 Packages
忽略:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages
忽略:67 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main amd64 Packages
忽略:68 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main i386 Packages
忽略:69 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted amd64 Packages
忽略:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages
忽略:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe i386 Packages
忽略:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe amd64 Packages
忽略:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages
忽略:98 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse i386 Packages
忽略:99 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main i386 Packages
忽略:100 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main amd64 Packages
忽略:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages
忽略:110 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe i386 Packages
忽略:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages
忽略:111 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main i386 Packages
忽略:112 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main amd64 Packages
忽略:113 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted amd64 Packages
忽略:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages
忽略:121 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe amd64 Packages
忽略:122 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe i386 Packages
忽略:123 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse amd64 Packages
忽略:124 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse i386 Packages
忽略:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages
忽略:45 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted i386 Packages
忽略:46 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted amd64 Packages
忽略:47 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe i386 Packages
忽略:48 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe amd64 Packages
忽略:49 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse amd64 Packages
忽略:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/multiverse i386 Packages
忽略:67 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main amd64 Packages
忽略:68 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main i386 Packages
忽略:69 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted amd64 Packages
忽略:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages
忽略:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe i386 Packages
忽略:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe amd64 Packages
忽略:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages
忽略:98 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse i386 Packages
忽略:99 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main i386 Packages
忽略:100 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main amd64 Packages
忽略:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages
忽略:110 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe i386 Packages
错误:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main amd64 Packages
  404  Not Found [IP: 101.6.15.130 443]
忽略:111 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main i386 Packages
忽略:112 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main amd64 Packages
忽略:113 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted amd64 Packages
忽略:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages
忽略:121 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe amd64 Packages
忽略:122 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe i386 Packages
忽略:123 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse amd64 Packages
忽略:124 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse i386 Packages
忽略:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main i386 Packages
忽略:45 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/restricted i386 Packages
错误:67 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main amd64 Packages
  404  Not Found [IP: 101.6.15.130 443]
忽略:68 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main i386 Packages
忽略:69 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted amd64 Packages
忽略:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/restricted i386 Packages
忽略:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe i386 Packages
忽略:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/universe amd64 Packages
忽略:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse amd64 Packages
忽略:98 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/multiverse i386 Packages
错误:99 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main i386 Packages
  404  Not Found [IP: 101.6.15.130 443]
忽略:100 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/main amd64 Packages
忽略:101 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe amd64 Packages
忽略:110 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports/universe i386 Packages
错误:111 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main i386 Packages
  404  Not Found [IP: 101.6.15.130 443]
忽略:112 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/main amd64 Packages
忽略:113 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted amd64 Packages
忽略:114 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/restricted i386 Packages
忽略:121 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe amd64 Packages
忽略:122 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/universe i386 Packages
忽略:123 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse amd64 Packages
忽略:124 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security/multiverse i386 Packages
正在读取软件包列表... 完成                              
W: 目标 Sources (main/source/Sources) 在 /etc/apt/sources.list:2 和 /etc/apt/sources.list:7 中被配置了多次
E: 无法下载 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal/main/binary-amd64/Packages  404  Not Found [IP: 101.6.15.130 443]
E: 无法下载 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-updates/main/binary-amd64/Packages  404  Not Found [IP: 101.6.15.130 443]
E: 无法下载 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-backports/main/binary-i386/Packages  404  Not Found [IP: 101.6.15.130 443]
E: 无法下载 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-security/main/binary-i386/Packages  404  Not Found [IP: 101.6.15.130 443]
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
W: 目标 Sources (main/source/Sources) 在 /etc/apt/sources.list:2 和 /etc/apt/sources.list:7 中被配置了多次
h@h-virtual-machine:~/work$ sudo apt upgrad
E: 无效的操作 upgrad
h@h-virtual-machine:~/work$ sudo apt upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在计算更新... 完成
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
h@h-virtual-machine:~/work$ sudo apt install vim
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
没有可用的软件包 vim,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 vim 没有可安装候选
h@h-virtual-machine:~/work$ sudo apt install vim
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  vim-common vim-runtime vim-tiny
建议安装:
  ctags vim-doc vim-scripts indent
下列【新】软件包将被安装:
  vim vim-runtime
下列软件包将被升级:
  vim-common vim-tiny
升级了 2 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 286 个软件包未被升级。
需要下载 7,121 kB/7,791 kB 的归档。
解压缩后会消耗 34.6 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 vim-runtime all 2:8.1.2269-1ubuntu5.21 [5,878 kB]
获取:2 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 vim amd64 2:8.1.2269-1ubuntu5.21 [1,243 kB]
已下载 7,121 kB,耗时 1秒 (5,337 kB/s)
(正在读取数据库 ... 系统当前共安装有 183746 个文件和目录。)
准备解压 .../vim-tiny_2%3a8.1.2269-1ubuntu5.21_amd64.deb  ...
正在解压 vim-tiny (2:8.1.2269-1ubuntu5.21) 并覆盖 (2:8.1.2269-1ubuntu5.11)
 ...
准备解压 .../vim-common_2%3a8.1.2269-1ubuntu5.21_all.deb  ...
正在解压 vim-common (2:8.1.2269-1ubuntu5.21) 并覆盖 (2:8.1.2269-1ubuntu5.1
1) ...
正在选中未选择的软件包 vim-runtime。
准备解压 .../vim-runtime_2%3a8.1.2269-1ubuntu5.21_all.deb  ...
正在添加 通过 vim-runtime 从 /usr/share/vim/vim81/doc/help.txt 到 /usr/sha
re/vim/vim81/doc/help.txt.vim-tiny 的转移
正在添加 通过 vim-runtime 从 /usr/share/vim/vim81/doc/tags 到 /usr/share/v
im/vim81/doc/tags.vim-tiny 的转移
正在解压 vim-runtime (2:8.1.2269-1ubuntu5.21) ...
正在选中未选择的软件包 vim。
准备解压 .../vim_2%3a8.1.2269-1ubuntu5.21_amd64.deb  ...
正在解压 vim (2:8.1.2269-1ubuntu5.21) ...
正在设置 vim-common (2:8.1.2269-1ubuntu5.21) ...
正在设置 vim-runtime (2:8.1.2269-1ubuntu5.21) ...
正在设置 vim (2:8.1.2269-1ubuntu5.21) ...
update-alternatives: 使用 /usr/bin/vim.basic 来在自动模式中提供 /usr/bin/v
im (vim)
update-alternatives: 使用 /usr/bin/vim.basic 来在自动模式中提供 /usr/bin/v
imdiff (vimdiff)
update-alternatives: 使用 /usr/bin/vim.basic 来在自动模式中提供 /usr/bin/r
vim (rvim)
update-alternatives: 使用 /usr/bin/vim.basic 来在自动模式中提供 /usr/bin/r
view (rview)
update-alternatives: 使用 /usr/bin/vim.basic 来在自动模式中提供 /usr/bin/v
i (vi)
update-alternatives: 使用 /usr/bin/vim.basic 来在自动模式中提供 /usr/bin/v
iew (view)
update-alternatives: 使用 /usr/bin/vim.basic 来在自动模式中提供 /usr/bin/e
x (ex)
正在设置 vim-tiny (2:8.1.2269-1ubuntu5.21) ...
正在处理用于 desktop-file-utils (0.24-1ubuntu3) 的触发器 ...
正在处理用于 mime-support (3.64ubuntu1) 的触发器 ...
正在处理用于 hicolor-icon-theme (0.17-2) 的触发器 ...
正在处理用于 gnome-menus (3.36.0-1ubuntu1) 的触发器 ...
正在处理用于 man-db (2.9.1-1) 的触发器 ...
相关推荐
大妞几秒前
ubuntu20.04 install vscode[ROS]
ubuntu
乐闻x几秒前
VSCode 插件开发实战(六):配置自定义状态栏
ide·vscode·编辑器
张明奇-琦玉1 分钟前
vscode添加全局宏定义
ide·vscode·编辑器
星星不说话~5 分钟前
VScode在远程服务器上安装Anaconda并确认安装成功的步骤
ide·vscode·编辑器
ac.char36 分钟前
在 Ubuntu 下使用 Tauri 打包 EXE 应用
linux·运维·ubuntu
小燚~1 小时前
ubuntu开机进入initramfs状态
linux·运维·ubuntu
hhhhhhh_hhhhhh_2 小时前
ubuntu18.04连接不上网络问题
linux·运维·ubuntu
jinhuazhe201311 小时前
如何解决vscode powershell乱码
ide·vscode·编辑器
White_Mountain12 小时前
在Ubuntu中配置mysql,并允许外部访问数据库
数据库·mysql·ubuntu
coder_pig13 小时前
📝小记:Ubuntu 部署 Jenkins 打包 Flutter APK
flutter·ubuntu·jenkins