# Debian源使用帮助

## Debian 源使用帮助

## 地址

<https://mirrors.shuosc.cn/debian/>

## 说明

**Debian** 软件源

## 收录架构

**Debian** 支持的所有架构，如 **AMD64 (x86\_64), Intel x86, ARM, MIPS, ppc64el, s390x** 等

## 收录版本

**Debian Old Stable, Stable, Testing, Unstable(sid)**

当前 **Stable** 为 **Debian 8**,代号为 **Jessie**

## 使用说明

> 提示：操作前请做好相应备份

一般情况下，将 `/etc/apt/sources.list` 文件中 **Debian** 默认的源地址 <http://httpredir.debian.org/> 替换为 <http://mirrors.shuosc.cn> 即可。

可以使用如下命令：

```bash
sudo sed -i 's/httpredir.debian.org/mirrors.shuosc.cn/g' /etc/apt/sources.list
```

当然也可以直接编辑 `/etc/apt/sources.list` 文件（需要使用`sudo`）。以下是 **Debian Stable** 参考配置内容：

```
deb http://mirrors.shuosc.cn/debian stable main contrib non-free
# deb-src http://mirrors.shuosc.cn/debian stable main contrib non-free
deb http://mirrors.shuosc.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.shuosc.cn/debian stable-updates main contrib non-free

# deb http://mirrors.shuosc.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.shuosc.cn/debian stable-proposed-updates main contrib non-free
```

同时你也可能需要更改 **Debian Security** 源，请参考`debian-security`

更改完`sources.list` 文件后请运行 `sudo apt-get update` 更新索引以生效。

> 提示：使用 HTTPS 可以有效避免国内运营商的缓存劫持，但需要事先安装 `apt-transport-https`

另外，也可以使用中科大 snullp 大叔开发的 配置生成器 <https://mirrors.ustc.edu.cn/repogen。>

## 相关链接

* 官方主页: <https://www.debian.org/>
* 邮件列表: <https://www.debian.org/MailingLists/>
* Wiki: <https://wiki.debian.org/>
* 文档: <https://www.debian.org/doc/>
* 镜像列表: <https://www.debian.org/mirror/list>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shuopensourcecommunity.gitbook.io/help/debian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
