<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Ubuntu 22.04/24.04 LTS 用 sed 快速換國內源

      Ubuntu 配置國內源

      • 首先了解下/etc/apt/sources.list文件
        • /etc/apt/sources.list是一個普通可編輯的文本文件,保存了ubuntu軟件更新的源服務器的地址。
        • /etc/apt/sources.list.d/*.list 該文件夾下的文件是第三方軟件的源,可以分別存放不同的第三源地址,只需“擴展名”為list即可。

      配置步驟如下:

      時間:2024-10
      請注意:選擇和系統對應的版本,使用 lsb_release -a 查看系統版本

      • 1.Ubuntu配置文件位置:/etc/apt/sources.list

      • 2.需用root權限進入:sudo vim /etc/apt/sources.list

      有2種修改方式

      • 1.sed 把原文件中:archive.ubuntu.com,替換為:mirrors.aliyun.com(或其他服務器列表源網址)
      • 2.直接復制下方對應版本的內容,覆蓋原文件中的內容即可。

      修改完成后,更新本地安裝包數據庫

      方式一

      以 Ubuntu 22.04.5 LTS 為例

      服務器列表
      可將 http://cn.archive.ubuntu.com/ubuntu/ 替換為下列任意服務器 :
      
      # Ubuntu 官方(歐洲,國內較慢,無同步延遲)
      http://archive.ubuntu.com/ubuntu/
      # Ubuntu 官方中國(目前是阿里云)
      http://cn.archive.ubuntu.com/ubuntu/
      # 網易(廣東廣州電信/聯通千兆雙線接入)
      http://mirrors.163.com/ubuntu/
      # 搜狐(山東聯通千兆接入)
      http://mirrors.sohu.com/ubuntu/
      # 阿里云(北京萬網/浙江杭州阿里云服務器雙線接入)
      http://mirrors.aliyun.com/ubuntu/
      # 騰訊
      http://mirrors.cloud.tencent.com/ubuntu/
      # 華為
      http://mirrors.huaweicloud.com/ubuntu/
      # 清華
      https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
      
      
      root@ubuntu2204:~# lsb_release -a
      No LSB modules are available.
      Distributor ID:	Ubuntu
      Description:	Ubuntu 22.04.5 LTS
      Release:	22.04
      Codename:	jammy
      
      
      root@ubuntu2204:~# sed -i_bak 's/cn.archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list  # 更換阿里源
      或
      root@ubuntu2204:~# sed -i_bak 's/cn.archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list  # 更換清華源
      
      root@ubuntu2204:~# apt update
      root@ubuntu2204:~# apt upgrade -y
      
      

      方式二

      以下內容的具體含義如下:
      1)每一行的開頭是deb或者deb-src,分別表示直接通過.deb文件進行安裝和通過源文件的方式進行安裝。
      2)deb或者deb-src字段之后,是一段URL,之后是五個用空格隔開的字符串,分別對應相應的目錄結構。

      • ubuntu 22.04 LTS (jammy)
      # 阿里源
      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
      
      
      
      # 清華源
      # 默認注釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消注釋
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
      
      # 以下安全更新軟件源包含了官方源與鏡像站配置,如有需要可自行修改注釋切換
      deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
      # deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
      
      # 預發布軟件源,不建議啟用
      # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
      # # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
      
      • 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
      
      
      
      # 清華源
      # 默認注釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消注釋
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
      
      # 以下安全更新軟件源包含了官方源與鏡像站配置,如有需要可自行修改注釋切換
      deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
      # deb-src http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
      
      # 預發布軟件源,不建議啟用
      # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse
      # # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse
      
      posted @ 2024-10-18 09:27  講文張字  閱讀(6316)  評論(0)    收藏  舉報
      返回頂部
      主站蜘蛛池模板: 中文日产幕无线码一区中文| 色综合久久一区二区三区| 亚洲色婷婷一区二区三区| 国产女同疯狂作爱系列| 日韩av高清在线看片| 韩国精品一区二区三区| 亚洲另类丝袜综合网| 国产精品成人自产拍在线| 漂亮人妻被修理工侵犯 | 9191国语精品高清在线| 久久综合国产色美利坚| 岛国最新亚洲伦理成人| 成人免费无遮挡无码黄漫视频| 国产jlzzjlzz视频免费看| 猫咪社区免费资源在线观看| 亚洲成人av在线高清| 99视频在线精品国自产拍 | 国产成人免费永久在线平台| 青青青青国产免费线在线观看| 国产色a在线观看| 亚洲中文字幕第二十三页| 亚洲 日本 欧洲 欧美 视频| 国产成人精品亚洲一区二区| 久久无码中文字幕免费影院蜜桃 | 国内精品久久人妻无码妲| 国产精品午夜无码AV天美传媒| 欧美激情a∨在线视频播放| 日韩一区二区三区在线视频| 亚洲精品无码日韩国产不卡av| 久热天堂在线视频精品伊人| japanese边做边乳喷| 伦伦影院精品一区| 台州市| 欧美精品18videosex性欧美| 国产精品人妻中文字幕| 亚洲欧洲∨国产一区二区三区| 99久久国产综合精品女图图等你| 亚洲av无码之国产精品网址蜜芽| 国产AV影片麻豆精品传媒| 超碰人人超碰人人| 巴楚县|