更新
更新
root@pve:~# apt update
Hit:1 https://mirrors.tuna.tsinghua.edu.cn/debian trixie InRelease
Hit:2 https://mirrors.tuna.tsinghua.edu.cn/debian trixie-updates InRelease
Hit:3 https://mirrors.tuna.tsinghua.edu.cn/debian trixie-backports InRelease
Hit:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security trixie-security InRelease
Hit:5 http://download.proxmox.com/debian/pve trixie InRelease
Err:6 https://enterprise.proxmox.com/debian/ceph-squid trixie InRelease
401 Unauthorized [IP: 117.120.5.231 443]
Err:7 https://enterprise.proxmox.com/debian/pve trixie InRelease
401 Unauthorized [IP: 117.120.5.231 443]
Error: Failed to fetch https://enterprise.proxmox.com/debian/ceph-squid/dists/trixie/InRelease 401 Unauthorized [IP: 117.120.5.231 443]
Error: The repository 'https://enterprise.proxmox.com/debian/ceph-squid trixie InRelease' is not signed.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.
Error: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/trixie/InRelease 401 Unauthorized [IP: 117.120.5.231 443]
Error: The repository 'https://enterprise.proxmox.com/debian/pve trixie InRelease' is not signed.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.
报错修改
root@pve:~# nano /etc/apt/sources.list.d/pve-enterprise.list禁用付费仓库
直接禁用两个付费仓库(一键命令)
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.disabled
mv /etc/apt/sources.list.d/ceph.sources /etc/apt/sources.list.d/ceph.sources.disabledroot@pve:~# ls /etc/apt/sources.list.d/
ceph.sources pve-enterprise.list.bak pve-enterprise.sources
pve-enterprise.list pve-enterprise.list.dpkg-old pve-no-subscription.list
root@pve:~# mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.disabled
root@pve:~# ls
root@pve:~# ls /etc/apt/sources.list.d/
ceph.sources pve-enterprise.list.disabled pve-enterprise.sources
pve-enterprise.list.bak pve-enterprise.list.dpkg-old pve-no-subscription.list
root@pve:~# mv /etc/apt/sources.list.d/ceph.sources /etc/apt/sources.list.d/ceph.sources.disabled
root@pve:~# ls /etc/apt/sources.list.d/
ceph.sources.disabled pve-enterprise.list.disabled pve-enterprise.sources
pve-enterprise.list.bak pve-enterprise.list.dpkg-old pve-no-subscription.list
root@pve:~#
root@pve:~# apt update
Hit:1 https://mirrors.tuna.tsinghua.edu.cn/debian trixie InRelease
Hit:2 https://mirrors.tuna.tsinghua.edu.cn/debian trixie-updates InRelease
Hit:3 https://mirrors.tuna.tsinghua.edu.cn/debian trixie-backports InRelease
Hit:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security trixie-security InRelease
Hit:5 http://download.proxmox.com/debian/pve trixie InRelease
241 packages can be upgraded. Run 'apt list --upgradable' to see them.
安装网卡唤醒
root@pve:~# apt install -y ethtool
The following packages were automatically installed and are no longer required:
gcc-12-base libdrm-radeon1 libnumber-compare-perl perl-modules-5.36
libboost-context1.74.0 libfile-find-rule-perl libperl5.36 pve-kernel-5.15
libboost-filesystem1.74.0 libflac12 libpython3.11 pve-kernel-5.15.158-2-pve
libboost-iostreams1.74.0 libfmt9 libpython3.11-minimal python3.11
libboost-program-options1.74.0 libicu72 libpython3.11-stdlib python3.11-minimal
libboost-thread1.74.0 libjs-sencha-touch libsubid4 sgml-base
libcbor0.8 libldap-2.5-0 libtext-glob-perl telnet
libdrm-nouveau2 libllvm15 libxcb-dri2-0 usrmerge
Use 'apt autoremove' to remove them.
Upgrading:
ethtool
Summary:
Upgrading: 1, Installing: 0, Removing: 0, Not Upgrading: 240
Download size: 227 kB
Space needed: 1,024 B / 6,833 MB available
Get:1 https://mirrors.tuna.tsinghua.edu.cn/debian trixie/main amd64 ethtool amd64 1:6.14.2-1 [227 kB]
Fetched 227 kB in 1s (433 kB/s)
apt-listchanges: Reading changelogs...
(Reading database ... 90754 files and directories currently installed.)
Preparing to unpack .../ethtool_1%3a6.14.2-1_amd64.deb ...
Unpacking ethtool (1:6.14.2-1) over (1:6.14.1-1) ...
Setting up ethtool (1:6.14.2-1) ...
Processing triggers for man-db (2.13.1-1) ...
root@pve:~#
创建开机唤醒服务器
nano /etc/systemd/system/wol-enable.service
root@pve:~# cat /etc/systemd/system/wol-enable.service
[Unit]
Description=开机开启enp1s0网卡局域网唤醒WOL
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/ethtool -s enp1s0 wol g
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
lti-user.target
root@pve:~# systemctl daemon-reload
root@pve:~# systemctl enable --now wol-enable.service
Created symlink '/etc/systemd/system/multi-user.target.wants/wol-enable.service' → '/etc/systemd/system/wol-enable.service'.
root@pve:~# systemctl status wol-enable.service
● wol-enable.service - 开机开启enp1s0网卡局域网唤醒WOL
Loaded: loaded (/etc/systemd/system/wol-enable.service; enabled; preset: enabled)
Active: active (exited) since Sun 2026-08-09 23:49:01 CST; 10s ago
Invocation: 70b68b4941a54bcbb176e8fcde034454
Process: 66308 ExecStart=/usr/sbin/ethtool -s enp1s0 wol g (code=exited, status=0/SUCCESS)
Main PID: 66308 (code=exited, status=0/SUCCESS)
Mem peak: 1.7M
CPU: 6ms
Aug 09 23:49:01 pve systemd[1]: Starting wol-enable.service - 开机开启enp1s0网卡局域网唤醒WOL...
Aug 09 23:49:01 pve systemd[1]: Finished wol-enable.service - 开机开启enp1s0网卡局域网唤醒WOL.
pve 9.0 升级操作(直接复制运行)
bash
apt update
apt full-upgrade -y
升级完毕重启
bash
reboot
老旧平台 2 个避坑要点
升级内核之后网卡唤醒开关偶尔重置,你配置好的
wol‑enable.service开机服务每次开机自动开启 WOL,不用手动重开虚拟机 CPU 模型不要选 host,改成
ivybridge,适配你三代酷睿指令集,杜绝虚拟机蓝屏、闪退
顺带一提源的现状
你现在已经屏蔽付费 enterprise 商业源,使用免费社区源,家用所有功能全部完整,没有任何阉割,只是缺少官方付费客服,可以一直更新 9 系列全部新版本。
pve 支持网卡唤醒设置
本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
评论交流
欢迎留下你的想法