0
我試圖在Ubuntu 16.04下載Laravel,但我有麻煩試圖讓作曲家在我們的網絡上工作。我相信這個問題要麼與我們的代理服務器或防火牆有關,這兩者(不幸的)都由我們的上級組織管理。作曲家不工作在代理
我試圖運行這個命令:
sudo composer global require "laravel/installer"
這給了我這個錯誤:當我運行作曲家診斷,我得到下面的輸出
Changed current directory to /home/administrator/.composer
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Cannot assign requested address
require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
:
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: FAIL
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json" file could not be downloaded: failed to open stream: Cannot assign requested address
Checking https connectivity to packagist: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Cannot assign requested address
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: failed to open stream: Connection refused
Checking disk free space: OK
現在,我已經運行這個命令來設置代理:
export HTTP_PROXY="http://proxy.<url>:8080"
我還修改/etc/profile文件到以下信息添加:
export HTTP_PROXY_REQUEST_FULLURI=0 # or false
export HTTPS_PROXY_REQUEST_FULLURI=0 #
而且我已禁用的IPv6(在/etc/sysctl.conf中)我注意到,在過去已經引起問題:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
其中一期工程(如apt-get的使用它),但我似乎無法得到捲曲在所有的工作。我應該設置另一個變量嗎?