mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
help: raspbian: update on aarch64
Closes https://github.com/tuna/issues/issues/1472
This commit is contained in:
parent
d83b846677
commit
aa6c8768f9
|
|
@ -18,15 +18,13 @@ Raspbian 并非由树莓派的开发与维护机构 The Raspberry Pi Foundation
|
|||
|
||||
架构:
|
||||
|
||||
* arm64
|
||||
* armhf
|
||||
|
||||
版本:
|
||||
|
||||
* wheezy
|
||||
* jessie
|
||||
* stretch
|
||||
* buster
|
||||
* bullseye
|
||||
|
||||
注:Raspbian 系统由于从诞生开始就基于(为了armhf,也必须基于)当时还是
|
||||
testing 版本的 7.0/wheezy,所以 Raspbian 不倾向于使用 stable/testing
|
||||
|
|
@ -34,30 +32,40 @@ testing 版本的 7.0/wheezy,所以 Raspbian 不倾向于使用 stable/testing
|
|||
|
||||
### 使用说明
|
||||
|
||||
首先通过 `uname -m` 确定你使用的系统的架构。
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的 Raspbian 对应的 Debian 版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-release="stretch">Debian 9 (stretch)</option>
|
||||
<option data-release="buster">Debian 10 (buster)</option>
|
||||
<option data-release="bullseye" selected>Debian 11 (bullseye)</option>
|
||||
<option data-release="stretch" data-security="/updates">Debian 9 (stretch)</option>
|
||||
<option data-release="buster" data-security="/updates">Debian 10 (buster)</option>
|
||||
<option data-release="bullseye" data-security="-security" selected>Debian 11 (bullseye)</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
# 编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代:
|
||||
deb [arch=armhf] http://{%endraw%}{{ site.hostname }}{%raw%}/raspbian/raspbian/ {{release_name}} main non-free contrib rpi
|
||||
deb-src http://{%endraw%}{{ site.hostname }}{%raw%}/raspbian/raspbian/ {{release_name}} main non-free contrib rpi
|
||||
# armv7l 用户:编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代
|
||||
deb http://{%endraw%}{{ site.hostname }}{%raw%}/raspbian/raspbian/ {{release_name}} main non-free contrib rpi
|
||||
# deb-src http://{%endraw%}{{ site.hostname }}{%raw%}/raspbian/raspbian/ {{release_name}} main non-free contrib rpi
|
||||
|
||||
# 如果需要 arm64 软件源,在 `/etc/apt/sources.list` 中加上
|
||||
# armv7l 用户如果需要开启 multi-arch 使用 arm64 软件源,需要在 `/etc/apt/sources.list` 中加上
|
||||
deb [arch=arm64] http://{%endraw%}{{ site.hostname }}{%raw%}/raspbian/multiarch/ {{release_name}} main
|
||||
|
||||
# 编辑 `/etc/apt/sources.list.d/raspi.list` 文件,删除原文件所有内容,用以下内容取代:
|
||||
# aarch64 用户:编辑 `/etc/apt/sources.list` 文件,用以下内容取代:
|
||||
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}} main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}} main contrib non-free
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-updates main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-updates main contrib non-free
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-backports main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian/ {{release_name}}-backports main contrib non-free
|
||||
deb https://{%endraw%}{{ site.hostname }}{%raw%}/debian-security {{release_name}}{{release_security}} main contrib non-free
|
||||
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/debian-security {{release_name}}{{release_security}} main contrib non-free
|
||||
|
||||
# 对于两个架构,编辑 `/etc/apt/sources.list.d/raspi.list` 文件,删除原文件所有内容,用以下内容取代:
|
||||
deb http://{%endraw%}{{ site.hostname }}{%raw%}/raspberrypi/ {{release_name}} main
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue