ubuntu 更新軟體源

2022-05-23 04:51:07 字數 2428 閱讀 7018

ubuntu 更新軟體源

deb  precise main restricted

deb-src precise main restricted

deb precise-updates main restricted

deb-src precise-updates main restricted

deb precise universe

deb-src precise universe

deb precise-updates universe

deb-src precise-updates universe

deb precise multiverse

deb-src precise multiverse

deb precise-updates multiverse

deb-src precise-updates multiverse

deb precise-backports main restricted universe multiverse

deb-src precise-backports main restricted universe multiverse

deb precise-security main restricted

deb-src precise-security main restricted

deb precise-security universe

deb-src precise-security universe

deb precise-security multiverse

deb-src precise-security multiverse

deb precise main

deb-src precise main

# sohu(非教育網推薦)

deb precise main restricted

deb-src precise main restricted

deb precise-updates main restricted

deb-src precise-updates main restricted

deb precise universe

deb-src precise universe

deb precise-updates universe

deb-src precise-updates universe

deb precise multiverse

deb-src precise multiverse

deb precise-updates multiverse

deb-src precise-updates multiverse

deb precise-backports main restricted universe multiverse

deb-src precise-backports main restricted universe multiverse

deb precise-security main restricted

deb-src precise-security main restricted

deb precise-security universe

deb-src precise-security universe

deb precise-security multiverse

deb-src precise-security multiverse

deb precise main

deb-src precise main

sudo apt-get update

sudo apt-get upgrade

apt-get install ia32-libs
nameserver 8.8.8.8

nameserver 8.8.4.4

儲存,然後執行

sudo resolvconf -u
再看/etc/resolv.conf,最下面就多了2行:

# dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

# do not edit this file by hand -- your changes will be overwritten

nameserver 8.8.8.8

nameserver 8.8.4.4

可以看到我們的設定已經加上了,然後再ping乙個網域名稱,當時就可以解析了,無需重啟。

ubuntu更新軟體源

身為在中國的ubuntu使用者,當您費勁千辛萬苦安裝好ubuntu,準備開始體驗一下開源作業系統的魅力的時候,您會發現有很多的軟體還沒有安裝或者是更新,這時候千萬不要急著去安裝或者更新,因為您還沒有更新ubuntu的軟體源,這樣直接安裝會非常的慢,慢到讓人eggache。如果您先更新了軟體源,一定會...

Ubuntu更新軟體源

在ubuntu中更新軟體的方法如下三步 1 備份原有的軟體原始檔 設定源的檔案在 etc apt sources.list中,首先先備份該檔案cp etc apt sources.list etc apt sources.list.bak 2.新增合適的源 一般我是新增的網易的源 deb trust...

ubuntu 更新軟體源

首先編輯軟體源配置檔案sources.list nano命令 nano 檔名 開啟或新建檔案 儲存 o ctrl o 離開 x ctrl x sudo nano etc apt sources.list用 注釋掉原先的內容,然後新增清華 tuna 的軟體源映象 根據ubuntu版本選擇對應映象源,獲...