diff --git a/README.md b/README.md index 997cdbd..4e98783 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ wget https://mirrors.tuna.tsinghua.edu.cn/static/status/isoinfo.json -O static/s 1. Fork 本项目并 clone 2. 创建分支 `git checkout -b foo-doc` -3. 在 `_posts/help` 中建立文档文件,文件名格式为 `年-月-日-名称.md` +3. 在 `help/_post` 中建立文档文件,文件名格式为 `年-月-日-名称.md` 4. 用 markdown 语法编写文档 5. 提交并推送代码 6. 发送 Pull Request diff --git a/help/_posts/1970-01-01-ubuntu.md b/help/_posts/1970-01-01-ubuntu.md index 98976cb..356a2f8 100644 --- a/help/_posts/1970-01-01-ubuntu.md +++ b/help/_posts/1970-01-01-ubuntu.md @@ -52,3 +52,11 @@ deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-securi 本镜像仅包含 32/64 位 x86 架构处理器的软件包,在 ARM(arm64, armhf)、PowerPC(ppc64el)、RISC-V(riscv64) 和 S390x 等架构的设备上(对应官方源为ports.ubuntu.com)请使用 [ubuntu-ports 镜像](https://{{ site.hostname }}/ubuntu-ports/)。 + + +执行如下命令自动替换 +``` +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 +``` +