diff --git a/help/_posts/1970-01-01-chef.md b/help/_posts/1970-01-01-chef.md index 468db79..ec19483 100644 --- a/help/_posts/1970-01-01-chef.md +++ b/help/_posts/1970-01-01-chef.md @@ -4,7 +4,30 @@ layout: help mirrorid: chef --- -## Chef APT/YUM 镜像使用帮助 +# Chef 软件仓库镜像使用帮助 + +
+ + + + + Chef 是一套自动化运维工具。 @@ -12,44 +35,61 @@ Chef 是一套自动化运维工具。 再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/chef.list` + + +{% raw %} + +{% endraw %} + +
-
+
-{% raw %}
-
-{%endraw%}
-
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/chef.repo`,内容为:
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-debian.md b/help/_posts/1970-01-01-debian.md
index 39d9f01..46b7a71 100644
--- a/help/_posts/1970-01-01-debian.md
+++ b/help/_posts/1970-01-01-debian.md
@@ -4,57 +4,135 @@ layout: help
mirrorid: debian
---
-Debian 镜像使用帮助
-===================
-
-Debian 的软件源配置文件是
-`/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用
-TUNA 的软件源镜像。
-
-如果遇到无法拉取 https 源的情况,请先使用 http 源并安装:
-
-```
-$ sudo apt install apt-transport-https ca-certificates
-```
-
-再使用 TUNA 的软件源镜像。
-
+# Debian 软件仓库镜像使用帮助
-{% raw %}
-
{% endraw %}
-
+
+
+
+
+
+
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+为了方便快速配置,此处一并附上了 debian-security 的配置,一般来说,镜像站会同时提供 debian-security,截至写文档时,DNUI、HIT 与 NYIST 未提供该镜像,为了更准确的信息您可以前往 [Debian Security 帮助](/help/debian-security) 确认。
+
+不过,一般来说,为了更及时地获得安全更新,不推荐使用镜像站安全更新软件源,因为镜像站往往有同步延迟。参考 https://www.debian.org/security/faq.en.html#mirror
+
+> The purpose of security.debian.org is to make security updates available as quickly and easily as possible.
+>
+> Encouraging the use of unofficial mirrors would add extra complexity that is usually not needed and that can cause frustration if these mirrors are not kept up to date.
+
+### Connection reset by peer
+
+在 apt 2.1.9 及以后的版本中,apt 的 HTTP Pipelining 特性与 Nginx 服务器疑似存在一定的不兼容问题,可能导致高带宽从镜像站下载大量软件包
+(例如系统升级)时出现偶发的 Connection reset by peer 错误
+(详见 [Debian bug #973581](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973581))。
+
+目前,用户可以通过关闭 HTTP Pipelining 特性解决此问题。
+如果需要关闭,可以在使用 `apt` 命令时加上 `-o Acquire::http::Pipeline-Depth=0` 参数,
+或使用以下命令将相关设置加入 apt 系统配置中:
+
+```bash
+echo "Acquire::http::Pipeline-Depth \"0\";" > /etc/apt/apt.conf.d/99nopipelining
+```
+
diff --git a/help/_posts/1970-01-01-gitlab-ce.md b/help/_posts/1970-01-01-gitlab-ce.md
index 5d226eb..521ef40 100644
--- a/help/_posts/1970-01-01-gitlab-ce.md
+++ b/help/_posts/1970-01-01-gitlab-ce.md
@@ -4,55 +4,104 @@ layout: help
mirrorid: gitlab-ce
---
-## Gitlab Community Edition 镜像使用帮助
-
-**注意: gitlab-ce 镜像仅支持 x86-64 架构**
-
-### Debian/Ubuntu 用户
-
-首先信任 GitLab 的 GPG 公钥:
-
-```
-curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
-```
-
-再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-ce.list`
+# GitLab CE 软件仓库镜像使用帮助
+
+
+
+
+
+**注意:gitlab-ce 镜像仅支持 x86-64 架构**
+
+### Debian/Ubuntu 用户
+
+首先信任 GitLab 的 GPG 公钥:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
-
+
+
+
+
+
+再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-ce.list`
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
安装 gitlab-ce:
-```
-sudo apt-get update
-sudo apt-get install gitlab-ce
-```
+
{% raw %}
-
-{%endraw%}
+{% endraw %}
+
+
+
+
+
+
+
### RHEL/CentOS 用户
@@ -60,17 +109,42 @@ deb {{if os_name|equals>ubuntu}}https{{else}}http{{/if}}://{%endraw%}{{ site.hos
新建 `/etc/yum.repos.d/gitlab-ce.repo`,内容为
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
再执行
-```
-sudo yum makecache
-sudo yum install gitlab-ce
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-gitlab-runner.md b/help/_posts/1970-01-01-gitlab-runner.md
index 0385389..efad3bb 100644
--- a/help/_posts/1970-01-01-gitlab-runner.md
+++ b/help/_posts/1970-01-01-gitlab-runner.md
@@ -4,73 +4,150 @@ layout: help
mirrorid: gitlab-runner
---
-## Gitlab Runner 镜像使用帮助
-
-**注意: gitlab-runner 镜像支持 x86-64 和 ARM64(aarch64) 架构**
-
-### Debian/Ubuntu 用户
-
-首先信任 GitLab 的 GPG 公钥:
-
-```
-curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
-```
-
-再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-runner.list`
+# GitLab Runner 软件仓库镜像使用帮助
+
+
+
+
+
+**注意:gitlab-runner 镜像支持 x86-64 和 ARM64(aarch64) 架构**
+
+### Debian/Ubuntu 用户
+
+首先信任 GitLab 的 GPG 公钥:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
-
+
-安装 gitlab-runner:
+再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/gitlab-runner.list`
-```
-sudo apt-get update
-sudo apt-get install gitlab-runner
-```
+
+
+
{% raw %}
-
-{%endraw%}
+{% endraw %}
+
+
+
+
+
+
+
+
+
+
+安装 gitlab-runner:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### CentOS/RHEL
新建 `/etc/yum.repos.d/gitlab-runner.repo`,内容为
-```
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
再执行
-```
-sudo yum makecache
-sudo yum install gitlab-runner
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-mongodb.md b/help/_posts/1970-01-01-mongodb.md
index 28cf071..e09c353 100644
--- a/help/_posts/1970-01-01-mongodb.md
+++ b/help/_posts/1970-01-01-mongodb.md
@@ -4,71 +4,173 @@ layout: help
mirrorid: mongodb
---
-## MongoDB 镜像使用帮助
+# MongoDB 软件仓库镜像使用帮助
-MongoDB 镜像自 MongoDB [官方仓库](https://repo.mongodb.org/), 目前有 RHEL/CentOS, Ubuntu, Debian 的镜像,支持 amd64, i386, arm64 架构。
+
+
+
+
+
+
+
+MongoDB 镜像自 MongoDB [官方仓库](https://repo.mongodb.org/),目前有 RHEL/CentOS, Ubuntu, Debian 的镜像,支持 amd64, i386, arm64 架构。
更详细的内容,可以参考 [官方文档](https://docs.mongodb.org/master/administration/install-on-linux/)
### Debian/Ubuntu 用户
-首先信任 MongoDB 的 GPG 公钥:
+首先信任 MongoDB 的 GPG 公钥:
-```
-wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
-```
-再选择你的 Debian / Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/mongodb.list`
+{% raw %}
+
+{% endraw %}
+
+
-
+
-
+{% endraw %}
+
+
+
+
+
+
+
+
安装 `mongodb-org` 即可
-```
-sudo apt-get update
-sudo apt-get install -y mongodb-org
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/mongodb.repo`,内容为
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
刷新缓存并安装 `mongodb-org` 即可。
-```
-sudo yum makecache
-sudo yum install mongodb-org
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-mysql.md b/help/_posts/1970-01-01-mysql.md
index 6839eef..2fb37f1 100644
--- a/help/_posts/1970-01-01-mysql.md
+++ b/help/_posts/1970-01-01-mysql.md
@@ -4,104 +4,141 @@ layout: help
mirrorid: mysql
---
-## Mysql Community Edition 镜像使用帮助
+# MySQL 软件仓库镜像使用帮助
+
+
+
+
+
+
### Debian/Ubuntu 用户
-
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/mysql-community.list`
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
-
+
-参考文档:[https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/](https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/)
-
-{% raw %}
-
-{%endraw%}
+参考文档:https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/mysql-community.repo`,内容如下:
-注:`mysql-8.0`, `mysql-connectors`和`mysql-tools`在RHEL 7上还提供了`aarch64`版本。
+注:`mysql-8.0`, `mysql-connectors`和`mysql-tools`在 RHEL 7/8上还提供了`aarch64`版本。
+
+
+
-
-
-
-
-
-
-参考文档:[https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/](https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/)
+
{% raw %}
-
{% endraw %}
+
+
+
+
+
+
+
+
+
+参考文档:https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
+
diff --git a/help/_posts/1970-01-01-proxmox.md b/help/_posts/1970-01-01-proxmox.md
index c477129..20765d6 100644
--- a/help/_posts/1970-01-01-proxmox.md
+++ b/help/_posts/1970-01-01-proxmox.md
@@ -4,52 +4,141 @@ layout: help
mirrorid: proxmox
---
-## Proxmox 镜像使用帮助
-
-新建 `/etc/apt/sources.list.d/pve-no-subscription.list`,内容为:
+# Proxmox 软件仓库镜像使用帮助
+
+
+
+
+
+### Debian 软件源
+
+参考 [Debian 帮助](/help/debian) 修改 `/etc/apt/sources.list`。
+
+### 软件源
+
+新建 `/etc/apt/sources.list.d/pve-no-subscription.list`(如果选择的不是 pve,需要使用另一个文件名),内容为:
+
+
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
-
+
+注意快速配置中的文件名需要根据需求而修改。
+
+### ISO 安装文件下载
+
+
+
{% raw %}
-
-{%endraw%}
+{% endraw %}
-对于 Proxmox Backup Server, Client 和 Proxmox Mail Gateway,请将以上命令中的 `pve` 分别替换为 `pbs`, `pbs-client` 和 `pmg`。
+
+
+
+
+
+
-ISO安装文件下载:[https://{{ site.hostname }}/proxmox/iso/](https://{{ site.hostname }}/proxmox/iso/)
### CT Templates
-如果你需要加速 Proxmox 网页端下载 CT Templates,可以替换 CT Templates 的源为 `https://{{ site.hostname }}`。
+如果你需要加速 Proxmox 网页端下载 CT Templates,可以替换 CT Templates 的源。
具体方法:将 `/usr/share/perl5/PVE/APLInfo.pm` 文件中默认的源地址 `http://download.proxmox.com`
-替换为 `https://{{ site.hostname }}/proxmox` 即可。
+替换为
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
可以使用如下命令修改:
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
针对 `/usr/share/perl5/PVE/APLInfo.pm` 文件的修改,重启后生效。
diff --git a/help/_posts/1970-01-01-raspbian.md b/help/_posts/1970-01-01-raspbian.md
index 3d65511..b6b013c 100644
--- a/help/_posts/1970-01-01-raspbian.md
+++ b/help/_posts/1970-01-01-raspbian.md
@@ -4,7 +4,30 @@ layout: help
mirrorid: raspbian
---
-## Raspbian 镜像使用帮助
+# Raspbian 软件仓库镜像使用帮助
+
+
+
+
+
+
+
### Raspbian 简介
@@ -12,21 +35,9 @@ Raspbian 是专门用于 ARM 卡片式计算机 Raspberry Pi® “树莓派”
其基于 Debian 开发,针对 Raspberry Pi 硬件优化。
Raspbian 并非由树莓派的开发与维护机构 The Raspberry Pi Foundation
-“树莓派基金会” 官方支持。其维护者是一群 Raspberry Pi 硬件和 Debian 项目的爱好者。
+“树莓派基金会”官方支持。其维护者是一群 Raspberry Pi 硬件和 Debian 项目的爱好者。
-### 系统架构与版本
-
-架构:
-
-* armhf
-
-版本:
-
-* stretch
-* buster
-* bullseye
-
-注:Raspbian 系统由于从诞生开始就基于(为了armhf,也必须基于)当时还是
+注:Raspbian 系统由于从诞生开始就基于(为了 armhf,也必须基于)当时还是
testing 版本的 7.0/wheezy,所以 Raspbian 不倾向于使用 stable/testing
表示版本。
@@ -34,76 +45,93 @@ testing 版本的 7.0/wheezy,所以 Raspbian 不倾向于使用 stable/testing
首先通过 `uname -m` 确定你使用的系统的架构。
+编辑镜像站后,请使用`sudo apt-get update`命令,更新软件源列表,同时检查您的编辑是否正确。
+
+#### armv7l
+
+
+
+
+
+
+
{% raw %}
-
{% endraw %}
+
-
+
+注意:网址末尾的`raspbian`重复两次是必须的。因为 Raspbian 的仓库中除了 APT 软件源还包含其他代码。APT 软件源不在仓库的根目录,而在`raspbian/`子目录下。
-注意:网址末尾的`raspbian`重复两次是必须的。因为 Raspbian 的仓库中除了APT软件源还包含其他代码。APT软件源不在仓库的根目录,而在`raspbian/`子目录下。
+#### aarch64
-编辑镜像站后,请使用`sudo apt-get update`命令,更新软件源列表,同时检查您的编辑是否正确。
+aarch64 用户可直接参考 [Debian 帮助](/help/debian)
+
+#### raspberry 镜像
+
+对于两个架构,编辑 `/etc/apt/sources.list.d/raspi.list` 文件,这需要查看 [Raspberrypi 帮助](/help/raspberrypi)。
### 相关链接
#### Raspbian 链接
-* Raspbian 主页: [https://www.raspbian.org](https://www.raspbian.org)
+* 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)
+* 树莓派基金会主页:[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/)授权清华大学镜像站使用。
+中国大陆许可协议](http://creativecommons.org/licenses/by-nc/3.0/cn/) 授权清华大学镜像站使用。
-TUNA 提供的修改版本同样使用[知识共享署名-非商业性使用
+TUNA 提供的修改版本同样使用 [知识共享署名 - 非商业性使用
3.0
中国大陆许可协议](http://creativecommons.org/licenses/by-nc/3.0/cn/)。
+
diff --git a/help/_posts/1970-01-01-ros.md b/help/_posts/1970-01-01-ros.md
index 50ba30a..bc1b15f 100644
--- a/help/_posts/1970-01-01-ros.md
+++ b/help/_posts/1970-01-01-ros.md
@@ -4,42 +4,84 @@ layout: help
mirrorid: ros
---
-## ROS 镜像使用帮助
+# ROS 软件仓库镜像使用帮助
+
+
+
+
+
+
新建 `/etc/apt/sources.list.d/ros-latest.list`,内容为:
+
+
+{% raw %}
+
+{% endraw %}
+
+
-
+
+然后再输入如下命令,信任 ROS 的 GPG Key,并更新索引:
+
+
+
{% raw %}
-
-{%endraw%}
+{% endraw %}
-然后再输入如下命令,信任ROS的GPG Key,并更新索引:
+
+
+
+
+
+
+
+
+### rosdep
+
+参考 [ROS Distro 帮助](/help/rosdistro)
-```
-sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
-sudo apt update
-```
diff --git a/help/_posts/1970-01-01-ros2.md b/help/_posts/1970-01-01-ros2.md
index b99e02c..0f2d8f3 100644
--- a/help/_posts/1970-01-01-ros2.md
+++ b/help/_posts/1970-01-01-ros2.md
@@ -4,44 +4,84 @@ layout: help
mirrorid: ros2
---
-## ROS2 镜像使用帮助
-
-输入如下命令,下载 ROS 的 GPG Key:
-
-```bash
-sudo apt install curl gnupg2
-sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
-```
-
-
-再输入如下命令,添加软件仓库,并更新索引:
+# ROS2 软件仓库镜像使用帮助
+
+
+
+
+
+输入如下命令,下载 ROS 的 GPG Key:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
-
+
-{% raw %}
-
-{%endraw%}
+{% endraw %}
+
+
+
+
+
+
+
+
Reference: https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html
+
+### rosdep
+
+参考 [ROS Distro 帮助](/help/rosdistro)
+
diff --git a/help/_posts/1970-01-01-rudder.md b/help/_posts/1970-01-01-rudder.md
index 8547ac3..41658dc 100644
--- a/help/_posts/1970-01-01-rudder.md
+++ b/help/_posts/1970-01-01-rudder.md
@@ -4,51 +4,111 @@ layout: help
mirrorid: rudder
---
-## Rudder APT/YUM 镜像使用帮助
+# Rudder 软件仓库镜像使用帮助
+
+
+
+
+
+
### Debian/Ubuntu 用户
-再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/rudder.list`
+选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/rudder.list`
+
+
-
-
-
-
-
-
+
{% raw %}
-
-{%endraw%}
+{% endraw %}
+
+
+
+
+
+
+
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/rudder.repo`,内容为:
-```
-[Rudder_6.0]
-name=Rudder 6.0
-baseurl=https://{{ site.hostname }}/rudder/rpm/rudder6.0-RHEL_$releasever/
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-ubuntu-ports.md b/help/_posts/1970-01-01-ubuntu-ports.md
index 8ac7557..cb71e65 100644
--- a/help/_posts/1970-01-01-ubuntu-ports.md
+++ b/help/_posts/1970-01-01-ubuntu-ports.md
@@ -4,51 +4,108 @@ layout: help
mirrorid: ubuntu-ports
---
-Ubuntu Ports 镜像使用帮助
-===================
-
-Ubuntu 的软件源配置文件是
-`/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用
-TUNA 的软件源镜像。
-
+# Ubuntu Ports 软件仓库镜像使用帮助
+
+
+
+
+
+Ubuntu 的软件源配置文件是 `/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用选择的软件源镜像。
+
+
+
+
+
+
+
+
+
+
+
{% raw %}
-
{% endraw %}
-
+
-本镜像仅包含 arm64 armhf ppc64el riscv64 s390x 架构的软件包。
+
+因镜像站同步有延迟,可能会导致生产环境系统不能及时检查、安装上最新的安全更新,不建议替换 security 源。
+
diff --git a/help/_posts/1970-01-01-ubuntu.md b/help/_posts/1970-01-01-ubuntu.md
index ca2819b..9941831 100644
--- a/help/_posts/1970-01-01-ubuntu.md
+++ b/help/_posts/1970-01-01-ubuntu.md
@@ -4,64 +4,110 @@ layout: help
mirrorid: ubuntu
---
-Ubuntu 镜像使用帮助
-===================
-
-本镜像仅包含 32/64 位 x86 架构处理器的软件包,在 ARM(arm64, armhf)、PowerPC(ppc64el)、RISC-V(riscv64) 和 S390x 等架构的设备上(对应官方源为ports.ubuntu.com)请使用 [ubuntu-ports 镜像](https://{{ site.hostname }}/help/ubuntu-ports/)。
-
-### 手动替换
-Ubuntu 的软件源配置文件是
-`/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用
-TUNA 的软件源镜像。
-
+# Ubuntu 软件仓库镜像使用帮助
+
+
+
+
+
+本镜像仅包含 32/64 位 x86 架构处理器的软件包,在 ARM(arm64, armhf)、PowerPC(ppc64el)、RISC-V(riscv64) 和 S390x 等架构的设备上(对应官方源为 ports.ubuntu.com)请使用 [ubuntu-ports 镜像](/help/ubuntu-ports)。
+
+Ubuntu 的软件源配置文件是 `/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用选择的软件源镜像。
+
+
+
+
+
+
+
+
+
+
+
{% raw %}
-
{% endraw %}
-
+
-
-
-
-### 命令替换
-执行如下命令自动替换
- ```bash
-sudo sed -i "s@http://.*archive.ubuntu.com@https://{{ site.hostname }}@g" /etc/apt/sources.list
-sudo sed -i "s@http://.*security.ubuntu.com@https://{{ site.hostname }}@g" /etc/apt/sources.list
-```
+因镜像站同步有延迟,可能会导致生产环境系统不能及时检查、安装上最新的安全更新,不建议替换 security 源。
diff --git a/help/_posts/2016-06-19-virtualbox.md b/help/_posts/2016-06-19-virtualbox.md
index 32fad8d..6fe110b 100644
--- a/help/_posts/2016-06-19-virtualbox.md
+++ b/help/_posts/2016-06-19-virtualbox.md
@@ -4,24 +4,93 @@ layout: help
mirrorid: virtualbox
---
-# VirtualBox 镜像使用帮助
+# VirtualBox 软件仓库镜像使用帮助
-[Oracle Virtualbox](https://www.virtualbox.org/) VirtualBox 是一款开源虚拟机软件。由德国 Innotek 公司开发,Sun Microsystems 公司出品。使用Qt编写,在 Sun 被 Oracle 收购后正式更名成 Oracle VM VirtualBox。采用 GPL 协议开源。
+
+
+
+
+
+
+
+[Oracle Virtualbox](https://www.virtualbox.org/) VirtualBox 是一款开源虚拟机软件。由德国 Innotek 公司开发,Sun Microsystems 公司出品。使用 Qt 编写,在 Sun 被 Oracle 收购后正式更名成 Oracle VM VirtualBox。采用 GPL 协议开源。
## Microsoft Windows
-[点击下载 Windows 最新版](https://{{ site.hostname }}/virtualbox/virtualbox-Win-latest.exe)
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
## Macintosh OS X
-[点击下载 OS X 最新版](https://{{ site.hostname }}/virtualbox/virtualbox-osx-latest.dmg)
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
# Linux
## 通过编译好的二进制包安装
-访问该镜像下最新的目录(例如`5.0.24`),找到名为<发行版名称>~<发行代号>~<架构> 的文件。
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+访问该镜像下最新的目录(例如`5.0.24`),找到名为 发行版名称~发行代号~架构 的文件。
如 `virtualbox-5.0_5.0.24-108355~Ubuntu~xenial_i386.deb` 下载安装即可。
目前支持的系统有:
@@ -43,70 +112,137 @@ mirrorid: virtualbox
对于 Debian 8 和 Ubuntu 16.04 及以上:
-```shell
-wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
-```
-其他版本
-
-```shell
-wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
-```
-
-再选择你的 Debian/Ubuntu 版本,将文本框中内容写进`/etc/apt/sources.list.d/virtualbox.list`
-
-
-
-
-
-
-
-
{% raw %}
-
{% endraw %}
+
+
+
+
+
+
+
+
+其他版本
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+再选择你的 Debian/Ubuntu 版本,将文本框中内容写进`/etc/apt/sources.list.d/virtualbox.list`
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
安装 VirtualBox:
-```
-sudo apt-get update
-sudo apt-get install virtualbox-5.0
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### RHEL/CentOS 用户
新建 `/etc/yum.repos.d/virtualbox.repo`,内容为
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
刷新缓存并安装 `virtualbox` 即可。
-```
-sudo yum makecache
-sudo yum install VirtualBox-5.1
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/2019-02-15-grafana.md b/help/_posts/2019-02-15-grafana.md
index bcf6148..0caed58 100644
--- a/help/_posts/2019-02-15-grafana.md
+++ b/help/_posts/2019-02-15-grafana.md
@@ -4,75 +4,163 @@ layout: help
mirrorid: grafana
---
-## Grafana 镜像帮助
-
-### Debian / Ubuntu 用户
-
-首先信任 https://apt.grafana.com/ 的 GPG 公钥:
-
-```bash
-sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
-```
-
-确保你的 apt 支持 HTTPS:
-
-```bash
-sudo apt-get install -y apt-transport-https
-```
-
-选择你希望安装的 Grafana 版本(与你的 Debian/Ubuntu 系统版本无关),文本框中内容写进 `/etc/apt/sources.list.d/grafana.list`
+# Grafana 软件仓库镜像使用帮助
+
+
+
+
+### Debian / Ubuntu 用户
+
+首先信任 https://apt.grafana.com/ 的 GPG 公钥:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
-
+
-安装 Grafana
-```
-sudo apt-get update
-sudo apt-get install grafana
-```
+确保你的 apt 支持 HTTPS:
+
+
{% raw %}
-
-{%endraw%}
+{% endraw %}
+
+
+
+
+
+
+
+
+
+选择你希望安装的 Grafana 版本(与你的 Debian/Ubuntu 系统版本无关),文本框中内容写进 `/etc/apt/sources.list.d/grafana.list`
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+
+安装 Grafana
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
### Centos / Redhat 用户
+
新建 `/etc/yum.repos.d/grafana.repo`,内容为
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
如果要避免安装 beta 版本,需要新增一行
-```
+```ini
exclude=*beta*
```
再执行
-```
-sudo yum makecache
-sudo yum install grafana
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/2022-01-07-erlang-solutions.md b/help/_posts/2022-01-07-erlang-solutions.md
index 84396cf..5a84807 100644
--- a/help/_posts/2022-01-07-erlang-solutions.md
+++ b/help/_posts/2022-01-07-erlang-solutions.md
@@ -4,74 +4,161 @@ layout: help
mirrorid: erlang-solutions
---
-## erlang-solutions 镜像使用指南
-
-### Debian/Ubuntu 用户
-
-首先信任 erlang-solutions 的 GPG 公钥:
-
-```
-# Debian 用户
-curl -s https://packages.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -
-# Ubuntu 用户
-curl -s https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
-```
-
-再选择你的 Debian / Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/erlang-solutions.list`
+# Erlang Solutions 软件仓库镜像使用帮助
+
+
+
+
+
+### Debian/Ubuntu 用户
+
+首先信任 erlang-solutions 的 GPG 公钥:
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
-
+
-
+{% endraw %}
+
+
+
+
+
+
+
+
+
安装 `erlang` 即可
-```
-sudo apt-get update
-sudo apt-get install -y erlang
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### CentOS 用户
-首先信任 erlang-solutions 的 GPG 公钥:
+首先信任 erlang-solutions 的 GPG 公钥:
-```
-rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
+```bash
+{{sudo}}rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
```
新建 `/etc/yum.repos.d/erlang-solutions.repo`,内容为
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
刷新缓存并安装 `erlang` 即可。
-```
-sudo yum makecache
-sudo yum install erlang
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/2022-07-23-llvm-apt.md b/help/_posts/2022-07-23-llvm-apt.md
index ca8478b..9990b36 100644
--- a/help/_posts/2022-07-23-llvm-apt.md
+++ b/help/_posts/2022-07-23-llvm-apt.md
@@ -4,54 +4,142 @@ layout: help
mirrorid: llvm-apt
---
-## llvm-apt 镜像使用帮助
-
-### 安装脚本
-
-```bash
-# 下载脚本
-wget https://{{ site.hostname }}/llvm-apt/llvm.sh
-chmod +x llvm.sh
-sudo ./llvm.sh all -m https://{{ site.hostname }}/llvm-apt
-# 或者使用 ./llvm.sh
-
+
+
+
+### 手动启用
+
+首先信任来自 https://apt.llvm.org/ 的 PGP 公钥:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+新增 `/etc/apt/sources.list.d/llvm-apt.list`,内容为
+
+
+
+
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/2022-08-03-wine-builds.md b/help/_posts/2022-08-03-wine-builds.md
index c34a115..fc28eb0 100644
--- a/help/_posts/2022-08-03-wine-builds.md
+++ b/help/_posts/2022-08-03-wine-builds.md
@@ -4,53 +4,116 @@ layout: help
mirrorid: wine-builds
---
-## wine-builds 镜像使用帮助
+# Wine builds 软件仓库镜像使用帮助
+
+
+
+
+
+
+
由于上游并未提供 rsync,镜像站只同步了 ubuntu/debian 部分。
首先启用 32 位架构
-```bash
-sudo dpkg --add-architecture i386
-```
-之后信任来自
-
+
+
+之后信任来自 https://dl.winehq.org/ 的公钥
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+新增 `/etc/apt/sources.list.d/winehq.list`,内容为
+
+
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
通过以下命令安装 winehq
-```bash
-sudo apt update
-sudo apt install --install-recommends winehq-stable
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+