iT邦幫忙

0

在防火牆阻擋的公司內部,如何安裝 Ubuntu 之下可用的相關軟體套件?

esen 2009-04-06 12:49:5912537 瀏覽
  • 分享至 

  • twitterImage

我們知道 Ubuntu 或者 Debian 他有一個方便好用的軟體套件安裝指令叫做 apt-get
例如可以這麼下指令: sudo apt-get install kubuntu-desktop
就可以安裝 kubuntu-desktop 相關的所有所需的程式裝到好,
他背後好像有個 source.list 記載著相關的軟體要去哪兒抓,可能還有「軟體相依性」的管理機制在裡頭,讓你省去東抓一個、西抓一個、甚至還得用 c complier 重新 build 所有的東西,很是方便。

可是,如果我們的電腦是被「保護」在公司的防火牆之內,平常根本也無法外出去「ftp」好東西,甚至有些網站還被把關說是「賭博、色情、遊戲」相關而被禁止瀏覽、也禁止下載疑似病毒等執行檔,那上述方法就破功了。

這樣的情況下,請問您建議可以怎樣來安裝可在 Ubuntu 上使用的任何一套自己有興趣的軟體呢?
謝謝您。

wordsmith iT邦高手 1 級 ‧ 2009-04-07 10:07:19 檢舉
這裡有一個類似的討論,看看有沒有參考的地方。

可以先換個source list看看,有些時候來源有問題,也是會卡住。
James iT邦大師 6 級 ‧ 2009-04-07 14:29:55 檢舉
我比較常用以下兩個來源
http://ftp.twaren.net
http://ftp.tcc.edu.tw
esen iT邦新手 3 級 ‧ 2009-04-15 10:04:02 檢舉
感謝您,這一點非常有參考價值,可能也就是我遭遇的問題,那裡的討論有提到:
「...猜測應該是內部IP(192.169、、)要連到外界時,防火牆會要求輸入一組「帳號、密碼」,在以「瀏覽器」工作時,會跳出一組對話盒「要求輸入帳號、密碼」以放行此一連線。而apt-get作業時,沒有「對話盒」可以輸入這一組帳號密碼。 ...」
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

11
bizpro
iT邦大師 1 級 ‧ 2009-04-07 23:46:58
最佳解答

你可以看看你的 /etc/apt/soruces.list中有沒有deb ftp://...的項目, 我查過我的, 全部都是deb http://...並沒有走ftp的項目, 你裝的Ubuntu Server是英文版的嗎? 如果是中文版, 應該都是指向http來源的, 但是, 用中文版的Server會有方塊字, 必須要有中文終端, 我建議你用Ubuntu desktop版, (也可以用Xubuntu Desktop). 或者你可以將你的sources.list內容改為以下的內容, 記得要先備份你原來的sources.list檔喔.

deb cdrom:[Ubuntu-Server 8.10 _Intrepid Ibex_ - Release i386 (20081028.1)]/ intrepid main restricted

#deb cdrom:[Ubuntu-Server 8.10 _Intrepid Ibex_ - Release i386 (20081028.1)]/ intrepid main restricted

See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

newer versions of the distribution.

deb http://tw.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ intrepid main restricted

Major bug fix updates produced after the final release of the

distribution.

deb http://tw.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ intrepid-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://tw.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://tw.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://tw.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://tw.archive.ubuntu.com/ubuntu/ intrepid-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://tw.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

Uncomment the following two lines to add software from the 'backports'

repository.

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://tw.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu/ intrepid-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 intrepid partner

deb-src http://archive.canonical.com/ubuntu intrepid partner

deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
deb http://security.ubuntu.com/ubuntu intrepid-security universe
deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
deb-src http://security.ubuntu.com/ubuntu intrepid-security multiverse

30
James
iT邦大師 6 級 ‧ 2009-04-06 15:59:20

很多下載伺服器都支援http下載
可以從 系統->管理->軟體原始碼(軟體來源)
在[下載自]選其它,點選[選擇最佳伺服器],就可以找到合適的下載伺服器

esen iT邦新手 3 級 ‧ 2009-04-07 09:11:59 檢舉

謝謝您,不過抱歉我沒講清楚,我安裝的是Ubuntu Server,正好就缺那 「Windows manager」(GUI),所以看不到「系統-->管理...」等等GUI介面(金拍謝),不過我的server唯一可以對外連接的正好是 port 80(http),想像中如果選到您提到的:「...[下載自]選其它,點選[選擇最佳伺服器]...」,是否是會顯示透過 http(port 80) 下載下來的一堆「下載伺服器」的 web links ? 所有相依的軟體都會一併被下載安裝嗎?
可以再多指導一下嗎?
感恩。

wonton iT邦高手 6 級 ‧ 2009-04-07 13:54:29 檢舉

我自己不是用 ubuntu, 不過既然 apt 有一個 source list, 應該就可以在 list 中指定 http 來源, 而非 ftp 來源. 這樣在 apt-get 時就會透過 http link.

至於怎麼管理 apt 來源 by command line, 還有哪裡有 http resource, 可能就要你自己 google 一下了。

James iT邦大師 6 級 ‧ 2009-04-08 08:50:26 檢舉

[是否是會顯示透過 http(port 80) 下載下來的一堆「下載伺服器」的 web links ]
會自動測試所有的下載伺服器並選一個最快的。

我要發表回答

立即登入回答