当前位置: 技术问答>linux和unix
apt-get install gcc
来源: 互联网 发布时间:2017-05-21
本文导语: 我的目的:是想在linux机器安装mailman,但是发现在./configure时,distutils模块有问题,由于该模块是python内置模块,我打算升级python来解决(从2.7.3升级到3.3.1),升级时需要有gcc。 我在阿里云主机执行如下命令(apt-get...
我的目的:是想在linux机器安装mailman,但是发现在./configure时,distutils模块有问题,由于该模块是python内置模块,我打算升级python来解决(从2.7.3升级到3.3.1),升级时需要有gcc。
我在阿里云主机执行如下命令(apt-get install gcc)时,报错
root@AY1406091621321640dbZ:/usr/local/python3/Python-3.3.0# clear
root@AY1406091621321640dbZ:/usr/local/python3/Python-3.3.0# apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binutils cpp cpp-4.6 gcc-4.6 libc-bin libc-dev-bin libc6 libc6-dev libgmp10 libgomp1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-4.6-locales gcc-multilib autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg
libquadmath0-dbg libmudflap0-dbg binutils-gold glibc-doc
The following NEW packages will be installed:
binutils cpp cpp-4.6 gcc gcc-4.6 libc-dev-bin libc6-dev libgmp10 libgomp1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev
The following packages will be upgraded:
libc-bin libc6
2 upgraded, 14 newly installed, 0 to remove and 104 not upgraded.
Need to get 9,722 kB/27.1 MB of archives.
After this operation, 55.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.4
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.4
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.4
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.4
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main linux-libc-dev amd64 3.2.0-51.77
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-proposed/main linux-libc-dev amd64 3.2.0-51.77
404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-bin_2.15-0ubuntu10.4_amd64.deb 404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.4_amd64.deb 404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-dev-bin_2.15-0ubuntu10.4_amd64.deb 404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.2.0-51.77_amd64.deb 404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6-dev_2.15-0ubuntu10.4_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
报找不到文件,比如对于libc-bin_2.15-0ubuntu10.4_amd64.deb没有,但是有libc-bin_2.15-0ubuntu10.5_amd64.deb。
请问有什么办法可以解决?
我在阿里云主机执行如下命令(apt-get install gcc)时,报错
root@AY1406091621321640dbZ:/usr/local/python3/Python-3.3.0# clear
root@AY1406091621321640dbZ:/usr/local/python3/Python-3.3.0# apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binutils cpp cpp-4.6 gcc-4.6 libc-bin libc-dev-bin libc6 libc6-dev libgmp10 libgomp1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-4.6-locales gcc-multilib autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg
libquadmath0-dbg libmudflap0-dbg binutils-gold glibc-doc
The following NEW packages will be installed:
binutils cpp cpp-4.6 gcc gcc-4.6 libc-dev-bin libc6-dev libgmp10 libgomp1 libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev
The following packages will be upgraded:
libc-bin libc6
2 upgraded, 14 newly installed, 0 to remove and 104 not upgraded.
Need to get 9,722 kB/27.1 MB of archives.
After this operation, 55.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.4
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.4
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.4
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.4
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main linux-libc-dev amd64 3.2.0-51.77
404 Not Found
Err http://cn.archive.ubuntu.com/ubuntu/ precise-proposed/main linux-libc-dev amd64 3.2.0-51.77
404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-bin_2.15-0ubuntu10.4_amd64.deb 404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.4_amd64.deb 404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-dev-bin_2.15-0ubuntu10.4_amd64.deb 404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.2.0-51.77_amd64.deb 404 Not Found
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6-dev_2.15-0ubuntu10.4_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
报找不到文件,比如对于libc-bin_2.15-0ubuntu10.4_amd64.deb没有,但是有libc-bin_2.15-0ubuntu10.5_amd64.deb。
请问有什么办法可以解决?
|
1,在安装过程中,若找不到,LINUX应该会有提示的,看按照提示能否解决。
2,sudo apt-get install build-essentials ***//**你要安装的mailman,连接网络会自动找到一些相关的软件包
3,最后考虑,自己在网上找资源,再利用sudo apt-get update,之后GCC
2,sudo apt-get install build-essentials ***//**你要安装的mailman,连接网络会自动找到一些相关的软件包
3,最后考虑,自己在网上找资源,再利用sudo apt-get update,之后GCC
|
先update一下试试?
不行再找其他的源。。
不行再找其他的源。。
|
sudo apt-get install build-essentials
|
换个源试试。