:::

3. 修改 source.list並進行套件更新

修改OB2D 的sources.list:Ctrl+K可以整行刪除

nano /etc/apt/sources.list

2019年版的(buster),請改成:

deb http://opensource.nchc.org.tw/debian/ buster main contrib non-free
deb-src http://opensource.nchc.org.tw/debian/ buster main contrib non-free
deb http://opensource.nchc.org.tw/debian/ buster-updates main
deb-src http://opensource.nchc.org.tw/debian/ buster-updates main
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://opensource.nchc.org.tw/debian buster-backports main

更新一下apt套件庫清單:

apt-get update 

萬一更新後,有出現 There is no public key available for the following key IDs: xxxxxxxxxxxx 的錯誤訊息

請執行以下動作解決之:

apt-get install debian-keyring debian-archive-keyring
apt-key update

如果出現被鎖住的狀況:

E: 無法將 /var/lib/apt/lists/lock 鎖定 - open (11: 資源暫時無法取得)
E: Unable to lock directory /var/lib/apt/lists/

則刪掉lock檔即可

rm /var/lib/apt/lists/lock

升級一下系統

apt-get upgrade


安裝rsync(方便日後備份)、htop(方便觀察主機狀況)、 fping(設定排程時可能會用到)、 sshfs及nfs(方便遠端掛載備份,無此需求可免裝)、zip(以壓縮)、unzip(以解壓縮)、NTP (校時工具)、安裝ca-certificates,避免wget無法下載https檔但,以及https網址時,Google快速登入會出現錯誤訊息(Google_IOException: HTTP Error: (0) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs)

apt-get install rsync htop fping sshfs nfs-common zip unzip ntp ntpdate ca-certificates wget

 

 

 

 


:::

書籍目錄

展開 | 闔起

http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D51%26tbdsn%3D1719

計數器

今天: 2457245724572457
昨天: 4745474547454745
總計: 7712418771241877124187712418771241877124187712418