ubuntu的新立得軟件更新速度和源有很大關系,,找到一個速度好的源在系統(tǒng)更新或軟件安裝的時候會有更好的效率,,所以我們要學會自己添加一些本地的或者是自己所需要的源,。 在Ubuntu里面 ,,源的配置文件是在 /etc/apt/sources.list文件,。所以我們用文本編輯軟件打開它,。(ubuntu里面自帶的gedit是很不錯的文本編輯軟件,,在這里我 們就使用gedit,也可以使用其他文本編輯軟件,,如 vi) sudo gedit /etc/apt/sources.list 里面的內容可以放心全部刪除,,然后代替為你所需要的源。(里面內容可以不刪除,,直接在后面添加即可) 如以下 (注:下面源為8.10) deb http://ubuntu./ubuntu/ intrepid main restricted universe multiverse deb http://ubuntu./ubuntu/ intrepid-backports main restricted universe multiverse deb http://ubuntu./ubuntu/ intrepid-proposed main restricted universe multiverse deb http://ubuntu./ubuntu/ intrepid-security main restricted universe multiverse deb http://ubuntu./ubuntu/ hardy-updates main restricted universe multiverse deb-src http://ubuntu./ubuntu/ intrepid main restricted universe multiverse deb-src http://ubuntu./ubuntu/ intrepid-backports main restricted universe multiverse deb-src http://ubuntu./ubuntu/ intrepid-proposed main restricted universe multiverse deb-src http://ubuntu./ubuntu/ intrepid-security main restricted universe multiverse deb-src http://ubuntu./ubuntu/ intrepid-updates main restricted universe multiverse 添加完成之后,,保存退出。 然后運行 sudo apt-get upgrade 進行源的更新,,可以查看有新的軟件包更新與否,。 jdk安裝方法: 1、添加這個源: deb http://us.archive./ubuntu/ hardy multiverse,。 2、sudo apt-get update 3,、sudo apt-get install sun-java6-jdk |
|