ubuntu 使用阿里云 apt 源
<p>以下内容来自 https://opsx.alibaba.com/mirror Ubuntu对应的“帮助”信息</p><div class="cnblogs_code">
<pre>修改方式:打开 /et/apt/<span style="color: rgba(0, 0, 0, 1)">sources.list
将<br>http:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">archive.ubuntu.com/<br>替换为<br>mirrors.aliyun.com<br>即可</span></pre>
</div>
<p> </p>
<div class="cnblogs_code">
<pre>PS:网络上的信息,一定得注意时效性。以下内容,均为此时此刻。</pre>
</div>
<p> </p>
<p>以Ubuntu 14.04.5 LTS为例,最后的效果如下:</p>
<div class="cnblogs_code">
<pre>deb https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse</span>
deb-src https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse</span>
deb https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse</span>
deb-src https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse</span>
<span style="color: rgba(0, 0, 0, 1)">
deb https:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse</span>
deb-src https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse</span>
<span style="color: rgba(0, 0, 0, 1)">
deb https:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse</span>
deb-src https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse</span>
<span style="color: rgba(0, 0, 0, 1)">
## Not recommended
# deb https:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse</span>
# deb-src https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse</span></pre>
</div>
<p>ubuntu 16.04 配置如下:</p>
<div class="cnblogs_code">
<pre>deb http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial main</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial main</span>
<span style="color: rgba(0, 0, 0, 1)">
deb http:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial-updates main</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial-updates main</span>
<span style="color: rgba(0, 0, 0, 1)">
deb http:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial universe</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial universe</span>
deb http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial-updates universe</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial-updates universe</span>
<span style="color: rgba(0, 0, 0, 1)">
deb http:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial-security main</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial-security main</span>
deb http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial-security universe</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ xenial-security universe</span></pre>
</div>
<p>ubuntu 18.04(bionic) 配置如下</p>
<div class="cnblogs_code">
<pre>deb http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse</span>
<span style="color: rgba(0, 0, 0, 1)">
deb http:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse</span>
<span style="color: rgba(0, 0, 0, 1)">
deb http:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse</span>
<span style="color: rgba(0, 0, 0, 1)">
deb http:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse</span>
<span style="color: rgba(0, 0, 0, 1)">
deb http:</span><span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse</span>
deb-src http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse</span></pre>
</div><br><br>
来源:https://www.cnblogs.com/legand/p/10966467.html
頁:
[1]