mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 14:02:53 +08:00
更新 PVE 初始化配置
This commit is contained in:
+8
-10
@@ -64,19 +64,16 @@ deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib
|
||||
|
||||
默认情况下,PVE 额外启用了 2 个官方源,且为订阅收费制,因此需要替换为免费源。
|
||||
|
||||
进入订阅源目录:
|
||||
删除 PVE 官方付费软件源,使用以下命令。
|
||||
|
||||
**注意:rm 为高风险命令,请正确使用,请勿手抖,请勿手抖。**
|
||||
|
||||
```bash
|
||||
## 进入订阅源目录
|
||||
$ cd /etc/apt/sources.list.d
|
||||
|
||||
## 删除该目录下的所有配置
|
||||
$ rm -rvf *.list
|
||||
## 删除付费软件源
|
||||
$ rm -rvf /etc/apt/sources.list.d/*.list
|
||||
```
|
||||
|
||||
创建 PVE 免费源:
|
||||
创建 PVE 免费软件源。
|
||||
|
||||
**注意:该命令为三行,在输入时请逐行输入并回车执行。**
|
||||
|
||||
@@ -94,6 +91,7 @@ $ echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve $VERSION_CODENAME pve
|
||||
|
||||
```bash
|
||||
## 检查PVE免费源
|
||||
|
||||
$ cat /etc/apt/sources.list.d/ceph-no-subscription.list
|
||||
|
||||
$ cat /etc/apt/sources.list.d/pve-no-subscription.list
|
||||
@@ -102,12 +100,12 @@ $ cat /etc/apt/sources.list.d/pve-no-subscription.list
|
||||
如果输出结果中有 USTC 的镜像地址,则表示命令已经正确执行。
|
||||
|
||||
```bash
|
||||
## PVE 免费源示例输出
|
||||
#### PVE 免费软件源示例输出
|
||||
|
||||
## Ceph
|
||||
#### Ceph
|
||||
deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription
|
||||
|
||||
## PVE
|
||||
#### PVE
|
||||
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user