如何从Debian 9 Stretch升级到Debian10 Buster
<p>Let's first fully upgrade our current Debian Stretch system:</p><div class="cnblogs_Highlighter">
<pre class="brush:python;gutter:true;"># apt-get update
# apt-get upgrade
# apt-get dist-upgrade
</pre>
</div>
<p>Update Package Repository to Debian Buster</p>
<div class="cnblogs_Highlighter">
<pre class="brush:python;gutter:true;"># sed -i 's/stretch/buster/g' /etc/apt/sources.list
</pre>
</div>
<p>Your <code>/etc/apt/sources.list</code> should look similar to the one below:</p>
<div class="cnblogs_Highlighter">
<div class="cnblogs_Highlighter">
<pre class="brush:python;gutter:true;">deb https://mirrors.tuna.tsinghua.edu.cn/debian buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
</pre>
</div>
<p> </p>
<p><span style="background-color: rgba(255, 255, 255, 1); font-size: 14px">Once the above </span><code style="background-color: rgba(255, 255, 255, 1); font-size: 14px">/etc/apt/sources.list</code><span style="background-color: rgba(255, 255, 255, 1); font-size: 14px"> file edit is completed, use </span><code style="background-color: rgba(255, 255, 255, 1); font-size: 14px">apt-get</code><span style="background-color: rgba(255, 255, 255, 1); font-size: 14px"> command to update packages index:</span></p>
</div>
<div class="cnblogs_Highlighter">
<pre class="brush:python;gutter:true;">apt-get update
</pre>
</div>
<h2 id="h4-upgrade-to-debian-buster">Upgrade to Debian Buster</h2>
<p>The following below commands will upgrade your Debian 9 Stretch to Debian 10 Buster release.</p>
<div class="cnblogs_Highlighter">
<pre class="brush:python;gutter:true;"># apt-get upgrade
# apt-get dist-upgrade
</pre>
</div>
<p> </p><br><br>
来源:https://www.cnblogs.com/conpi/p/10901214.html
頁:
[1]