2017-02-05 10 views
1

を実行しません:作曲の更新は、それがエラーを示す失敗した更新

[Composer\Downloader\TransportException]                   
The "https://packagist.org/packages.json" file could not be  downloaded: failed to open stream: 

接続は、私は私のブラウザからURLを訪問した場合、私はwgetのしようとすると、それは、通り抜ける

を拒否しましたまたは私の端末からカール URLは、それがエラーを示しています

--2017-02-05 20:41:58-- https://packagist.org/packages.json 
Connecting to 127.0.0.1:8888... failed: 
Connection refused. 

--2017-02-05 20:41:58-- https://packagist.org/packages.json 
Connecting to 127.0.0.1:8888... failed: Connection refused. 

私はとの何かだと思いますプロキシ接続が、私は問題を解決するように見えることはできません。

Reading ./composer.json 
Loading config file ./composer.json 
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid 
Executing command (/var/www/gidiscrap): git branch --no-color --no-      abbrev -v 
Cannot create cache directory  /home/oluwaslim/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache 
Cannot create cache directory /home/oluwaslim/.composer/cache/files/, or directory is not writable. Proceeding without cache 
Failed to initialize global composer: Composer could not find the config file: /home/oluwaslim/.composer/composer.json 
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section 
Reading /var/www/gidiscrap/vendor/composer/installed.json 
Running 1.3.2 (2017-01-27 18:23:41) with PHP 7.0.13-0ubuntu0.16.04.1 on Linux/4.4.0-59-generic 
Loading composer repositories with package information 
    Downloading https://packagist.org/packages.json using proxy 127.0.0.1:8888 
    Downloading https://packagist.org/packages.json using proxy 127.0.0.1:8888 
    Downloading https://packagist.org/packages.json using proxy 127.0.0.1:8888 


    [Composer\Downloader\TransportException]                   
    The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Connection refused 


Exception trace: 
() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:489 
Composer\Util\RemoteFilesystem->get() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:101 
Composer\Util\RemoteFilesystem->getContents() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:665 
Composer\Repository\ComposerRepository->fetchFile() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:479 
Composer\Repository\ComposerRepository->loadRootServerFile() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:258 
Composer\Repository\ComposerRepository->hasProviders() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:99 
Composer\DependencyResolver\Pool->addRepository() at phar:///usr/local/bin/composer/src/Composer/Installer.php:376 
Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:223 
Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:158 
Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:257 
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:850 
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:193 
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:227 
Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:124 
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:100 
Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:54 
require() at /usr/local/bin/composer:24 

ヘルプがにappriciatedされるだろう:私は-vv作曲の更新を実行する場合

ベローは完全なトレースです!私はこのエラーを過ぎているようには見えません

答えて

1

Am on Ubuntu Linux 16.04, and below is what i had to do to fix the issue, as i mentiond earlier its some problem with proxy settings.

ステップ1

  • 後藤システムは最終的にシステム全体を適用]をクリックします
  • ネットワークなし
  • から
  • ネットワークプロキシ
  • 変更を設定

ステップ2

  • 次のコマンドを入力して、次のコマンドを入力します。
    unset https_proxy && unset socks_proxy && unset ftp_proxy

最後にシステムを再起動してください。上記の解決策は私にとって問題を解決しました。

0

using proxy 127.0.0.1:8888はあなたのシステムに問題を示唆しています。私はそれが本当に積極的なアンチウィルスだと思います。 にはがプロキシ経由で接続されていなければ、ポート8888のlocalhostに接続する必要はありません。何をすることができますか?ウイルス対策設定を確認し、HTTPSを介した安全な接続のチェックをオフにします。

+0

私はウィルスに感染していません。私はLinux 16.04をインストールしました –

+0

プロキシを使用していますか?トールかもしれない? –

+0

いいえ! –

関連する問題