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

ubuntu換鏡像源(ubuntu換源)

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

ubuntu換鏡像源(ubuntu換源)




1. 備份鏡像源文件

  • 備份鏡像源設(shè)置文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
  • 編輯鏡像源設(shè)置文件
sudo gedit /etc/apt/sources.list

2. 根據(jù)不同 ubuntu 版本設(shè)置不同的鏡像源

  • ubuntu 根據(jù)系統(tǒng)版本的不同其設(shè)置的鏡像源也不同,版本有 focal 和 bionic 等,具體換源方式如下:
  • 使用如下命令,查詢自己的Ubuntu系統(tǒng)屬于哪種版本:
 lsb_release -c 

ubuntu換鏡像源(ubuntu換源)

2.1 focal 版本鏡像源

  • 復(fù)制下面的所有內(nèi)容替換掉原文件中的所有內(nèi)容(一次只可以選一個鏡像源,根據(jù)你的情況選)
# 阿里源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
# 清華園
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ eoan-proposed main restricted universe multiverse
  • 然后再執(zhí)行更新源命令:
sudo apt-get update
sudo apt-get upgrade

2.2 bionic 版本鏡像源

#  阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
 # 清華源
 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
#  中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

2.3 ubuntu 自帶源:

#deb cdrom:[Ubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819)]/ focal main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal universe
deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

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

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

參考文獻

1. ubuntu換鏡像源(ubuntu換源)- Fighting_1997 - CSDN
2. Ubuntu20.04 錯誤提醒:無法修正錯誤文章來源地址http://www.zghlxwxcb.cn/news/detail-466665.html

到了這里,關(guān)于ubuntu換鏡像源(ubuntu換源)的文章就介紹完了。如果您還想了解更多內(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)文章

  • VScode中添加頭文件和源文件的方法

    VScode中添加頭文件和源文件的方法

    ????????在正常情況下,若同一文件夾下若頭文件、源文件、和主要代碼在同一文件夾下,則可以正常運行程序。 如圖(此為Visual Studio 示例): ? 編譯結(jié)果(無報錯): ? ? 但在VScode中,同樣的使用方式會產(chǎn)生報錯。 如下: ? ?main.c: ?myheadfile.h: myheadfile.c: ? ?報錯如

    2023年04月09日
    瀏覽(17)
  • Visual Studio C++ 的 頭文件和源文件

    在Visual Studio C++中,頭文件(Header Files)和源文件(Source Files)是兩種不同的文件類型,用于組織和管理C++代碼。 頭文件(Header Files): 后綴名為 .h 或 .hpp 的文件,例如 example.h 。 包含類、結(jié)構(gòu)體、函數(shù)的聲明、宏定義和類型定義等。 通常用于存放函數(shù)原型、類的聲明、常

    2024年02月07日
    瀏覽(20)
  • CMake獲取目錄下所有源文件

    1、aux_source_directory指令 ????????aux_source_directory( dir variable ) 比如: ????????aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} ALL_SOURCE)?, 這樣將當前目錄所有的源文件(.cpp 和.c文件)都放到了ALL_SOURCE變量中,但是頭文件并沒有被包括進去,若在頭文件有函數(shù)的實現(xiàn)部分,采用這

    2024年02月15日
    瀏覽(19)
  • Linux--多個源文件編譯成同一個可執(zhí)行文件

    Linux--多個源文件編譯成同一個可執(zhí)行文件

    寫法一:不推薦 寫法二、推薦 $@: 代表目標文件? ? $^: 代表生成目標文件的所有源文件

    2024年02月15日
    瀏覽(99)
  • 【C++】源文件.cpp和頭文件.h分離編程

    【C++】源文件.cpp和頭文件.h分離編程

    將C++代碼分為頭文件(.h)和源文件(.cpp)的做法有以下幾個好處: 模塊化和代碼組織:將函數(shù)和類的聲明(包括函數(shù)原型、類的成員和屬性等)放在頭文件中,將函數(shù)和類的實現(xiàn)(具體的函數(shù)邏輯、成員函數(shù)的定義等)放在源文件中。這種分離有助于對代碼進行模塊化和組

    2024年02月09日
    瀏覽(23)
  • Vivado中如何修改IP源文件

    Vivado中如何修改IP源文件

    前一篇文章是通過改變JESD204B IP的設(shè)置,在Shared Logic里勾選in example design,來避免共用輸入時鐘的問題。那么還有沒有別的辦法呢?有沒有更直接點的實現(xiàn)方式呢? 答案是肯定的:可以 直接修改IP,將IBUFDS從IP里移出去 ,放到外面就可以共用了。修改IP是一個比較復(fù)雜的辦法,

    2024年02月11日
    瀏覽(27)
  • Lua之Lua源文件批量轉(zhuǎn)換為luac字節(jié)碼文件

    準備的工具:luac.exe? CSDN https://mp.csdn.net/mp_download/manage/download/UpDetailed Unity版:

    2024年02月11日
    瀏覽(25)
  • 教你怎么在電腦端下載西瓜視頻源文件

    教你怎么在電腦端下載西瓜視頻源文件

    家里長輩平時愛用西瓜視頻,看到喜歡的廣場舞就會收藏,甚至想下載到視頻機,晚上去廣場跟著跳??。 這時計算機專業(yè)出身的我,就派上用場了。不廢話,直接上手: 打開西瓜視頻官網(wǎng),搜索到想要的視頻 打開 F12(開發(fā)者工具) 切換到移動端模式,刷新頁面 在 Network

    2024年02月05日
    瀏覽(68)
  • 【STM32學(xué)習筆記】(5)—— STM32工程添加源文件和頭文件

    【STM32學(xué)習筆記】(5)—— STM32工程添加源文件和頭文件

    STM32的工程文件構(gòu)成較為復(fù)雜,同時為STM32工程文件添加源文件和頭文件也是較為復(fù)雜的,下面就由此文章來介紹怎么給STM32工程添加源文件(.c)與頭文件(.h),以跑馬燈實驗為例。 1、在Template工程文件夾下面新建一個 HARDWARE 的文件夾,用來存儲以后與硬件相關(guān)的代碼,然

    2024年02月16日
    瀏覽(25)
  • qt軟件崩潰的分析方法-定位源文件和行號

    軟件(debug版exe或者release版exe)在正常運行狀態(tài)下(不是gdb調(diào)試運行),如果軟件崩掉,那么會直接閃退,軟件什么也做不了,此時無法保存軟件中的狀態(tài)信息,此外,也無法提供任何軟件崩潰原因的信息。因此,軟件崩掉,我們需要能給出信息才行,指導(dǎo)我們修改源碼。解

    2024年02月07日
    瀏覽(15)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包