# 登入與修正

![](https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-Lp6REvMU4kj0jnDAJYQ%2F-Lp6RMF9Z_WSZzz8BT2Y%2Fimage.png?alt=media\&token=ecf06776-aeca-44e7-bece-83b374e4a94d)

登入時提醒目前沒有付費授權資訊

![](https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-Lp6RY5JcwEvbzomIiCx%2F-Lp6RZ6-BcVPTxKIt0uD%2Fimage.png?alt=media\&token=9a3d884d-6ba1-4990-b40d-f7e9fa952d3f)

Proxmox VE 軟體授權條款，採用的是 GNU AGPL (Affero General Public License) 條款，而 Proxmox VE 本身是 Free Software 自由軟體，也是 Open Source Software 開源軟體。PVE 是讓所有人都可以無償取得使用，包括原始程式碼，對於標準的「使用者」而言，並不需要付費給 PVE 開發團隊即可進行使用。

若您對於 PVE 進行程式碼修改，依據授權條款，您必須將您修改的部份也公開原始碼。自由軟體與開源軟體並不等於免費，這件事必須特別說明。軟體使用不須付費，但可以是經由其它模式而進行收費，例如技術支援、版本更新等....

所以就是可以在無需支付費用的情況下使用 PVE 。除了登入畫面出現沒有付費授權金鑰以外，使用起來並沒有任何限制與功能差異。

修改文件/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js

修改之前記得先備份一/usr/share/javascript/proxmox-widget-toolkit#&#x20;

```
cd /usr/share/javascript/proxmox-widget-toolkit/
cp proxmoxlib.js proxmoxlib.js.bak
vim proxmoxlib.js

```

找到`if (data.status !== 'Active') {`

![](https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-LpR4UmqvAdaHj9M40Z-%2F-LpR7aXjrGQxBKXM_Hij%2Fimage.png?alt=media\&token=c7e94ede-34a3-4488-9924-6ddfdba7b671)

修改為`if (false) {`

![](https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-LpR4UmqvAdaHj9M40Z-%2F-LpR8Bt1RgkqzmyIbMNK%2Fimage.png?alt=media\&token=f454122b-6cb6-4d95-b86f-1928ac3c513e)

`存檔`\
systemctl restart pveproxy

![](https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-LpR4UmqvAdaHj9M40Z-%2F-LpR8Dr9y9qcBGb8dWUI%2Fimage.png?alt=media\&token=11812e55-bb84-4e37-9f96-81d8aa29e2f8)

然後CTRL+F5強制刷新網頁，或清理一下瀏覽器的緩存

更新 PVE 時發生錯誤\
Failed to fetch <https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease> 401 Unauthorized
---------------------------------------------------------------------------------------------------

這個情況，是因為預設安裝完成的 PVE 是連接到 Enterprise Repository 的更新來源，而您沒有付費取得授權金鑰因此無法更新。<br>

## 解決辦法

將 PVE 的更新來源切換為 No-Subscription Repository 或 Test Repository，即可順利更新。\
\
cd /etc/apt/sources.list.d\
切換更新來源為 No-Subscription Repository

> ```
> cp pve-enterprise.list pve-no-subscription.list
> nano pve-no-subscription.list
> deb http://download.proxmox.com/debian/pve buster pve-no-subscription
> mv pve-enterprise.list /root/
> ```

apt update就不會有<https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease> 401 Unauthorized

```
apt update
Hit:1 http://ftp.tw.debian.org/debian buster InRelease                         
Hit:2 http://ftp.tw.debian.org/debian buster-updates InRelease                 
Hit:3 http://security.debian.org buster/updates InRelease
Hit:4 http://download.proxmox.com/debian/pve buster InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
90 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt install pve-container
```
