Skip to content

Commit

Permalink
Deploy docs from d100c9e
Browse files Browse the repository at this point in the history
yewq: update to bookworm (#234)

* update to bookworm

* Update source/raspberrypi.rst

Co-authored-by: taoky <[email protected]>

---------

Co-authored-by: taoky <[email protected]>
  • Loading branch information
web-flow and taoky authored Oct 15, 2023
1 parent c5c51e6 commit 2d1b902
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contributor.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ <h1>文档贡献者名单<a class="headerlink" href="#id1" title="此标题的
<li><p>bobby285271</p></li>
<li><p>cloudfstrife</p></li>
<li><p>cuihaoleo</p></li>
<li><p>CyanoHao</p></li>
<li><p>fz0000</p></li>
<li><p>gaoyifan</p></li>
<li><p>gloit042</p></li>
Expand All @@ -197,6 +196,7 @@ <h1>文档贡献者名单<a class="headerlink" href="#id1" title="此标题的
<li><p>volltin</p></li>
<li><p>XuehaiPan</p></li>
<li><p>yangxuan8282</p></li>
<li><p>yewq</p></li>
<li><p>ykla</p></li>
<li><p>yuanyiwei</p></li>
<li><p>z1645444</p></li>
Expand Down
14 changes: 9 additions & 5 deletions raspberrypi.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h2>使用说明<a class="headerlink" href="#id5" title="此标题的永久链
<p class="admonition-title">警告</p>
<p>操作前请做好相应备份</p>
</div>
<p>一般情况下,将 <code class="file docutils literal notranslate"><span class="pre">/etc/apt/sources.list.d/raspi.list</span></code> 文件中默认的源地址 <code class="docutils literal notranslate"><span class="pre">http://archive.raspberrypi.org/</span></code> 替换为 <code class="docutils literal notranslate"><span class="pre">http://mirrors.ustc.edu.cn/archive.raspberrypi.org/</span></code> 即可。</p>
<p>一般情况下,将 <code class="file docutils literal notranslate"><span class="pre">/etc/apt/sources.list.d/raspi.list</span></code> 文件中默认的源地址 <code class="docutils literal notranslate"><span class="pre">http://archive.raspberrypi.org/</span></code>(bullseye 及之前版本)或者 <code class="docutils literal notranslate"><span class="pre">http://archive.raspberrypi.com/</span></code>(bookworm 及之后版本)替换为 <code class="docutils literal notranslate"><span class="pre">http://mirrors.ustc.edu.cn/raspberrypi/</span></code> 即可。</p>
<p>可以使用如下命令:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="s1">&#39;s|//archive.raspberrypi.org|//mirrors.ustc.edu.cn/archive.raspberrypi.org|g&#39;</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">apt</span><span class="o">/</span><span class="n">sources</span><span class="o">.</span><span class="n">list</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">raspi</span><span class="o">.</span><span class="n">list</span>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">sed</span> \
<span class="o">-</span><span class="n">e</span> <span class="s1">&#39;s|http://archive.raspberrypi.org|http://mirrors.ustc.edu.cn/raspberrypi|g&#39;</span> \
<span class="o">-</span><span class="n">e</span> <span class="s1">&#39;s|http://archive.raspberrypi.com|http://mirrors.ustc.edu.cn/raspberrypi|g&#39;</span> \
<span class="o">-</span><span class="n">i</span><span class="o">.</span><span class="n">bak</span> \
<span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">apt</span><span class="o">/</span><span class="n">sources</span><span class="o">.</span><span class="n">list</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">raspi</span><span class="o">.</span><span class="n">list</span>
</pre></div>
</div>
<p>当然也可以直接编辑 <code class="file docutils literal notranslate"><span class="pre">/etc/apt/sources.list.d/raspi.list</span></code> 文件(需要使用 sudo)。以下是 Bullseye 的参考配置内容:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">ustc</span><span class="o">.</span><span class="n">edu</span><span class="o">.</span><span class="n">cn</span><span class="o">/</span><span class="n">archive</span><span class="o">.</span><span class="n">raspberrypi</span><span class="o">.</span><span class="n">org</span><span class="o">/</span><span class="n">debian</span><span class="o">/</span> <span class="n">bullseye</span> <span class="n">main</span> <span class="n">ui</span>
<span class="c1">#deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main ui</span>
<p>当然也可以直接编辑 <code class="file docutils literal notranslate"><span class="pre">/etc/apt/sources.list.d/raspi.list</span></code> 文件(需要使用 sudo)。以下是 bookworm 的参考配置内容:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">ustc</span><span class="o">.</span><span class="n">edu</span><span class="o">.</span><span class="n">cn</span><span class="o">/</span><span class="n">raspberrypi</span><span class="o">/</span><span class="n">debian</span><span class="o">/</span> <span class="n">bookworm</span> <span class="n">main</span>
<span class="c1">#deb-src http://mirrors.ustc.edu.cn/raspberrypi/debian/ bookworm main</span>
</pre></div>
</div>
<p>更改完 <code class="file docutils literal notranslate"><span class="pre">raspi.list</span></code> 文件后请运行 <code class="docutils literal notranslate"><span class="pre">sudo</span> <span class="pre">apt-get</span> <span class="pre">update</span></code> 更新索引以生效。</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 2d1b902

Please sign in to comment.