2012-07-20 94 views
2

我一直在嘗試在我的Ubuntu VM上安裝GD工具包。操作很簡單:安裝GD工具包時出錯

sudo apt-get install php5-gd 

然而,當我運行它,我得到一個404(Not Found錯誤)一個包:

Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
The following NEW packages will be installed: 
    php5-gd 
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 
3 not fully installed or removed. 
Need to get 38.8 kB of archives. 
After this operation, 163 kB of additional disk space will be used. 
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-gd amd64 5.3.10-1ubuntu3.1 
    404 Not Found [IP: 91.189.92.153 80] 
Err http://security.ubuntu.com/ubuntu/ precise-security/main php5-gd amd64 5.3.10-1ubuntu3.1 
    404 Not Found [IP: 91.189.92.151 80] 
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-gd_5.3.10-1ubuntu3.1_amd64.deb 404 Not Found [IP: 91.189.92.151 80] 
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

有沒有人遇到這個問題?

+2

在嘗試安裝GD庫之前,您是否嘗試過「sudo apt-get update」? – user1190992 2012-07-20 14:57:24

+0

謝謝,正是我需要的......:-S – lfboulanger 2012-07-26 01:46:31

回答

3

得到的答案從user1190992 apt-get的只是過時的....

此命令的伎倆:

sudo apt-get update 
0

互聯網可能全部壞掉。嘗試

$捲曲91.189.92.153

+0

這是我的第一個想法,我做了幾個wgets ... – lfboulanger 2012-07-20 17:40:15

+0

您的建議是: <!DOCTYPE HTML PUBLIC「 - // W3C // DTD HTML 3.2最終// EN「> 指數/</h1>/

指數 – lfboulanger 2012-07-20 17:40:34