2017-11-28 13 views
0

PHP 5.6.11でUbuntu 12.04を実行し、Apache/2.4.12を実行しています。 PHPでCurlをインストール/実行しようとしています。 sudoを実行した後apt-get update私は次のコマンドを実行し、PHPのページからvar_dump(function_exists('curl_init')); printを実行すると、404エラーとbool(false)を取得します。 。404 PHP5-Curlをインストールする際のエラー

sudo apt-get install php5-curl && echo $? 
     Reading package lists... Done 
     Building dependency tree 
     Reading state information... Done 
     The following package was automatically installed and is no longer required: 
     kde-l10n-engb 
     Use 'apt-get autoremove' to remove it. 
     The following NEW packages will be installed: 
     php5-curl 
     0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 
     Need to get 30.0 kB of archives. 
     After this operation, 114 kB of additional disk space will be used. 
     WARNING: The following packages cannot be authenticated! 
     php5-curl 
     Install these packages without verification? [y/N] y 
     Err us.archive.ubuntu.com/ubuntu wily-updates/main php5-curl i386 5.6.11+dfsg-1ubuntu3.4 
     404 Not Found [IP: 91.189.91.26 80] 
     Err security.ubuntu.com/ubuntu wily-security/main php5-curl i386 5.6.11+dfsg-1ubuntu3.4 
     404 Not Found [IP: 91.189.88.149 80] 
     E: Failed to fetch security.ubuntu.com/ubuntu/… 404 Not Found [IP: 91.189.88.149 80] 

     E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

私はsudo find/-name curl.so\*を実行して、何を取得し、これはモジュールがまだインストールされていないことを意味言われました。

+1

Ubuntu 12.04の寿命が終わったので、おそらくそれはパッケージリポジトリがそれ以上維持されていないことを意味します。 –

+0

私はPHP5カールをインストールしていますか?私はPHP5がUbuntuの複数のバージョンで動作するので、OSには何も関係していませんか? –

+0

@RoccoTheTaco Karlが正しいです。 Ubuntu(Canonicalソフトウェアで管理されています)は、Ubuntu 12をサポートしなくなり、aptコマンドがアクセスしようとしているURLを削除しました。ここでは、自分で見ることができますhttp://us.archive.ubuntu.com/ubuntu%20wily-updates/main%20php5-curl –

答えて

0

あなたのパッケージリストは、(それがfoo5.1.2に取って代わられたときfoo5.1.1が削除されたため、通常は起こります)時代遅れで、もはや存在しないパッケージを指している - ちょうど404問題を修正する必要があり、apt-get update最初に実行します。

関連する問題