無法在ubuntu下用apt-get安裝gcc - Linux

By Dorothy
at 2011-02-07T21:38
at 2011-02-07T21:38
Table of Contents
※ 引述《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
--
: 各位好 我用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
--
Tags:
Linux
All Comments

By Kyle
at 2011-02-08T10:12
at 2011-02-08T10:12
Related Posts
無法在ubuntu下用apt-get安裝gcc

By Regina
at 2011-02-07T19:35
at 2011-02-07T19:35
lenovo s10-3 小筆電usb安裝 ubuntu

By Eartha
at 2011-02-07T18:47
at 2011-02-07T18:47
lenovo s10-3 小筆電usb安裝 ubuntu

By Ursula
at 2011-02-07T17:41
at 2011-02-07T17:41
Ubuntu 9.10 asus w7s 突然無法連線

By Hedwig
at 2011-02-07T15:40
at 2011-02-07T15:40
封包分析

By Lily
at 2011-02-07T02:56
at 2011-02-07T02:56