Ubuntu Faq

do-release-upgrade 之后出现的无官方镜像源的提示

我们为了加速云机的软件更新速度, 常常将三方源更新为清华或者阿里云, 并同时禁用掉官方的源, 于是在升级的时候便会有这样的提示

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done

Invalid package information

After updating your package information, the essential package
'ubuntu-minimal' could not be located. This may be because you have
no official mirrors listed in your software sources, or because of
excessive load on the mirror you are using. See /etc/apt/sources.list
for the current list of configured software sources.
In the case of an overloaded mirror, you may want to try the upgrade
again later.

解决:
/etc/apt/sources.list中添加一行

1
deb http://archive.ubuntu.com/ubuntu bionic universe main

这里的 bionic 根据系统的版本进行不同的命名替换, 然后再运行即可

1
# do-release-upgrade

语雀镜像 : Ubuntu Faq ,点此 提问

作者

Duoli

发布于

2022-10-25

更新于

2022-10-25

许可协议

评论