在公司裏面,網絡訪問都是通過ISA Server的(Microsoft® Internet Security and
Acceleration Server),在使用Windows的時候不會出現任何問題,可是前兩天裝了Ubuntu Linux,遇到了些問題。
我
使用firefox訪問網絡沒有問題,只需要設好代理服務器地址,瀏覽網站時輸入相應的用戶名和密碼即可,但在console下面使用apt-get更新
系統時有問題。
開始我覺得應該這樣設置代理:
export
http_proxy=http://domaindomainuser:[email protected]:8080
可
是總會出現這個錯誤:
407 Proxy Authentication Required ( The ISA Server
requires authorization to fulfill the request. Access to the Web Proxy
service is denied. )
後來在網上搜索了一下,找到方法解決這個問題了:
Download
ntlmaps-0.9.9.0.1 from here
$ tar -zxvf ntlmaps-0.9.9.0.1
$
vim ntlmaps-0.9.9.0.1/server.cfg
Edit
PARENT_PROXY,PARENT_PROXY_PORT,USER,PASSWORD to match your preferences,
then run main.py
$ ./ntlmaps-0.9.9.0.1/main.py &
$
export http_proxy=”http://127.0.0.1:5865
“
$
sudo apt-get update
Now, everything is OK.
ISA代理服務器下使用apt-get
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.