ubuntu apt 换源
<p>修改配置文件/etc/apt/sources.list</p><p>内容替换为</p>
<p>阿里镜像源</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/ vivid main restricted universe multiverse</span>
deb http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse</span>
deb http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse</span>
deb http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse</span>
deb http:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">mirrors.aliyun.com/ubuntu/ vivid-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/ vivid 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/ vivid-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/ vivid-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/ vivid-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/ vivid-backports main restricted universe multiverse12345678910</span></pre>
</div>
<p>执行,正常则表示成功</p>
<div class="cnblogs_code">
<pre>apt-get update</pre>
</div>
<p>安装tree,用于查看目录</p>
<div class="cnblogs_code">
<pre>apt-get <span style="color: rgba(0, 0, 255, 1)">install</span> tree</pre>
</div>
<p> </p><br><br>
来源:https://www.cnblogs.com/huay/p/11351064.html
頁:
[1]