Ubuntu18 將系統預設源更改為阿里源

2021-08-22 16:36:23 字數 2214 閱讀 1992

ubuntu預設使用的國外的源,在更新的時候會很慢,可以使用國內的阿里的源,那效率和速度,你知道的~

1.先備份檔案

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 

2.清空

sudo > /etc/apt/sources.list

3.寫入

sudo vim /etc/apt/sources.list

deb  trusty main restricted universe multiverse

deb trusty-security main restricted universe multiverse

deb trusty-updates main restricted universe multiverse

deb trusty-proposed main restricted universe multiverse

deb trusty-backports main restricted universe multiverse

deb-src trusty main restricted universe multiverse

deb-src trusty-security main restricted universe multiverse

deb-src trusty-updates main restricted universe multiverse

deb-src trusty-proposed main restricted universe multiverse

deb-src trusty-backports main restricted universe multiverse

4.更新

sudo apt-get update&&sudo apt-get upgrade&&sudo apt-get install -f

更新ing ...

get:62  trusty-backports/universe i386 packages [43.2 kb]

get:63 trusty-backports/universe amd64 packages [43.1 kb]

get:64 trusty-backports/universe translation-en [36.8 kb]

get:65 trusty-backports/multiverse amd64 packages [1,567 b]

get:66 trusty-backports/multiverse i386 packages [1,551 b]

get:67 trusty-backports/multiverse translation-en [1,215 b]

get:68 trusty/restricted sources [5,433 b]

get:69 trusty/universe sources [6,399 kb]

get:70 trusty/multiverse sources [174 kb]

get:71 trusty/main sources [1,064 kb]

get:72 trusty/main amd64 packages [1,350 kb]

get:73 trusty/main i386 packages [1,348 kb]

get:74 trusty/restricted amd64 packages [13.0 kb]

get:75 trusty/restricted i386 packages [13.4 kb]

get:76 trusty/universe amd64 packages [5,859 kb]

get:77 trusty/universe i386 packages [5,866 kb]

get:78 trusty/multiverse i386 packages [134 kb]

get:79 trusty/multiverse amd64 packages [132 kb]

fetched 30.3 mb in 34s (896 kb/s)

reading package lists... done

ubuntu18系統引導修復

問題 修改了 etc default grub中的grub default,導致電腦開機自動進入bios無法進入系統 1,以u盤作為啟動盤,在引導頁按e進入grub介面 2,注意grub與grub2的區別,本機是grub2 3,輸入命令 ls 檢視所有分割槽,其中有 hd1,gpt2 hd1代表磁碟...

Ubuntu18開啟預設root登入方法

預設的ubuntu 18.04系統在登陸介面上是不支援root使用者直接登入的,但是你可以使用下面的方法讓ubuntu 18.04也支援root登入,其他類似的版本參考在ubuntu kylin 18.10系統中使用root使用者登陸的方法。通常情況下,在ubuntu 18.04中的普通使用者只能通...

Ubuntu18安裝pip並更改pip源為國內源

ubuntu18自帶python3.6.7,沒有python2,所以安裝python3的pip要按以下命令安裝 安裝pip sudo apt install python3 pip y 如果是python pip則會安裝python2的而且會附帶安裝python2 通過命令查詢pip的版本,顯然不是...