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的使用它),但我似乎无法得到卷曲在所有的工作。我应该设置另一个变量吗?