ubuntu添加阿里源 失败
<p>环境 ubuntu 19.04</p><p>日期2020/04/18</p>
<p> </p>
<p>更新软件失败,以为是源的问题 ,所以尝试 修改 源为 国内阿里源</p>
<p>查看 系统版本</p>
<p>lsb_release -a<br>No LSB modules are available.<br>Distributor ID: Ubuntu<br>Description: Ubuntu 19.04<br>Release: 19.04<br>Codename: <span style="color: rgba(255, 0, 0, 1)">disco</span><br><br></p>
<p>其中的codename是这个版本的系统别名</p>
<p>查看阿里源</p>
<p>http://mirrors.aliyun.com/ubuntu/dists/</p>
<p>发现如下内容,以为支持,所以更换阿里源</p>
<pre>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 -<br><br>结果报错,阿里源 也不是所有版本都支持<br>Ign:1 http://mirrors.aliyun.com/ubuntu/dists artful InRelease<br>Ign:2 http://mirrors.aliyun.com/ubuntu/dists artful-security InRelease<br>Ign:3 http://mirrors.aliyun.com/ubuntu/dists artful-updates InRelease<br>Ign:4 http://mirrors.aliyun.com/ubuntu/dists artful-backports InRelease<br>Ign:5 http://mirrors.aliyun.com/ubuntu/dists artful-proposed InRelease<br>Err:6 http://mirrors.aliyun.com/ubuntu/dists artful Release<br> 404 Not Found <br>Err:7 http://mirrors.aliyun.com/ubuntu/dists artful-security Release<br> 404 Not Found <br>Err:8 http://mirrors.aliyun.com/ubuntu/dists artful-updates Release<br> 404 Not Found <br>Err:9 http://mirrors.aliyun.com/ubuntu/dists artful-backports Release<br> 404 Not Found <br>Err:10 http://mirrors.aliyun.com/ubuntu/dists artful-proposed Release<br> 404 Not Found <br>Reading package lists... Done<br>E: The repository 'http://mirrors.aliyun.com/ubuntu/dists artful Release' does not have a Release file.<br>N: Updating from such a repository can't be done securely, and is therefore disabled by default.<br>N: See apt-secure(8) manpage for repository creation and user configuration details.<br>E: The repository 'http://mirrors.aliyun.com/ubuntu/dists artful-security Release' does not have a Release file.<br>N: Updating from such a repository can't be done securely, and is therefore disabled by default.<br>N: See apt-secure(8) manpage for repository creation and user configuration details.<br>E: The repository 'http://mirrors.aliyun.com/ubuntu/dists artful-updates Release' does not have a Release file.<br>N: Updating from such a repository can't be done securely, and is therefore disabled by default.<br>N: See apt-secure(8) manpage for repository creation and user configuration details.<br>E: The repository 'http://mirrors.aliyun.com/ubuntu/dists artful-backports Release' does not have a Release file.<br>N: Updating from such a repository can't be done securely, and is therefore disabled by default.<br>N: See apt-secure(8) manpage for repository creation and user configuration details.<br>E: The repository 'http://mirrors.aliyun.com/ubuntu/dists artful-proposed Release' does not have a Release file.<br>N: Updating from such a repository can't be done securely, and is therefore disabled by default.<br>N: See apt-secure(8) manpage for repository creation and user configuration details.<br><br><br>19.04这个版本 已经不支持了,所以更改,源文件的地址为 <br>deb http://cn.archive.ubuntu.com/ubuntu/<br>deb http://old-releases.ubuntu.com/ubuntu/<br><br>之后 sudo apt update,就可以正常使用了。<br><br><br><br><br><br></pre><br><br>
来源:https://www.cnblogs.com/zhaoxizhong/p/12727289.html
頁:
[1]