亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

將WSL系統(tǒng)更換國內(nèi)源的方法(固定路徑+國內(nèi)鏡像源+詳細(xì)教程)

 更新時間:2022年10月12日 09:12:57   作者:星辰同學(xué)wwq  
這篇文章主要介紹了將WSL系統(tǒng)更換國內(nèi)源的方法(固定路徑+國內(nèi)鏡像源+詳細(xì)教程),首先找到wsl鏡像源,替換鏡像源,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下

1.找到wsl鏡像源

首先,我們找到自己的wsl鏡像源所在的地方,在cmd中輸入**\wsl$**

在這里插入圖片描述

按enter可以看到自己的wsl在這里了

在這里插入圖片描述

如果不想以后難找,可以通過給一個網(wǎng)絡(luò)映射添加網(wǎng)絡(luò)位置,這樣就可以直接進(jìn)入啦

在這里插入圖片描述

完成之后就在網(wǎng)絡(luò)位置可以看見快捷進(jìn)入的文件夾了

在這里插入圖片描述

打開文件夾,進(jìn)入etc/apt文件夾,可以看見sources.list這一個文件,里面就是WSL-Ubuntu默認(rèn)的apt源是國外的源。

在這里插入圖片描述

2.替換鏡像源

以下附各類國內(nèi)鏡像源:
阿里云:

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.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

清華:

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

2.1 可以直接用記事本打開

直接將國內(nèi)鏡像ctrl+c、ctrl+v放入到sources.list里面

在這里插入圖片描述

2.2 通過sudo進(jìn)行修改

首先cd到鏡像源目錄下,為了確保 防止出現(xiàn)錯誤,用cp進(jìn)行備份

在這里插入圖片描述

使用sudo管理員權(quán)限,使用 vim 進(jìn)行修改:

在這里插入圖片描述

在這里插入圖片描述

先不要按i、a、o進(jìn)入編輯模式,如果按了可以通過esc取消。
我們先通過按ggdG這幾個字母將里面的內(nèi)容全部刪除,

注:通過按下gg后發(fā)現(xiàn)光標(biāo)移動到文件首行了。其中,gg為跳轉(zhuǎn)到文件首行;dG為刪除光標(biāo)所在行以及其下所有行的內(nèi)容。d為刪除,G為跳轉(zhuǎn)到文件末尾行;

在這里插入圖片描述

然后按i、a、o將鏡像源復(fù)制進(jìn)去就行啦。
最后按esc,再按下:wq!就可以退出啦

在這里插入圖片描述

3.更新鏡像源列表

一次輸入以下命令就可以更新啦

sudo apt-get update
sudo apt-get upgrade

在這里插入圖片描述

我的因為更新過了,所以很快就結(jié)束了,沒有裝過的,可能會等幾分鐘,耐心等待就可以了。

到此這篇關(guān)于將WSL系統(tǒng)更換國內(nèi)源的方法(固定路徑+國內(nèi)鏡像源+詳細(xì)教程)的文章就介紹到這了,更多相關(guān)WSL國內(nèi)源內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • HTTP協(xié)議詳細(xì)介紹

    HTTP協(xié)議詳細(xì)介紹

    HTTP是訪問互聯(lián)網(wǎng)使用的核心通信協(xié)議,也是所有web應(yīng)用程序使用的通信協(xié)議。本文詳細(xì)介紹了HTTP協(xié)議,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2022-06-06
  • UTC時間、GMT時間、本地時間、Unix時間戳的具體使用

    UTC時間、GMT時間、本地時間、Unix時間戳的具體使用

    本文主要介紹了UTC時間、GMT時間、本地時間、Unix時間戳的具體使用,文中通過示例代碼介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2021-09-09
  • chrome跳轉(zhuǎn)新頁面自動打開devtools調(diào)試工具的方法

    chrome跳轉(zhuǎn)新頁面自動打開devtools調(diào)試工具的方法

    Chrome開發(fā)者工具(DevTools)是Web開發(fā)中不可或缺的利器,為了解決頁面跳轉(zhuǎn)后無法查看初始化請求的問題,可以通過提前打開開發(fā)者工具(devtools)并設(shè)置保留日志來實現(xiàn),文中通過圖文介紹的非常詳細(xì),需要的朋友可以參考下
    2024-10-10
  • kettle在windows上安裝配置與實踐案例

    kettle在windows上安裝配置與實踐案例

    Kettle是一款開源的ETL工具,純java編寫,可以在Window、Linux、Unix上運行,綠色無需安裝,數(shù)據(jù)抽取高效穩(wěn)定,這篇文章主要介紹了kettle在windows上安裝配置與實踐案例,需要的朋友可以參考下
    2022-11-11
  • 谷歌師兄的算法刷題筆記

    谷歌師兄的算法刷題筆記

    這篇文章主要介紹了谷歌師兄的算法刷題筆記的相關(guān)資料,需要的朋友可以參考下
    2021-02-02
  • 多種語言(big5\gbk\gb2312\utf8\Shift_JIS\iso8859-1)的網(wǎng)頁編碼切換解決方案歸納

    多種語言(big5\gbk\gb2312\utf8\Shift_JIS\iso8859-1)的網(wǎng)頁編碼切換解決方案歸納

    多種語言(big5\gbk\gb2312\utf8\Shift_JIS\iso8859-1)的網(wǎng)頁編碼切換解決方案歸納
    2012-06-06
  • WebStorm 11.0.4安裝圖文教程

    WebStorm 11.0.4安裝圖文教程

    這篇文章主要為大家詳細(xì)介紹了WebStorm 11.0.4安裝圖文教程,文中安裝步驟介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2020-09-09
  • RPC、RMI、SOAP的區(qū)別詳解

    RPC、RMI、SOAP的區(qū)別詳解

    這篇文章主要介紹了RPC、RMI、SOAP的區(qū)別詳解,本文還同時講解了RPC、SOAP、WSDL的關(guān)系,需要的朋友可以參考下
    2015-07-07
  • ToDesk安裝與使用教程(全平臺支持)

    ToDesk安裝與使用教程(全平臺支持)

    這篇文章主要介紹了ToDesk安裝與使用教程,ToDesk非常好用而且是全平臺支持,喜歡的朋友跟隨小編一起看看吧
    2024-08-08
  • JSON常用的幾種注釋代碼示例

    JSON常用的幾種注釋代碼示例

    JSON是一種輕量級的數(shù)據(jù)交換格式,下面這篇文章主要給大家介紹了關(guān)于JSON常用的幾種注釋,文中通過代碼介紹的非常詳細(xì),需要的朋友可以參考下
    2024-08-08

最新評論