跳转到帖子
论坛QQ群

更換為官方源 / 更換APT源

精选回复

发布于

-------------------------------------------
更換為官方源 / 更換APT源
-------------------------------------------

修改源,也可以看到主機商是使用哪個源

 


--------------------------------------
有些主機商是寫在這裡
--------------------------------------

vi  /etc/apt/sources.list

 

--------------------------------------
有的主機商是放在 /etc/apt/sources.list.d/ 目錄下,檔名未知,自己找
--------------------------------------

cd /etc/apt/sources.list.d/

vi xxxxxxxxxxxxxx.list

 


然後,複製貼上

deb http://deb.debian.org/debian/ bookworm main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware

deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware

deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware

 

 

ESC儲存並離開
:wq

 


重開機
reboot

 


更新
apt-get update

 

apt-get upgrade

 

本帖最后于,由Jack编辑

创建帐户或登录后发表意见