Skip to content

Commit

Permalink
修复错误
Browse files Browse the repository at this point in the history
  • Loading branch information
firemakergk committed Mar 28, 2023
1 parent ce99565 commit af95590
Showing 1 changed file with 6 additions and 34 deletions.
40 changes: 6 additions & 34 deletions details/设置PVE的apt源.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,14 @@ PVE的默认软件源是他的企业服务地址(enterprise.proxmox.com),我

1.在pve的Web页面中选中pve节点,再打开Shell页面。

2.在命令行中执行`cp /etc/network/interfaces /etc/network/interfaces.bak`备份当前的网络配置文件
2.在命令行中执行`/etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak`把之前的enterprise配置废除

3.在命令行中执行`vi /etc/network/interfaces`,打开网络配置文件
3.在命令行中执行`vi /etc/apt/sources.list`,打开软件源配置文件

默认情况下pve的配置类似下面这样:
将内容替换为如下的清华大学源。

```
auto lo
iface lo inet loopback
iface enp0s31f6 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.0.99/24
gateway 192.168.0.1
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0
iface enp3s0 inet manual
```

4.将vmbr0原本的静态IP配置修改成dhcp,配置完成后类似如下形式。

```
auto lo
iface lo inet loopback
iface enp0s31f6 inet manual
auto vmbr0
iface vmbr0 inet dhcp
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0
iface enp3s0 inet manual
deb https://mirrors.ustc.edu.cn/debian bullseye main contrib
deb https://mirrors.ustc.edu.cn/debian bullseye-updates main contrib
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib
```

0 comments on commit af95590

Please sign in to comment.