2013-02-21 116 views
0

我想我的Debian服務器上安裝GD庫,GD庫的,但下面的錯誤:無法安裝Debian的

# apt-get install php5-gd 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
The following extra packages will be installed: 
    libapache2-mod-php5 libt1-5 php5-common php5-mcrypt php5-mysql 
Suggested packages: 
    php-pear 
The following NEW packages will be installed: 
    libt1-5 php5-gd 
The following packages will be upgraded: 
    libapache2-mod-php5 php5-common php5-mcrypt php5-mysql 
4 upgraded, 2 newly installed, 0 to remove and 39 not upgraded. 
Need to get 3120kB of archives. 
After this operation, 545kB of additional disk space will be used. 
Do you want to continue [Y/n]? y 
WARNING: The following packages cannot be authenticated! 
    php5-mysql php5-mcrypt libapache2-mod-php5 php5-common libt1-5 php5-gd 
Install these packages without verification [y/N]? y 
Err http://security.debian.org lenny/updates/main php5-mysql 5.2.6.dfsg.1-1+lenny16 
    404 Not Found [IP: 128.101.240.212 80] 
Err http://security.debian.org lenny/updates/main php5-mcrypt 5.2.6.dfsg.1-1+lenny16 
    404 Not Found [IP: 128.101.240.212 80] 
Err http://security.debian.org lenny/updates/main libapache2-mod-php5 5.2.6.dfsg.1-1+lenny16 
    404 Not Found [IP: 128.101.240.212 80] 
Err http://security.debian.org lenny/updates/main php5-common 5.2.6.dfsg.1-1+lenny16 
    404 Not Found [IP: 128.101.240.212 80] 
Err http://security.debian.org lenny/updates/main libt1-5 5.1.2-3+lenny1 
    404 Not Found [IP: 128.101.240.212 80] 
Err http://security.debian.org lenny/updates/main php5-gd 5.2.6.dfsg.1-1+lenny16 
    404 Not Found [IP: 128.101.240.212 80] 
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-mysql_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80] 
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-mcrypt_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80] 
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/libapache2-mod-php5_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80] 
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-common_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80] 
Failed to fetch http://security.debian.org/pool/updates/main/t/t1lib/libt1-5_5.1.2-3+lenny1_i386.deb 404 Not Found [IP: 128.101.240.212 80] 
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-gd_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80] 
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

回答

3

我得到security.debian.org不同的IP(195.20.242.89 )。刷新DNS緩存,然後再試一次,這是可能的,他們已經搬到IP地址:

/etc/rc.d/init.d/nscd restart 

然後按照說明進行操作和運行

apt-get update 

試圖再次

+0

+1 get安裝它之前當我忘記運行apt-get更新時出現同樣的錯誤 – 2013-12-04 17:36:51