国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

ubuntu apt 更換阿里云源

這篇具有很好參考價值的文章主要介紹了ubuntu apt 更換阿里云源。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

簡介:Ubuntu系統(tǒng)的APT(Advanced Package Tool)是一個包管理器,用于在Ubuntu上安裝、卸載和更新軟件包。默認情況下,APT會從Ubuntu官方源中下載軟件包,但由于網(wǎng)絡(luò)原因,有時候下載速度較慢。阿里云是國內(nèi)較為常用的鏡像源之一,其提供了Ubuntu官方源的鏡像。

歷史攻略:

docker:更換鏡像源

更換Ubuntu apt阿里云源的步驟:

1、備份原有源

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

2、打開 sources.list 文件

sudo gedit /etc/apt/sources.list

3、替換為阿里云源

# 18.04

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

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

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

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

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


# 20.04

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

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

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

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

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

4、更新源文章來源地址http://www.zghlxwxcb.cn/news/detail-792280.html

sudo apt-get update

到了這里,關(guān)于ubuntu apt 更換阿里云源的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Centos8更換yum阿里云源報錯Failed to connect to mirrors.aliyuncs.com port 80: Connection refused]

    Centos8更換yum阿里云源報錯Failed to connect to mirrors.aliyuncs.com port 80: Connection refused]

    2021年12月31日CentOS 8 EOL。按照社區(qū)規(guī)則,CentOS 8的源地址 http://mirror.centos.org/centos/8/ 內(nèi)容已移除,目前第三方的鏡像站中均已移除CentOS 8的源。阿里云的源 http://mirrors.cloud.aliyuncs.com和http://mirrors.aliyun.com 也無法同步到CentOS 8的源。當您在阿里云上繼續(xù)使用默認配置的CentOS 8的源會

    2024年02月15日
    瀏覽(28)
  • ubuntu更換國內(nèi)apt源

    備份鏡像 查看自己ubuntu版本 設(shè)置國內(nèi)鏡像源 我ubuntu的版本是18.10,國內(nèi)上沒有維護對應(yīng)的鏡像,但是大版本一致即可(所以我采用了bionic) 更新軟件列表,完成換源 修復損壞的軟件包 更新軟件 ①防火墻相關(guān)

    2024年02月12日
    瀏覽(19)
  • Ubuntu之a(chǎn)pt更換國內(nèi)鏡像源

    Ubuntu之a(chǎn)pt更換國內(nèi)鏡像源

    ??Ubuntu系統(tǒng)默認使用的是Ubuntu官網(wǎng)鏡像源http://archive.ubuntu.com,網(wǎng)站位于境外,我們使用apt安裝軟件包的時候經(jīng)常出現(xiàn)無法連接的情況,如下圖所示。所以建議將系統(tǒng)apt安裝的鏡像源切換為國內(nèi)鏡像源。 root@c4b4e6b8e891:/# cat /etc/apt/sources.list |grep -Ev “ $| #” deb http://archive.ubu

    2024年02月04日
    瀏覽(20)
  • 更換 Ubuntu 系統(tǒng) apt 命令安裝軟件源

    更換 Ubuntu 系統(tǒng) apt 命令安裝軟件源

    清華大學開源軟件鏡像站 https://mirrors.tuna.tsinghua.edu.cn/ MIRRORS - 使用幫助 - ubuntu https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ Ubuntu 系統(tǒng) apt 命令安裝軟件默認源為國外源 (服務(wù)器位于國外),在國內(nèi)使用速度較慢,建議改為國內(nèi)的鏡像源服務(wù)器。 Ubuntu 的軟件源配置文件 /etc/apt/sources.

    2024年02月06日
    瀏覽(24)
  • ubuntu更換阿里鏡像源

    ubuntu更換阿里鏡像源

    為什么要更換鏡像呢? 因為剛安裝完Ubuntu系統(tǒng)后,在/etc/apt/目錄下有一個source.list文件夾,默認是官方的鏡像,也就是在國外的服務(wù)器!所有軟件的下載速度會非常慢,甚至無法下載! Ubuntu 官方的服務(wù)器在 國外 ,為了提高軟件 安裝/更新速度, ubuntu 提供了? 選擇最佳服務(wù)

    2024年02月13日
    瀏覽(15)
  • Ubuntu 快速更換阿里源

    Ubuntu 快速更換阿里源

    轉(zhuǎn)載:Ubuntu 快速更換阿里源-阿里云開發(fā)者社區(qū) (aliyun.com) 簡介: ?本文主要給大家講解如何為Ubuntu更換阿里源,通過以下四個步驟即可快速實現(xiàn)換源。 ? ?下面源信息中$Codename為第一步中系統(tǒng)的Codename,用記事本批量替換即可。 執(zhí)行以下命令,完成更新。 說明:可以通過u

    2024年04月10日
    瀏覽(12)
  • [Ubuntu]apt源改為阿里源(基于Ubuntu 20.04/18.04)

    我們需要根據(jù)我們自己Ubuntu系統(tǒng)版本來配置對應(yīng)的apt源 Ubuntu 20.04代號為:focal Ubuntu 19.04代號為:disco Ubuntu 18.04代號為:bionic Ubuntu 17.04代號為:zesty Ubuntu 16.04代號為:xenial 查看命令: ubuntu 20.04 == 發(fā)行版本代號為 focal ubuntu 18.04 == 發(fā)行版本代號為 bionic ubuntu 20.04 ubuntu 18.04

    2024年04月23日
    瀏覽(22)
  • Ubuntu1404 apt source源 地址 阿里云開源鏡像站

    阿里云 Ubuntu 14.04 apt source 源 地址 https://mirrors.aliyun.com/repo/ubuntu1404-lts.list ubuntu1404-lts.list 我們下期見,拜拜!

    2024年02月17日
    瀏覽(19)
  • ubuntu20.04更換阿里源

    在安裝Ubuntu系統(tǒng)后,在默認的源文件下是官方的鏡像,是在外國的服務(wù)器。所有的軟件的下載速度會很慢,慢一點還可以忍受,但是有一些還會報“無法定位軟件包”的錯誤。 所以我們需要更換鏡像源。 1.拷貝source.list cp -ra /etc/apt/sources.list /etc/apt/sources.list.bak 2.進入 sources

    2024年02月16日
    瀏覽(19)
  • Ubuntu22.04更換阿里鏡像源

    Ubuntu22.04更換阿里鏡像源

    由于Ubuntu默認源的服務(wù)器在國外,會導致下載軟件非常緩慢,甚至無法訪問,因此安裝ubuntu后建議進行換源操作。換源步驟如下: 1.備份源文件 通過以下命令對官方源的配置文件進行備份 2.修改源 如果沒有默認安裝vim,則可以將上述命令中vim替換為vi 3.修改源配置文件內(nèi)容

    2024年04月08日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包