Debian12设置DEB镜像源为腾讯云镜像仓库

运维 微微CMS 2024-09-26 07:57:50 211

Debian12设置DEB镜像源为腾讯云镜像仓库

编辑镜像文件

编辑镜像文件写入一下内容

root@debian-01:~# vim /etc/apt/sources.list
deb https://mirrors.tencent.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.tencent.com/debian/ bullseye main non-free contrib
deb https://mirrors.tencent.com/debian-security/ bullseye-security main
deb-src https://mirrors.tencent.com/debian-security/ bullseye-security main
deb https://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.tencent.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.tencent.com/debian/ bullseye-backports main non-free contrib

清理镜像缓存,更新镜像数据库

root@debian-01:~# apt-get clean all
root@debian-01:~# apt-get update


点击获取验证码