ubuntu添加阿里源 失敗


環境 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,就可以正常使用了。






免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM