2012-03-31 126 views
6

我輸入命令apt-get install apache2 --fix-missing(root用戶下),這是我收到:無法在Ubuntu上安裝Apache Web服務器,亞馬遜WS

Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
The following extra packages will be installed: 
    apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap 
    ssl-cert 
Suggested packages: 
    apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist 
The following NEW packages will be installed: 
    apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 
    libaprutil1-ldap ssl-cert 
0 upgraded, 10 newly installed, 0 to remove and 36 not upgraded. 
Need to get 2,945 kB/3,141 kB of archives. 
After this operation, 10.4 MB of additional disk space will be used. 
Do you want to continue [Y/n]? y 
Err http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ oneiric-updates/main apache2.2-bin i386 2.2.20-1ubuntu1.1 
    404 Not Found [IP: 10.161.51.124 80] 
Err http://security.ubuntu.com/ubuntu/ oneiric-security/main apache2.2-bin i386 2.2.20-1ubuntu1.1 
    404 Not Found [IP: 91.189.92.167 80] 
Err http://security.ubuntu.com/ubuntu/ oneiric-security/main apache2-utils i386 2.2.20-1ubuntu1.1 
    404 Not Found [IP: 91.189.92.167 80] 
Err http://security.ubuntu.com/ubuntu/ oneiric-security/main apache2.2-common i386 2.2.20-1ubuntu1.1 
    404 Not Found [IP: 91.189.92.167 80] 
Err http://security.ubuntu.com/ubuntu/ oneiric-security/main apache2-mpm-worker i386 2.2.20-1ubuntu1.1 
    404 Not Found [IP: 91.189.92.167 80] 
Err http://security.ubuntu.com/ubuntu/ oneiric-security/main apache2 i386 2.2.20-1ubuntu1.1 
    404 Not Found [IP: 91.189.92.167 80] 
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2.2-bin_2.2.20-1ubuntu1.1_i386.deb 404 Not Found [IP: 91.189.92.167 80] 
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-utils_2.2.20-1ubuntu1.1_i386.deb 404 Not Found [IP: 91.189.92.167 80] 
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2.2-common_2.2.20-1ubuntu1.1_i386.deb 404 Not Found [IP: 91.189.92.167 80] 
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-mpm-worker_2.2.20-1ubuntu1.1_i386.deb 404 Not Found [IP: 91.189.92.167 80] 
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2_2.2.20-1ubuntu1.1_i386.deb 404 Not Found [IP: 91.189.92.167 80] 
Unable to correct missing packages. 
E: Aborting install. 

任何幫助表示讚賞。

回答

15

先試運行下面的命令:

sudo apt-get update 

根據您的安裝,您可能還需要運行

sudo apt-get upgrade 

安裝軟件包更新。

+0

工作,謝謝。 – 2012-03-31 15:49:30