avatar

目录
钉子户Ubuntu-disco强制拆迁记录

前言

我目前用的发行版还是Ubuntu 19.04,这几天在执行apt-get update的时候突然报错了:

shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% sudo apt update
Ign:1 http://security.ubuntu.com/ubuntu disco-security InRelease
Err:2 http://security.ubuntu.com/ubuntu disco-security Release
404 Not Found [IP: 91.189.91.38 80]
Ign:3 http://cn.archive.ubuntu.com/ubuntu disco InRelease
Ign:4 http://cn.archive.ubuntu.com/ubuntu disco-updates InRelease
Ign:5 http://cn.archive.ubuntu.com/ubuntu disco-backports InRelease
Err:6 http://cn.archive.ubuntu.com/ubuntu disco Release
404 Not Found [IP: 91.189.91.39 80]
Err:7 http://cn.archive.ubuntu.com/ubuntu disco-updates Release
404 Not Found [IP: 91.189.91.39 80]
Err:8 http://cn.archive.ubuntu.com/ubuntu disco-backports Release
404 Not Found [IP: 91.189.91.39 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu disco-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://cn.archive.ubuntu.com/ubuntu disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://cn.archive.ubuntu.com/ubuntu disco-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://cn.archive.ubuntu.com/ubuntu disco-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

从错误信息中不难猜出是19.04停止维护了,于是我去官方源看了一下:

果然19.04对应的版本disco已经不在官方源中了,所以update的时候会报404 Not Found

Code
1
2
Err:2 http://security.ubuntu.com/ubuntu disco-security Release
404 Not Found [IP: 91.189.91.38 80]

百度了一下,原来Ubuntu 19.04在今年1月份就不在支持了。

“从今天(2020年1月23日)开始,不再支持Ubuntu 19.04。“Canonical解释说,“不会再有软件包更新到19.04,并且它将在未来几周内存档到old-releases.ubuntu.com。”

截止到4月份,也就是前几天,官方才把disco的源正式删掉,同时存档到old-releases

多次劝说未果,遂强行搬家23333

这几天在度娘和谷哥上根据下面这两条报错信息,搜了半天也没解决

Code
1
2
E: The repository 'http://security.ubuntu.com/ubuntu disco-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

各种换源、加trust等等解决方法都没涉及到根本。。

后来自己思考了一下,404错误是因为没找到disco的源,原因是官方把disco归档到old-releases了,于是我去http://cn.old-released.archive.ubuntu.com/ubuntu/dists/找了找,果然看到了阵亡的disco,于是解决方法就有了,把source.list里原先所有的源都改成old-released的就可以了:

Code
1
2
3
4
5
6
7
8
9
10
11
12
deb http://old-released.archive.ubuntu.com/ubuntu disco main
deb-src http://old-released.archive.ubuntu.com/ubuntu disco main
deb http://old-released.archive.ubuntu.com/ubuntu disco-updates main
deb-src http://old-released.archive.ubuntu.com/ubuntu disco-updates main
deb http://old-released.archive.ubuntu.com/ubuntu disco universe
deb-src http://old-released.archive.ubuntu.com/ubuntu disco universe
deb http://old-released.archive.ubuntu.com/ubuntu disco-updates universe
deb-src http://old-released.archive.ubuntu.com/ubuntu disco-updates universe
deb http://old-released.archive.ubuntu.com/ubuntu disco-security main
deb-src http://old-released.archive.ubuntu.com/ubuntu disco-security main
deb http://old-released.archive.ubuntu.com/ubuntu disco-security universe
deb-src http://old-released.archive.ubuntu.com/ubuntu disco-security universe

改完之后apt-get update就正常了,不过这终归不是长久之计,我最终还是乖乖的去升级19.10了。。

对了20.04貌似再过一个月就正式发布了,到时候在更新一波叭。。

最后说一句…Ubuntu的奇数年是真的尴尬…

From https://ubuntu.com/about/release-cycle

对了dockerUbnutu 19.04应该也用不了了…… 最近要用这个image的小伙伴儿们改用19.10叭~

后记

好吧.. eoan不在支持gnome-open了,据说是15年就没人更新了,还出了不少bug,于是在19.10中就把libgnome2-bin这个包删了… 用惯了gnome-open,突然用不了了还真有点不习惯…

不过gnome-open可以用这两个命令替代

  • gvfs-open
  • gio open

功能差不多~

文章作者: TaQini
文章链接: http://taqini.space/2020/04/28/ubuntu-no-LTS-source/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 TaQini
打赏
  • Wechat
    Wechat
  • Alipay
    Alipay

评论