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

Dorothy avatar
By Dorothy
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


--
Tags: Linux

All Comments

Kyle avatar
By Kyle
at 2011-02-08T10:12
似乎不是網路問題 sources.list也無誤 你說的第2點明日我
再試看看 謝謝: )

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

Regina avatar
By Regina
at 2011-02-07T19:35
各位好 我用ubuntu 下sudo apt-get install gcc 無法安裝成功 顯示的訊息似乎是找不到檔案 其中有很多訊是菱型方格 應該是中文字然後我沒有裝中 文字型吧 請問是怎麼回事呢 我用同樣的指令裝gdb就可以裝 我看了sources.list 裡面的網址 似乎都是網路上大家常 ...

lenovo s10-3 小筆電usb安裝 ubuntu

Eartha avatar
By Eartha
at 2011-02-07T18:47
原因出現在 intel_idle 這個 module 當時對部份 Intel N10 chipset 過敏 (哈啾) https://bugs.launchpad.net/linux/+bug/634702 解決方法在 code freeze 後才出現所以只能用 0-day update 方式更新 如果 ...

lenovo s10-3 小筆電usb安裝 ubuntu

Ursula avatar
By Ursula
at 2011-02-07T17:41
各位板友好: 我是linux的初學者 前幾週 收到一台工作要用的 lenovo s10-3 的小筆電 (內無安裝任何作業系統) 老闆交代要 裝ubuntu 因為沒有光碟機 所以我在爬文後發現可以用 unetbootin 製作開機隨身碟 我所選用的是 10.10 live版 (在win ...

Ubuntu 9.10 asus w7s 突然無法連線

Hedwig avatar
By Hedwig
at 2011-02-07T15:40
作業系統:Ubuntu 9.10(從8.04一路升級而來,但卻因來源印象站有問題 無法再升上去) 筆電型號:asus w7 series(這台有過熱問題,有加散熱座) 上網上式:外面租屋的光纖上網(?)自動連線,應該是吧... ====================================== ...

封包分析

Lily avatar
By Lily
at 2011-02-07T02:56
我用的是Ubuntu 10.10 64-bit linux,使用3.5G網卡(華為E161)上網, 想要分析網卡所傳送出去的封包內容,但是使用wireshark或是tcpdump均無法 正確的抓取到interface, 請問是否有大大知道有那一套軟體可以 抓到3.5G網卡的所收發的封包,謝謝。 - ...