ubuntu安装阿里云镜像地址
<h2 id="ubuntu安装阿里云镜像地址">Ubuntu安装阿里云镜像地址</h2><hr>
<ul>
<li>cd /etc/apt<br>
这个目录下的sources.list文件<br>
vim /etc/apt/sources.list</li>
</ul>
<hr>
<ul>
<li>使用dd全部删除,然后添加阿里云的镜像地址</li>
</ul>
<pre><code>deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
</code></pre>
<hr>
<p>腾讯云地址</p>
<pre><code>deb http://mirrors.cloud.tencent.com/ubuntu/ bionic main universe restricted multiverse
deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-security main universe restricted multiverse
deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-updates main universe restricted multiverse
deb http://mirrors.cloud.tencent.com/ubuntu/ bionic-backports main universe restricted multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic main universe restricted multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-security main universe restricted multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-updates main universe restricted multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ bionic-backports main universe restricted multiverse
</code></pre>
<hr>
<h2 id="如果出现错误httpmirrorsaliyuncomubuntu-bionic-inrelease由于没有公钥无法验证下列签名-no_pubkey-3b4fe6acc0b21f32因为没有导入公钥">如果出现<br>
错误:http://mirrors.aliyun.com/ubuntu bionic InRelease<br>
由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32<br>
因为没有导入公钥</h2>
<h2 id="解决办法">解决办法</h2>
<hr>
<pre><code>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 3B4FE6ACC0B21F32 3B4FE6ACC0B21F323B4FE6ACC0B21F32
</code></pre>
<hr>
</div>
<div id="MySignature" role="contentinfo">
我们都只是茫茫星辰中的一粒沙。<br><br>
来源:https://www.cnblogs.com/yjp372928571/p/12510033.html
頁:
[1]