# PBS 安裝在PVE LXC

#### **運行環境**

- **PVE LXC**
- **Debian 12**

#### **LXC安裝PBS**

```
apt update
```

#### **安裝 repo key**

```
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
```

#### **新增加 PBS 來源庫**

**編輯`/etc/apt/sources.list`**

```
# 以下是新增加資訊
# Proxmox Backup Server pbs-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pbs bookworm pbs-no-subscription

# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib
```

```
apt update
```

```
apt install proxmox-backup-server
```

**註解掉訂閱來源庫 `/etc/apt/sources.list.d/pbs-enterprise.list`**

```
#deb https://enterprise.proxmox.com/debian/pbs bookworm pbs-enterprise
```

**重啟之後瀏覽器登入 `https://ip:8007`**