sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
2.編輯配置檔案
sudo nano /etc/apt/sources.list
將其內容替換為某一映象站鏈結列表即可。(詳見各大映象站鏈結列表內容)
3.更新鏈結索引
sudo apt-get update
sudo apt-get upgrade
**:
# 預設注釋了原始碼映象以提高 apt update 速度,如有需要可自行取消注釋
deb bionic main restricted universe multiverse
# deb-src bionic main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
# deb-src bionic-updates main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
# deb-src bionic-backports main restricted universe multiverse
deb bionic-security main restricted universe multiverse
# deb-src bionic-security main restricted universe multiverse
# 預發布軟體源,不建議啟用
# deb bionic-proposed main restricted universe multiverse
# deb-src bionic-proposed main restricted universe multiverse
**:
# 預設注釋了原始碼倉庫,如有需要可自行取消注釋
deb bionic main restricted universe multiverse
# deb-src bionic main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
# deb-src bionic-updates main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
# deb-src bionic-backports main restricted universe multiverse
deb bionic-security main restricted universe multiverse
# deb-src bionic-security main restricted universe multiverse
# 預發布軟體源,不建議啟用
# deb bionic-proposed main restricted universe multiverse
# deb-src bionic-proposed main restricted universe multiverse
**:
# 預設注釋了原始碼倉庫,如有需要可自行取消注釋
deb bionic main restricted universe multiverse
# deb-src bionic main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
# deb-src bionic-updates main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
# deb-src bionic-backports main restricted universe multiverse
deb bionic-security main restricted universe multiverse
# deb-src bionic-security main restricted universe multiverse
# 預發布軟體源,不建議啟用
# deb bionic-proposed main restricted universe multiverse
# deb-src bionic-proposed main restricted universe multiverse
**:
# 預設注釋了原始碼倉庫,如有需要可自行取消注釋
deb bionic main restricted universe multiverse
# deb-src bionic main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
# deb-src bionic-updates main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
# deb-src bionic-backports main restricted universe multiverse
deb bionic-security main restricted universe multiverse
# deb-src bionic-security main restricted universe multiverse
# 預發布軟體源,不建議啟用
# deb bionic-proposed main restricted universe multiverse
# deb-src bionic-proposed main restricted universe multiverse
其他映象站可參考部落格**: Ubuntu 18 04 更改靜態IP
sudo vi etc netplan 01 network manager all.yaml,配置檔案可按如下內容修改。network version 2 renderer networkd ethernets ens33 配置的網絡卡名稱 dhcp4 no dhcp4關閉 dhcp6 no dh...
ubuntu18 04更改mysql密碼
今日份筆記 在ubuntu上面修改mysql密碼 1.進入 etc mysql目錄下,然後sudo cat debian.cnf檢視裡面的使用者名稱和密碼,然後使用這個檔案中的使用者名稱和密碼進入mysql 2.使用mysql登入名令 mysql uroot p 然後輸入上圖中的密碼進行登入 mys...
Ubuntu 18 04 更改靜態IP
sudo vi etc netplan 01 network manager all.yaml,配置檔案可按如下內容修改。network version 2 renderer networkd ethernets ens33 配置的網絡卡名稱 dhcp4 no dhcp4關閉 dhcp6 no dh...