mirror of
https://github.com/Kxsso/jcutmirror.git
synced 2026-03-27 15:27:02 +08:00
83 lines
3.0 KiB
Plaintext
83 lines
3.0 KiB
Plaintext
---
|
||
mirrorId: raspbian
|
||
---
|
||
|
||
import ConfigGenerator from '../../src/components/config-generator'
|
||
|
||
### Raspbian 简介
|
||
|
||
Raspbian 是专门用于 ARM 卡片式计算机 Raspberry Pi® “树莓派”的操作系统,
|
||
其基于 Debian 开发,针对 Raspberry Pi 硬件优化。
|
||
|
||
Raspbian 并非由树莓派的开发与维护机构 The Raspberry Pi Foundation
|
||
“树莓派基金会”官方支持。其维护者是一群 Raspberry Pi 硬件和 Debian 项目的爱好者。
|
||
|
||
注:Raspbian 系统由于从诞生开始就基于(为了 armhf,也必须基于)当时还是
|
||
testing 版本的 7.0/wheezy,所以 Raspbian 不倾向于使用 stable/testing
|
||
表示版本。
|
||
|
||
### 使用说明
|
||
|
||
首先通过 `uname -m` 确定你使用的系统的架构。
|
||
|
||
编辑镜像站后,请使用`sudo apt-get update`命令,更新软件源列表,同时检查您的编辑是否正确。
|
||
|
||
#### armv7l
|
||
|
||
export const osVersion = ['11', '10', '9'];
|
||
export const versionName = [
|
||
'Debian 11 (bullseye)',
|
||
'Debian 10 (buster)',
|
||
'Debian 9 (stretch)',
|
||
];
|
||
export const configGen = (version) => {
|
||
const versionMap = {
|
||
'9': 'stretch',
|
||
'10': 'buster',
|
||
'11': 'bullseye',
|
||
};
|
||
const release_name = versionMap[version];
|
||
return `deb https://mirrors.jcut.edu.cn/raspbian/raspbian/ ${release_name} main non-free contrib rpi
|
||
# deb-src https://mirrors.jcut.edu.cn/raspbian/raspbian/ ${release_name} main non-free contrib rpi
|
||
deb [arch=arm64] https://mirrors.jcut.edu.cn/raspbian/multiarch/ ${release_name} main
|
||
`;
|
||
}
|
||
|
||
编辑 `/etc/apt/sources.list` :
|
||
|
||
<ConfigGenerator
|
||
promptString=""
|
||
versionList={osVersion}
|
||
friendlyNameList={versionName}
|
||
configGen={configGen} />
|
||
|
||
|
||
注意:网址末尾的`raspbian`重复两次是必须的。因为 Raspbian 的仓库中除了 APT 软件源还包含其他代码。APT 软件源不在仓库的根目录,而在`raspbian/`子目录下。
|
||
|
||
#### aarch64
|
||
|
||
aarch64 用户可直接参考 [Debian 帮助](/docs/debian/)
|
||
|
||
#### raspberry 镜像
|
||
|
||
对于两个架构,编辑 `/etc/apt/sources.list.d/raspi.list` 文件,这需要查看 [Raspberrypi 帮助](/docs/raspberrypi/)。
|
||
|
||
|
||
### 相关链接
|
||
|
||
#### Raspbian 链接
|
||
|
||
* Raspbian 主页:[https://www.raspbian.org](https://www.raspbian.org)
|
||
* 文档:[https://www.raspbian.org/RaspbianDocumentation](https://www.raspbian.org/RaspbianDocumentation)
|
||
* Bug 反馈:[https://www.raspbian.org/RaspbianBugs](https://www.raspbian.org/RaspbianBugs)
|
||
* 镜像列表: [https://www.raspbian.org/RaspbianMirrors](https://www.raspbian.org/RaspbianMirrors)
|
||
|
||
#### 树莓派链接
|
||
|
||
* 树莓派基金会主页:[https://www.raspberrypi.org/](https://www.raspberrypi.org/)
|
||
* 树莓派基金会论坛 Raspberry Pi OS 版块:[https://raspberrypi.org/forums/viewforum.php?f=66](https://raspberrypi.org/forums/viewforum.php?f=66)
|
||
|
||
### 关于本文档
|
||
|
||
本文档内容的原始版本由 Raspberry Pi 中文社区“树莓爱好者论坛” 按照 [知识共享署名 - 非商业性使用 3.0 中国大陆许可协议](http://creativecommons.org/licenses/by-nc/3.0/cn/) 提供。
|