日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

ubuntu更换软件源方法和实验成功软件源地址

發布時間:2025/3/19 Ubuntu 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ubuntu更换软件源方法和实验成功软件源地址 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

ubuntu更換軟件源方法

轉載部分內容:

這些bionic、main、restricted、universe、multiverse是什么意思呢,該怎么修改才對,實在是讓人頭大。簡單了解一下:bionic是指你的ubuntu版本代號,可以用 lsb_release -c 命令查看: ubuntu 12.04 代號為precise ubuntu 14.04 代號為trusty ubuntu 15.04 代號為vivid ubuntu 15.10 代號為wily ubuntu 16.04 代號為xenial ubuntu18.04 代號為bionic 如果不注意這個,可能拷貝別人的sources.list文件對應的ubuntu版本和你的不一樣,就出錯了main、restricted、universe、multiverse的意義是: main 即“基本”組件,其中只包含符合Ubuntu的協議要求并由Ubuntu團隊維護支持的軟件。 restricted 即“受限”組件,其中包含了非常重要的,但并不具有合適的自由協議的軟件,如顯卡驅動,同樣有 ubuntu團隊維護支持。 universe 即“社區維護”組件,其中包含的軟件種類繁多,它們可能采用受限于協議,可能不是,但都不為ubuntu 團隊維護。 multiverse 即“非自由”組件,其中包括了不符合自由軟體要求而且不被Ubuntu團隊支援的軟件,通常為商業公司編寫的軟件。其實不必了解他們的具體含義,最好的方法就是不改動它們,保持原樣,只改動url部分,觀察到我的sources.list中,url均為:http://ports.ubuntu.com/ubuntu-ports 那么改為阿里云的鏡像節點URL就行了: http://mirrors.aliyun.com/ubuntu/可是改了以后,apt update仍然出現了很多404錯誤,查看錯誤信息才發現阿里云的鏡像節點 http://mirrors.aliyun.com/ubuntu/ 只包含x86 x64的bin,并不包含arm的bin,怎么會這樣呢,難道阿里云偷懶了嗎?只拷貝了PC版ubuntu需要的包? 后來才發現不是這樣的,是URL路徑不對,應該改為 http://mirrors.aliyun.com/ubuntu-ports重點 所以,直接生搬硬套copy網上的資料,是有可能會出問題的,最好,最簡單,最靠譜的辦法,就是打開你原本的/etc/apt/sources.list 只替換其中的host部分,其它部分一個字符都不要動 sudo vim /etc/apt/sources.list :%s/ports.ubuntu.com/mirrors.aliyun.com/g :wq sudo apt updateperfect !

實驗總結

實驗成功的ubuntu軟件源地址

裝過完好ROS Kinetic 的ubuntu1604的軟件源【http://mirrors.aliyun.com/ubuntu/電腦格式】

# deb cdrom:[Ubuntu 16.04.7 LTS _Xenial Xerus_ - Release amd64 (20200806)]/ xenial main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted## Major bug fix updates produced after the final release of the ## distribution. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://mirrors.aliyun.com/ubuntu/ xenial universe # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://mirrors.aliyun.com/ubuntu/ xenial multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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 xenial partner # deb-src http://archive.canonical.com/ubuntu xenial partnerdeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe # deb-src http://security.ubuntu.com/ubuntu xenial-security universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

樹莓派ubuntu mate軟件源【http://mirrors.aliyun.com/ubuntu-ports 其余不要動】

原始軟件源地址未變的情況下更換方法

sudo vim /etc/apt/sources.list :%s/ports.ubuntu.com/mirrors.aliyun.com/g :wq sudo apt update

換源更新成功


成功安裝gedit

總結

以上是生活随笔為你收集整理的ubuntu更换软件源方法和实验成功软件源地址的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。