作者vividly0318 (懷念過去的單調~ )
看板Linux
標題Re: [問題]無法在ubuntu下用apt-get安裝gcc
時間Mon Feb 7 21:38:34 2011
※ 引述《drkkimo (花貓~ 努力研究 )》之銘言:
: 各位好 我用ubuntu 下sudo apt-get install gcc 無法安裝成功
: 顯示的訊息似乎是找不到檔案 其中有很多訊是菱型方格 應該是中文字然後我沒有裝中
: 文字型吧
: 請問是怎麼回事呢 我用同樣的指令裝gdb就可以裝
: 我看了sources.list 裡面的網址 似乎都是網路上大家常用的server 站台也
: 都可以連的上 照理應該不會不提供gcc吧
: 請問可以怎麼解決呢 謝謝:)
hello~ 你先用aptitude去search看gcc是否available on package list
如果沒有 ->
1. 有可能是 ethernet driver fail, 所以apt-get沒有update gcc到list
你可以透過下列cmd找出你的hardware
#lspci | more
#modprobe e2000 <- FOR EXAMPLE
2. install gcc and correspondent dependencies thru cdrom
#su -
#mount /dev/cdrom1 /cdrom
#apt-cdrom -d /cdrom add
#apt-get update
#apt-get install gcc
3. 另一個是可能/etc/apt/sources.list內的網站掛點 請比對一下:
deb
http://tw.archive.ubuntu.com/ubuntu/ lucid main
deb-src
http://tw.archive.ubuntu.com/ubuntu/ lucid main
## Major bug fix updates produced after the final release of the
## distribution.
deb
http://tw.archive.ubuntu.com/ubuntu/ lucid-updates main
deb-src
http://tw.archive.ubuntu.com/ubuntu/ lucid-updates main
## 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/ lucid universe
deb-src
http://tw.archive.ubuntu.com/ubuntu/ lucid universe
deb
http://tw.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src
http://tw.archive.ubuntu.com/ubuntu/ lucid-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/ lucid multiverse
deb-src
http://tw.archive.ubuntu.com/ubuntu/ lucid multiverse
deb
http://tw.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src
http://tw.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
## 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 lucid partner
deb-src
http://archive.canonical.com/ubuntu lucid partner
deb
http://security.ubuntu.com/ubuntu lucid-security main
deb-src
http://security.ubuntu.com/ubuntu lucid-security main
deb
http://security.ubuntu.com/ubuntu lucid-security universe
deb-src
http://security.ubuntu.com/ubuntu lucid-security universe
deb
http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src
http://security.ubuntu.com/ubuntu lucid-security multiverse
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.67.219.198
→ drkkimo:似乎不是網路問題 sources.list也無誤 你說的第2點明日我 02/07 23:38
→ drkkimo:再試看看 謝謝: ) 02/07 23:38