欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Ubuntu設(shè)置國(guó)內(nèi)鏡像的全部流程

 更新時(shí)間:2024年06月11日 09:14:36   作者:我就是菜  
Ubuntu作為廣泛使用的Linux發(fā)行版,其默認(rèn)的鏡像源可能因?yàn)榈乩砦恢煤途W(wǎng)絡(luò)問(wèn)題導(dǎo)致下載速度緩慢,本文將指導(dǎo)用戶如何根據(jù)自己所在的地理位置,選擇并設(shè)置最適合的國(guó)內(nèi)鏡像源,需要的朋友可以參考下

01.簡(jiǎn)介

Ubuntu作為廣泛使用的Linux發(fā)行版,其默認(rèn)的鏡像源可能因?yàn)榈乩砦恢煤途W(wǎng)絡(luò)問(wèn)題導(dǎo)致下載速度緩慢。本文將指導(dǎo)用戶如何根據(jù)自己所在的地理位置,選擇并設(shè)置最適合的國(guó)內(nèi)鏡像源。

02.查詢版本

使用命令 lsb_release -a 查詢自己的系統(tǒng)版本號(hào)

icai@CSJMOVE:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
icai@CSJMOVE:~$

注意Codename 這個(gè)發(fā)行版代號(hào), Ubuntu的每個(gè)發(fā)行版都擁有一個(gè)獨(dú)特的代號(hào),開(kāi)發(fā)代號(hào)需要與鏡像源對(duì)應(yīng)。

03.鏡像源(阿里云)

(1)ubuntu 14.04 LTS (trusty) (EOL)

deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

## Not recommended
# deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

(2)ubuntu 16.04 LTS (xenial) (EOL)

deb https://mirrors.aliyun.com/ubuntu/ xenial main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial main

deb https://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb https://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial universe
deb https://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb https://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security main
deb https://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security universe

(3)ubuntu 18.04 LTS (bionic)

deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

(4)ubuntu 20.04 LTS (focal)

deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
```(5)ubuntu 22.04 LTS (jammy)
```Shell
deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

(5) ubuntu 23.04 (lunar)

deb https://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ lunar-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ lunar-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse

(6)ubuntu 24.04 (noble)

deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse

04.設(shè)置方法

(1)備份

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

(2)編輯

vim /etc/apt/sources.list

(3)更新

sudo apt update
sudo apt upgrade

到此這篇關(guān)于Ubuntu設(shè)置國(guó)內(nèi)鏡像的全部流程的文章就介紹到這了,更多相關(guān)Ubuntu設(shè)置鏡像內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • CentOS7環(huán)境搭建python3以及與python2實(shí)現(xiàn)共存的方法

    CentOS7環(huán)境搭建python3以及與python2實(shí)現(xiàn)共存的方法

    這篇文章主要介紹了CentOS7環(huán)境搭建python3以及與python2實(shí)現(xiàn)共存的方法,結(jié)合實(shí)例形式簡(jiǎn)單分析了CentOS7環(huán)境下安裝Python3的步驟、命令及測(cè)試代碼示例,非常簡(jiǎn)單易懂,需要的朋友可以參考下
    2018-06-06
  • Linux獲取docker容器中的文件路徑的方法

    Linux獲取docker容器中的文件路徑的方法

    在Linux系統(tǒng)中,Docker容器中的文件路徑與宿主機(jī)上的文件系統(tǒng)是隔離的,因此我們不能直接使用宿主機(jī)的文件系統(tǒng)路徑來(lái)訪問(wèn)容器內(nèi)的文件,但是,有幾種方法可以讓我們獲取或操作Docker容器中的文件,本文介紹的非常詳細(xì),需要的朋友可以參考下
    2024-11-11
  • Linux系統(tǒng)下netstat命令詳細(xì)介紹

    Linux系統(tǒng)下netstat命令詳細(xì)介紹

    大家好,本篇文章主要講的是Linux系統(tǒng)下netstat命令詳細(xì)介紹,感興趣的同學(xué)趕快來(lái)看一看吧,對(duì)你有幫助的話記得收藏一下,方便下次瀏覽
    2021-12-12
  • Linux提示網(wǎng)絡(luò)不可達(dá)問(wèn)題

    Linux提示網(wǎng)絡(luò)不可達(dá)問(wèn)題

    這篇文章主要介紹了Linux提示網(wǎng)絡(luò)不可達(dá)問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2023-12-12
  • PHP程序員玩轉(zhuǎn)Linux系列 nginx初學(xué)者引導(dǎo)

    PHP程序員玩轉(zhuǎn)Linux系列 nginx初學(xué)者引導(dǎo)

    這篇文章主要為大家詳細(xì)介紹了PHP程序員玩轉(zhuǎn)Linux系列文章,帶大家初步認(rèn)識(shí)一下nginx,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2017-04-04
  • CentOS7安裝配置 Redis的方法步驟

    CentOS7安裝配置 Redis的方法步驟

    這篇文章主要介紹了CentOS7安裝配置 Redis的方法步驟,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2019-04-04
  • 詳解Linux進(jìn)程調(diào)度策略

    詳解Linux進(jìn)程調(diào)度策略

    這篇文章主要介紹了詳解Linux進(jìn)程調(diào)度策略,以及代碼實(shí)現(xiàn)中重要環(huán)節(jié)的指點(diǎn),一起來(lái)學(xué)習(xí)下。
    2017-11-11
  • centos通過(guò)yum安裝php的教程

    centos通過(guò)yum安裝php的教程

    這篇文章主要介紹了centos通過(guò)yum安裝php的教程,本文給大家提到了CentOS 7下Yum安裝PHP7.2步驟,非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2020-01-01
  • Linux利用lsof/extundelete工具恢復(fù)誤刪除的文件或目錄

    Linux利用lsof/extundelete工具恢復(fù)誤刪除的文件或目錄

    這篇文章主要給大家介紹了關(guān)于Linux利用lsof/extundelete工具恢復(fù)誤刪除的文件或目錄的相關(guān)資料,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2020-08-08
  • Ubuntu下Docker CE的安裝

    Ubuntu下Docker CE的安裝

    今天小編就為大家分享一篇關(guān)于Ubuntu下Docker CE的安裝,小編覺(jué)得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來(lái)看看吧
    2019-01-01

最新評(píng)論