mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 14:02:53 +08:00
update PVE初始化配置.md.
This commit is contained in:
+22
-3
@@ -20,7 +20,6 @@ cd /etc/apt
|
|||||||
|
|
||||||
## 将默认软件源配置文件进行备份
|
## 将默认软件源配置文件进行备份
|
||||||
cp sources.list sources.list.bak
|
cp sources.list sources.list.bak
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
这里我将使用中国科技大(USTC)的镜像仓库进行替换,使用如下命令:
|
这里我将使用中国科技大(USTC)的镜像仓库进行替换,使用如下命令:
|
||||||
@@ -54,7 +53,6 @@ deb https://mirrors.ustc.edu.cn/debian bullseye-updates main contrib
|
|||||||
|
|
||||||
# security updates
|
# security updates
|
||||||
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib
|
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
此处我放出 Debian Bullseye 的完整镜像源以供参考, **非常不建议** 将 PVE 的系统源替换成完整的 Debian 源,以避免出现问题。
|
此处我放出 Debian Bullseye 的完整镜像源以供参考, **非常不建议** 将 PVE 的系统源替换成完整的 Debian 源,以避免出现问题。
|
||||||
@@ -73,7 +71,6 @@ deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
|
|||||||
|
|
||||||
deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
|
deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
|
||||||
#deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
|
#deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
可以看到,PVE 的系统源和 Debian 完整源的差异在于 “non-free” 和 “bullseye-backports”。
|
可以看到,PVE 的系统源和 Debian 完整源的差异在于 “non-free” 和 “bullseye-backports”。
|
||||||
@@ -100,7 +97,29 @@ rm -rvf *.list
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
## 创建PVE免费源
|
## 创建PVE免费源
|
||||||
|
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
|
|
||||||
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve $VERSION_CODENAME pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
|
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve $VERSION_CODENAME pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
创建完成后对其进行检查:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
## 检查PVE免费源
|
||||||
|
cat /etc/apt/sources.list.d/pve-no-subscription.list
|
||||||
|
```
|
||||||
|
|
||||||
|
如果输出结果中有 USTC 的镜像地址,则表示命令已经正确执行:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
## 输出内容参考:
|
||||||
|
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription
|
||||||
|
```
|
||||||
|
|
||||||
|
### 1.3.PVE CT Templates 替换
|
||||||
|
|
||||||
|
如果需要使用 Proxmox 网页端下载 CT Templates,可以替换 CT Templates 的源。
|
||||||
|
|
||||||
|
该功能我未使用,因此只做记录:
|
||||||
Reference in New Issue
Block a user