PVE换源: 下面三行命令全部复制粘贴到Shell里然后回车执行 (注意删掉下面命令https中的*,总共3个 不知道为什么加上去后不能发布文章)
wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
echo "#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise" > /etc/apt/sources.list.d/pve-enterprise.list
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
Debian换源
Shell里输入下面命令备份sources.list
mv /etc/apt/sources.list /etc/apt/sources.list.bk
输入 nano /etc/apt/sources.list
打开nano编辑器编辑sources.list
在打开的nano编辑器后粘贴以下内容(复制粘贴,如上图)
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
用nano 编辑器 编辑完sources.list后后 Ctrl + x ->Y ->回车保存退出
输入 apt update && apt upgrade -y
更新
显示温度
wget -q -O /root/pve_source 'https://bbs.x86pi.cn/file/topic/2023-01-02/file/79bf8f916aca457d9c05df5864018dd7b2.zip' && chmod +x /root/pve_source && /root/./pve_source
很稳定的内网穿透