Ubuntu apt update卡在Connecting to security.ubuntu.com解决方法
<p>Ubuntu操作系统运行apt update命令时会卡在Connecting to security.ubuntu.com,搭了梯子也无法解决<br><img src="https://upload-images.jianshu.io/upload_images/20272378-41171ef5e40f9fab.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="" loading="lazy"></p>
<p>尝试了网络上的方法,如:<br>
https://blog.csdn.net/v6543210/article/details/81562266<br>
https://ubuntuqa.com/article/1400.html<br>
但这些方法是解决由于访问security.ubuntu.com ipv6地址造成的无法访问的问题,所以对于我的问题并不管用。</p>
<p>后来通过网站 https://www.easycounter.com/report/security.ubuntu.com 查询到了security.ubuntu.com的DNS records</p>
<p><img src="https://upload-images.jianshu.io/upload_images/20272378-523355284645c770.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="" loading="lazy"></p>
<p>然后</p>
<pre><code>sudo vi /etc/hosts
</code></pre>
<p>修改security.ubuntu.com的DNS为网站中查询到的任意值</p>
<p>重新运行</p>
<pre><code>sudo apt update
</code></pre>
<p>就可以解决问题了</p><br><br>
来源:https://www.cnblogs.com/brianleelxt/p/13216429.html
頁:
[1]