mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-26 05:02:48 +00:00
Add help for debian
This commit is contained in:
parent
6e1747e4f6
commit
eab42d4ed2
|
|
@ -0,0 +1,56 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: debian
|
||||
---
|
||||
|
||||
Debian 镜像使用帮助
|
||||
===================
|
||||
|
||||
Debian 的软件源配置文件是
|
||||
`/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用
|
||||
TUNA 的软件源镜像。
|
||||
|
||||
如果遇到无法拉取 https 源的情况,请先使用 http 源并安装:
|
||||
|
||||
```
|
||||
$ sudo apt install apt-transport-https
|
||||
```
|
||||
|
||||
再使用 TUNA 的软件源镜像。
|
||||
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的 Debian 版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-release="sid">sid</option>
|
||||
<option data-release="testing">testing</option>
|
||||
<option data-release="buster">buster</option>
|
||||
<option data-release="stretch" selected>stretch</option>
|
||||
<option data-release="jessie">jessie</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}} main contrib non-free
|
||||
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}} main contrib non-free
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}}-updates main contrib non-free
|
||||
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}}-updates main contrib non-free
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}}-backports main contrib non-free
|
||||
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}}-backports main contrib non-free
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security {{release_name}}/updates main contrib non-free
|
||||
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security {{release_name}}/updates main contrib non-free
|
||||
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre>
|
||||
<code id="apt-content">
|
||||
</code>
|
||||
</pre>
|
||||
Loading…
Reference in New Issue