查看: 34|回覆: 0

[Ubuntu] ubuntu添加阿里源 失败

[複製鏈接]

4

主題

0

回帖

0

積分

热心网友

金币
0
閲讀權限
220
精華
0
威望
0
贡献
0
在線時間
0 小時
註冊時間
2010-4-14
發表於 2020-4-18 18:19:00 | 顯示全部樓層 |閲讀模式

环境 ubuntu 19.04

日期2020/04/18

 

更新软件失败,以为是源的问题 ,所以尝试 修改 源为 国内阿里源

查看 系统版本

lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 19.04
Release:    19.04
Codename:    disco

其中的codename是这个版本的系统别名

查看阿里源

http://mirrors.aliyun.com/ubuntu/dists/

发现如下内容,以为支持,所以更换阿里源

disco/                                             14-Apr-2020 20:23                   -
disco-backports/                                   14-Apr-2020 20:24                   -
disco-proposed/                                    14-Apr-2020 20:24                   -
disco-security/                                    14-Apr-2020 20:24                   -
disco-updates/                                     14-Apr-2020 20:23                   -

结果报错,阿里源 也不是所有版本都支持
Ign:1 http://mirrors.aliyun.com/ubuntu/dists artful InRelease
Ign:2 http://mirrors.aliyun.com/ubuntu/dists artful-security InRelease
Ign:3 http://mirrors.aliyun.com/ubuntu/dists artful-updates InRelease
Ign:4 http://mirrors.aliyun.com/ubuntu/dists artful-backports InRelease
Ign:5 http://mirrors.aliyun.com/ubuntu/dists artful-proposed InRelease
Err:6 http://mirrors.aliyun.com/ubuntu/dists artful Release
  404  Not Found [IP: 183.240.176.117 80]
Err:7 http://mirrors.aliyun.com/ubuntu/dists artful-security Release
  404  Not Found [IP: 183.240.176.117 80]
Err:8 http://mirrors.aliyun.com/ubuntu/dists artful-updates Release
  404  Not Found [IP: 183.240.176.117 80]
Err:9 http://mirrors.aliyun.com/ubuntu/dists artful-backports Release
  404  Not Found [IP: 183.240.176.117 80]
Err:10 http://mirrors.aliyun.com/ubuntu/dists artful-proposed Release
  404  Not Found [IP: 183.240.176.117 80]
Reading package lists... Done
E: The repository 'http://mirrors.aliyun.com/ubuntu/dists artful 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://mirrors.aliyun.com/ubuntu/dists artful-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://mirrors.aliyun.com/ubuntu/dists artful-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://mirrors.aliyun.com/ubuntu/dists artful-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.
E: The repository 'http://mirrors.aliyun.com/ubuntu/dists artful-proposed 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这个版本 已经不支持了,所以更改,源文件的地址为
deb http://cn.archive.ubuntu.com/ubuntu/
deb http://old-releases.ubuntu.com/ubuntu/

之后 sudo apt update,就可以正常使用了。







来源:https://www.cnblogs.com/zhaoxizhong/p/12727289.html
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即注册

本版積分規則

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部