box icon indicating copy to clipboard operation
box copied to clipboard

box get [email protected] 无法下载

Open TimeIsGoOn opened this issue 3 years ago • 1 comments

环境:
sun@sun-B550M-S2H:/home/sun$ 
sun@sun-B550M-S2H:/home/sun$ hostnamectl 
 Static hostname: sun-B550M-S2H
       Icon name: computer-desktop
         Chassis: desktop
      Machine ID: da63f6a219ff47a9998c8ffbfa1216d9
         Boot ID: 0a5e1698a7ba4448adb1730b6b26ad81
Operating System: Ubuntu 22.04.1 LTS              
          Kernel: Linux 5.17.0-1026-oem
    Architecture: x86-64
 Hardware Vendor: Gigabyte Technology Co., Ltd.
  Hardware Model: B550M S2H
sun@sun-B550M-S2H:/home/sun$ 

env
sun@sun-B550M-S2H:/home/sun$ env |grep  proxy
https_proxy=http://192.168.5.127:8889
http_proxy=http://192.168.5.127:8889
sun@sun-B550M-S2H:/home/sun$ 

测试代理可用
sun@sun-B550M-S2H:/home/sun$ curl ip.gs
8.218.110.142
sun@sun-B550M-S2H:/home/sun$ 

sun@sun-B550M-S2H:/home/sun$ 
sun@sun-B550M-S2H:/home/sun$ curl https://raw.githubusercontent.com/hyperf/box/master/pkgs.json |grep swoole
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3477  100  3477    0     0  16061      0 --:--:-- --:--:-- --:--:-- 16023
    "swoole-cli": {
        "repo": "swoole/swoole-src",
        "bin": "swoole-cli",
        "release_asset_keyword": "swoole-cli",
            "Linux": "swoole-cli-${{version}}-linux-x64.tar.xz",
            "Darwin": "swoole-cli-${{version}}-macos-x64.tar.gz"
sun@sun-B550M-S2H:/home/sun$ 

上面是机器环境情况,下面是box的安装


wget https://github.com/hyperf/box/releases/download/v0.5.5/box_x86_64_linux -O box
sudo mv ./box  /usr/bin/box
sun@sun-B550M-S2H:/home/sun$ sudo chmod 755 /usr/bin/box

sun@sun-B550M-S2H:/home/sun$ box -V
Console Tool
sun@sun-B550M-S2H:/home/sun$ 


box config set github.access-token   <Your Token> 这里我设置了token

sun@sun-B550M-S2H:/home/sun$ box get [email protected]


[ERROR] cURL error 28: Proxy CONNECT aborted due to timeout (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://raw.githubusercontent.com/hyperf/box/master/pkgs.json
App\PkgDefinitionManager::getPkgs(): Return value must be of type array, null returned
sun@sun-B550M-S2H:/home/sun$ 
sun@sun-B550M-S2H:/home/sun$ 



请问我现在应该如何解决这个问题呢?

TimeIsGoOn avatar Jan 13 '23 06:01 TimeIsGoOn

image 我也是出现这个,挂了梯子也不行

timeblog avatar May 10 '23 06:05 timeblog