1. PVE が国内供給源を置き換える
注: この記事では、pve 7.3.3 を例として取り上げます。
置き換える前に証明書を更新することをお勧めします。更新しないと、証明書が利用できないために https が利用できなくなり、すべてのソフトウェアがダウンロードできなくなる可能性があります。
apt install apt-transport-https ca-certificates
まず共通のソフトウェアソースを置き換えます。Debian のソフトウェアソース設定ファイルは/etc/apt/sources.listです。バックアップ後、内容を次のように変更します。
# デフォルトでは、apt 更新の速度を向上させるためにソース画像がコメント化されていますが、必要に応じて debのコメントを解除できますhttps://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye メイン投稿非フリー
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates メイン投稿非フリー
# deb- src https:/ /mirrors.tuna.tsinghua.edu.cn/debian/bullseye-updates main contrib non-freedeb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports メイン投稿投稿 非フリー
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports メイン投稿投稿不自由なdeb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-securityメイン投稿者
ctrl+x を押して Y を押し、Enter を押すと完了します。
次に、pve ソフトウェア ソースを置き換えます。pve イメージのデフォルトの pve ソフトウェア ソース構成ファイルは/etc/apt/sources.list.d/pve-enterprise.listです。バックアップ後、内容を次のものに置き換えます: (変更手順)は以前と同じです。)
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription
前回のアップデートの速度は非常に速いです:
apt-getアップデート
CT テンプレート (LXC コンテナ) ソースの変更
/usr/share/perl5/PVE/APLInfo.pmファイル内のデフォルトのソース アドレスhttp://download.proxmox.comをhttps://mirrors.tuna.tsinghua.edu.cn/proxmoxに置き換えます。
次のコマンドで変更できます。
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
sed -i 's|http://download.proxmox.com|https://mirrors.tuna.tsinghua .edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
/usr/share/perl5/PVE/APLInfo.pmファイルへの変更は、再起動後に有効になります。
systemctl 再起動 pvedaemon.service
その後、pve Web ページ上の CT テンプレートのダウンロード速度は非常に速くなります。
2. 無効なサブスクリプションを削除する
まず、shh ツールにログインし、js ファイル proxmoxlib.js をダウンロードします。
このパス: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js で、編集ツールを使用して「data.status」を検索します。
に変更されました
if (偽) {
変更後にファイルを保存してアップロードし、systemctl restart pveproxy コマンドを実行して Web サービスを再起動します。
systemctl 再起動 pveproxy