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

WSL2 ubuntu子系統(tǒng)換源

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

1.直接編輯/etc/apt/sources.list文件(需要使用 sudo):

將原文件做備份:

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

編輯文件

sudo vi /etc/apt/sources.list

2.將文件中的內(nèi)容刪除,將以下對應版本鏡像源復制到里面。

ubuntu的鏡像源

ubuntu18.04(bionic)配置如下:

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

ubuntu 20.04(focal) 配置如下:文章來源地址http://www.zghlxwxcb.cn/news/detail-658230.html

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

3.更新

sudo apt-get update

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

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

領支付寶紅包贊助服務器費用

相關文章

  • 自己在linux ubuntu子系統(tǒng)安裝過程中的各種問題(附加到 WSL2: 系統(tǒng)找不到指定的文件。Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FIL)

    自己在linux ubuntu子系統(tǒng)安裝過程中的各種問題(附加到 WSL2: 系統(tǒng)找不到指定的文件。Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FIL)

    無法將pDataLocalPackagesCanonicalGroupLimited.Ubuntu_79rhkp1fndgscLocalStateext4.vhdx”附加到 WSL2: 系統(tǒng)找不到指定的文件。 Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FILE_NOT_FOUND 解決方法; 1.控制面板下找到程序下的子選項,重新開啟關閉 更改設置后重啟 失敗 2.導入注冊列表(慎??!

    2024年04月13日
    瀏覽(35)
  • 手把手教學基于Windows11的wsl2使用ubuntu子系統(tǒng)

    手把手教學基于Windows11的wsl2使用ubuntu子系統(tǒng)

    打開“控制面板“-“程序“-“程序和功能“-“啟用或關閉windows功能“(側(cè)邊欄)-勾選“hyper-v“、“適用于Linux的Windows子系統(tǒng)“、“虛擬機平臺“ 控制面板:開始菜單中搜索打開即可 選擇“程序”,進入后選擇“程序和功能” 選擇“啟用或關閉windows功能” 勾選“Hyper-V“

    2024年01月20日
    瀏覽(23)
  • WSL2 ubuntu子系統(tǒng)OpenCV調(diào)用本機攝像頭的RTSP視頻流做開發(fā)測試

    WSL2 ubuntu子系統(tǒng)OpenCV調(diào)用本機攝像頭的RTSP視頻流做開發(fā)測試

    由于WSL2環(huán)境與主機系統(tǒng)隔離,訪問本機攝像頭是有限的,但是,可以通過第三方庫或網(wǎng)絡攝像頭來解決這個問題,本文將本地攝像頭通過rtsp流來給WSL2訪問。 詳見鏈接:https://blog.csdn.net/weixin_46119406/article/details/132271955?spm=1001.2014.3001.5501 Easydarwin是國內(nèi)團隊開發(fā)的開源流媒體框架

    2024年02月11日
    瀏覽(20)
  • Windows中wsl2為虛擬Linux子系統(tǒng)設置固定IP的方法

    Windows中wsl2為虛擬Linux子系統(tǒng)設置固定IP的方法

    ? 在使用Windows的wsl時,經(jīng)常需要Linux子系統(tǒng)和Windows宿主機之間通信。但wsl默認情況下,Linux子系統(tǒng)和Windows vEthernet虛擬適配器的IP每次啟動后都不一樣。給很多應用帶來不便。在百度上很多解決方法,經(jīng)過之次嘗試,認為下面的方法簡單有效。 我解決此問題時的系統(tǒng)環(huán)境:

    2023年04月09日
    瀏覽(23)
  • Windows下linux 子系統(tǒng) WSL2怎樣使用usb串口(USBIPD-win4.0.0)

    https://github.com/dorssel/usbipd-win 直接下載最新版本的msi文件安裝 windows查看usb設備 找到對應設備的編號,共享設備: 如 查看usb設備: 這時候就出現(xiàn)/dev/ttyUSB0啦

    2024年02月03日
    瀏覽(22)
  • Win10安裝Linux子系統(tǒng)WSL(ubuntu2204)及圖形桌面xfce4

    Win10安裝Linux子系統(tǒng)WSL(ubuntu2204)及圖形桌面xfce4

    什么是 WSL ? 在計算機上使用 Linux 系統(tǒng)通常有兩種方式:使用虛擬機或安裝 Linux 系統(tǒng)。使用虛擬機時開銷較大,直接使用 Linux 系統(tǒng)雖然可以帶來流暢體驗,但與 Windows 之間來回切換比較麻煩。為此,微軟開發(fā)了適用于 Linux 的 Windows 子系統(tǒng),簡稱 WSL。 WSL 可以讓開發(fā)人員可以

    2024年02月13日
    瀏覽(52)
  • xshell連接Windows中通過wsl安裝的linux子系統(tǒng)-Ubuntu 22.04

    xshell連接Windows中通過wsl安裝的linux子系統(tǒng)-Ubuntu 22.04

    Windows11下清理Docker Desktop與wsl的C盤空間占用(2023-10-12 20:50:41) 1.1、 啟動或關閉Windows功能-適用于Linux的Windows子系統(tǒng) 1.2 WSL 官方文檔 使用 WSL 在 Windows 上安裝 Linux 補充:例外情況(使用 WSL 1 而不是 WSL 2) 1.3、在Microsoft store中搜索Ubuntu安裝 在Microsoft store中搜索Ubuntu,找到帶LTS結(jié)

    2024年02月15日
    瀏覽(21)
  • [ubuntu]給WSL子系統(tǒng)ubuntu安一個桌面環(huán)境

    [ubuntu]給WSL子系統(tǒng)ubuntu安一個桌面環(huán)境

    sudo apt install xorg xfce4 xrdp -y sudo sed -i \\\'s/port=3389/port=3390/g\\\' /etc/xrdp/xrdp.ini sudo echo xfce4-session ~/.xsession sudo service xrdp restart 查看自己ip地址: ifconfig 然后在windows上任務欄搜遠程桌面 輸入ip地址:3390或者localhost:3390,用戶名輸入你的用戶名(比如:我的是u) 下拉,點擊Save as,存到桌

    2024年02月09日
    瀏覽(29)
  • wsl子系統(tǒng)Ubuntu18.04,cuDNN安裝

    wsl子系統(tǒng)Ubuntu18.04,cuDNN安裝

    如果覺得本篇文章對您的學習起到幫助作用,請 點贊 + 關注 + 評論 ,留下您的足跡?????? 本文主要wls子系統(tǒng)Ubuntu18.04安裝cuDNN,安裝cudnn坑巨多,因此記錄以備日后查看,同時,如果能夠幫助到更多人,也不勝榮幸。 下載Debian本地存儲庫安裝包。在發(fā)出以下命令之前,必須

    2024年02月11日
    瀏覽(27)
  • Windows下的Linux子系統(tǒng)(WSL)

    Windows下的Linux子系統(tǒng)(WSL)

    什么是WSL WSL:Windows subsystem for Linux,是用于Windows上的Linux的子系統(tǒng) 作用很簡單,可以在Windows系統(tǒng)中獲取Linux系統(tǒng)環(huán)境,并完全直連計算機硬件,無需通過虛擬機虛擬硬件,不會影響Windows系統(tǒng)本身 為什么使用WSL WSL作為自Windows10以來的全新特性正逐步顛覆開發(fā)人員的選擇 傳統(tǒng)方式下

    2024年01月17日
    瀏覽(29)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領取紅包

二維碼2

領紅包