Jump to content

更換為官方源 / 更換APT源


Jack

Recommended Posts

Posted (edited)

-------------------------------------------
更換為官方源 / 更換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

 

Edited by Jack
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...