Linode Ubuntu在apt-get时卡住的解决方案
Linode Ubuntu在apt-get时卡住的解决方案
Sandy在使用linode时用apt-get经常会出现卡住的问题,看起来像是因为linode默认使用了ipv6的问题,于是使用以下命令试了一下ipv4会不会卡住:
apt-get -o Acquire::ForceIPv4=true update`</pre>
</div>
</div>
试过后发现果然不会出现卡住的问题了,于是编辑`/etc/apt/apt.conf.d/99force-ipv4`文件,内容如下:
<div>
<div id="highlighter_623309" class="syntaxhighlighter shell">
<pre class="pure-highlightjs">`Acquire::ForceIPv4 "true";
比较讽刺的是在vultr找到的解决方案,哈哈~~~
参考链接: https://www.vultr.com/docs/force-apt-get-to-ipv4-or-ipv6-on-ubuntu-or-debian
