欧美成人片一区二区三区,久久碰人妻一区二区三区,久久婷婷激情综合色综合俺也去,狂野欧美性猛交免费视频,久久夜色精品国产亚洲

23
2024/03

PVE虛擬機報錯提示command 'apt-get update' failed: exit code 100如何處理

發(fā)布時間:2024-03-23 15:27:57
發(fā)布者:趙小華
瀏覽量:
0

辦公室有一臺虛擬機安裝的pve8.0的系統(tǒng),用來跑軟路由和DSG程序,PVE全稱是Proxmox Virtual Environment,最近在使用時候發(fā)現(xiàn)日志中出現(xiàn)以下提示。

PVE虛擬機在日志中顯示TASK ERROR

 'apt-get update' failed: exit code 100

通過查詢資料發(fā)現(xiàn)這個的原因是,PVE企業(yè)版需要付費訂閱才能夠訪問,我們系統(tǒng)安裝的是免費的開源版本,所以無法訪問這個付費的訂閱,所以導致apt-get update更新的時候提示失敗。

我們先把付費訂閱的彈窗去掉,打開pve-enterprise.list文件,使用命令vi /etc/apt/sources.list.d/pve-enterprise.list

注釋pve-enterprise.list

在這行代碼前加#注釋即可,輸入!wq進行保存。

關于apt-get update無法更新解決的方式也很簡單,把更新源替換成阿里云的更新源,先備份之前的源,cp /etc/apt/sources.list /etc/apt/sources.list.bak,然后對源文件進行編輯改為以下

deb https://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster main non-free contrib
deb https://mirrors.aliyun.com/debian-security buster/updates main
deb-src https://mirrors.aliyun.com/debian-security buster/updates main
deb https://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

apt-get update已經(jīng)正常執(zhí)行

關鍵詞:
返回列表