<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>対処方法 on kenji.blog</title><link>http://kenji.blog/pt/tags/%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95/</link><description>Recent content in 対処方法 on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>pt</language><copyright>kenjinote</copyright><lastBuildDate>Sun, 31 Mar 2024 16:57:33 +0900</lastBuildDate><atom:link href="http://kenji.blog/pt/tags/%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95/index.xml" rel="self" type="application/rss+xml"/><item><title>Como resolver o erro 'Temporary failure resolving...' no wsl</title><link>http://kenji.blog/pt/p/wsl-%E3%81%A7temporary-failure-resolving%E3%81%A8%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AE%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95/</link><pubDate>Sun, 31 Mar 2024 16:57:33 +0900</pubDate><guid>http://kenji.blog/pt/p/wsl-%E3%81%A7temporary-failure-resolving%E3%81%A8%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AE%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95/</guid><description>&lt;img src="http://kenji.blog/p/wsl-%E3%81%A7temporary-failure-resolving%E3%81%A8%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AE%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95/img.png" alt="Featured image of post Como resolver o erro 'Temporary failure resolving...' no wsl" />&lt;h1 id="como-resolver-o-erro-temporary-failure-resolving-no-wsl">Como resolver o erro &amp;lsquo;Temporary failure resolving&amp;hellip;&amp;rsquo; no wsl
&lt;/h1>&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">kenji@MyComputer:~$ sudo apt update
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">[sudo] password for kenji:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> Temporary failure resolving &amp;#39;archive.ubuntu.com&amp;#39;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Quando o erro acima é exibido no wsl, as configurações do servidor DNS podem estar incorretas.
No meu ambiente, foi resolvido com os seguintes passos.&lt;/p>
&lt;ol>
&lt;li>Inicie o wsl.&lt;/li>
&lt;li>Execute &lt;code>sudo nano /etc/resolv.conf&lt;/code>.&lt;/li>
&lt;li>Altere a linha &lt;code>nameserver&lt;/code> da seguinte forma:&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">nameserver 8.8.8.8
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;ol start="4">
&lt;li>Salve com &lt;code>Ctrl&lt;/code> + &lt;code>S&lt;/code> e saia com &lt;code>Ctrl&lt;/code> + &lt;code>X&lt;/code>.&lt;/li>
&lt;li>Execute &lt;code>sudo apt update&lt;/code>.&lt;/li>
&lt;li>Se o erro não for exibido, está resolvido.&lt;/li>
&lt;/ol>
&lt;h2 id="se-não-for-resolvido-com-os-passos-acima">Se não for resolvido com os passos acima
&lt;/h2>&lt;p>Parece que há casos em que não é resolvido com os passos acima. Consulte o artigo a seguir.&lt;/p>
&lt;ul>
&lt;li>&lt;a class="link" href="https://qiita.com/ryosukeYamazaki/items/c04ec3ff78aac6eb8d26" target="_blank" rel="noopener"
>Como resolver &amp;lsquo;Temporary failure resolving&amp;hellip;&amp;rsquo; durante o apt update no WSL&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>