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) 的触发器 ...
相关推荐
bohu831 小时前
亚博microros小车-原生ubuntu支持系列:8-脸部检测与人脸特效
linux·opencv·ubuntu·dlib·microros·亚博
练小杰6 小时前
Linux系统 C/C++编程基础——基于Qt的图形用户界面编程
linux·c语言·c++·经验分享·qt·学习·编辑器
千航@abc8 小时前
vim在末行模式下的删除功能
linux·编辑器·vim
hunter2062068 小时前
ubuntu调用图形化网络测试工具
网络·测试工具·ubuntu
江西理工大学小杨9 小时前
VScode连接远程Linux服务器环境配置
ide·vscode·编辑器
jcrose25809 小时前
Ubuntu二进制部署K8S 1.29.2
linux·ubuntu·kubernetes
Gemma's diary11 小时前
Ubuntu开发中的问题
linux·运维·ubuntu
安冬的码畜日常12 小时前
【Vim Masterclass 笔记22】S09L40 + L41:同步练习11:Vim 的配置与 vimrc 文件的相关操作(含点评课内容)
笔记·vim·vim配置·vim同步练习·vim options·vim option-list
秋说12 小时前
本地Ubuntu轻松部署高效性能监控平台SigNoz与远程使用教程
linux·运维·ubuntu
莲动渔舟13 小时前
国产编辑器EverEdit - 命令窗口应用详解
编辑器·emeditor·everedit