跳轉到內容
QQ群

精選回覆

發表於

-------------------------------------------
Debian更換源
-------------------------------------------

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

 

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

vi  /etc/apt/sources.list

 

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

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

vi xxxxxxxxxxxxxx.list

 

--------------------------------------
然後修改

例如 debian官方站

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

 

建立帳號或登入後發表意見