如有问题,欢迎到 网络跳越论坛 或TG群组 https://t.me/hijkclub 交流。

应网友请求,今天做了Ubuntu(仅支持Ubuntu 16.04及以上版本)系统的v2ray的一键安装脚本,目前已经上传到 Github。如果您的系统是CentOS,请参考这个教程: v2ray一键脚本

注意:

1. 如果你有域名,强烈建议使用 v2ray带伪装一键脚本Ubuntu版,能有效应付近些天的疯狂封杀,提供稳如狗的体验!

2. 理论上只要流量够、服务器扛得住,同一个配置支持无数人、无限设备使用。如果想为不同的人配置不同的id,请参考:v2ray多用户配置

3. BBR换成魔改BBR/BBR Plus/锐速清参考:安装魔改BBR/BBR Plus/锐速(Lotserver)

使用教程

首先,请准备一台境外服务器。想要服务器速度快请参考 搬瓦工购买服务器详细教程 或从 CN2 GIA VPS和商家推荐 选购 ,想ip被封后免费换请参考:购买vultr服务器超详细图文教程

接着,登录到服务器(windows请参考 Bitvise连接Linux服务器教程,mac用户请参考 Mac电脑连接Linux教程),在终端(黑框框)里输入如下命令:

apt install -y curl
bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/ubuntu_install_v2ray.sh)

按回车键,屏幕出现 “请设置v2ray的端口[1-65535]” 的提示,设置v2ray端口号(例如12345,不能是22)。

接下来屏幕上会疯狂出现一些你看得懂看不懂的东西,如果安装过程卡住,请耐心等待几分钟;期间网络断开(windows上表现为黑框框中或者顶部标题出现disconnected字样,mac表现为终端出现“closed by remote host”或”broken pipe”),请重新连接后再次执行命令。脚本安装成功后截图如下:

v2ray一键安装脚本

v2ray一键安装脚本

到此服务端配置完毕,服务器可能会自动重启(没提示重启则不需要),windows终端出现“disconnected”,mac出现“closed by remote host”说明服务器成功重启了

V2ray一键脚本做了如下事情:

  1. 更新系统到最新版
  2. 安装bbr加速模块
  3. 安装v2ray并设置开机启动

注意:本站的一键脚本与其他网站的不能混合使用,如果之前运行过其他的请先卸载,否则可能导致无法上外网!

客户端下载

接下来是科学上网最后一步:下载客户端,并参考页面中的配置教程进行配置:

v2ray windows客户端下载

v2ray安卓客户端下载

v2ray mac客户端下载

v2ray ios客户端下载

下载客户端配置好后,就可以愉快的上外网了!

其他

1. 查看配置运行状态/参数:bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/ubuntu_install_v2ray.sh) info

2. v2ray管理命令:启动:systemctl start v2ray,停止:systemctl stop v2ray,重启:systemctl restart v2ray

3. 更改端口、alterid最简单的办法:重新运行一键脚本

4. 更新v2ray到最新版:bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/goV2.sh)(提示“装不上daemon”不用管,systemctl restart v2ray重新启动v2ray就好了)

5. 卸载: bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/ubuntu_install_v2ray.sh) uninstall

6. 搭建TG代理请参考: 一键搭建Telegram的MTProto代理

参考

1. v2ray教程


224 条评论

头像

小飞机 · 2020年10月10日 20:58

Installing V2Ray v4.27.5 on x86_64
Downloading V2Ray: https://github.com/v2ray/v2ray-core/releases/download/v4.27.5/v2ray-linux-64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 642 100 642 0 0 1229 0 –:–:– –:–:– –:–:– 1227
100 12.6M 100 12.6M 0 0 29525 0 0:07:28 0:07:28 –:–:– 28606
/dev/fd/62: line 144: unzip: command not found
awk: not an option: -e
Updating software repo

Installing unzip
E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem.
Failed to install unzip. Please install it manually.
安装失败,请到 https://hijk.art 网站反馈

    威龙

    威龙 · 2020年10月10日 21:03

    sudo dpkg –configure -a,然后再试试

头像

mil · 2020年8月30日 21:54

请问一下,有linux的客户端吗,应该怎么使用,有教程吗

    跳越者

    跳越者 · 2020年8月31日 07:55

    有linux客户端,但是本站没有教程

头像

· 2020年8月13日 16:48

成功安装了脚本,用的是亚马逊香港EC2,免费一年那种主机

但是为什么老是断流了,比如看GOOGLE或者YouTube,一伙打得开,一伙又打不开?

大神求解

    跳越者

    跳越者 · 2020年8月13日 19:04

    刚安装好不要上大流量,否则可能被qos限速或者断流

头像

surevv · 2020年7月22日 15:19

BUG:安装过程中设置的不是443 端口;安装完成提升的是443 ,正常的vmess 也是443.

    跳越者

    跳越者 · 2020年7月22日 15:56

    收到,感谢反馈

头像

BELINDA · 2020年7月21日 18:57

一键脚本搞不明白,急。手机1750347

    跳越者

    跳越者 · 2020年7月21日 19:04

    小白直接买机场服务吧,本站搜just my socks

头像

tgby · 2020年7月14日 22:04

大佬,有没有国内的下载地址,想在北京的服务器上安装v2ray,但是脚本上的地址安装v2ray的时候被墙了

    跳越者

    跳越者 · 2020年7月14日 22:36

    暂时没有适合国内的安装jiao ben

头像

hrbeta · 2020年7月10日 12:47

[root /]# bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/ubuntu_install_v2ray.sh)
#############################################################
# Ubuntu 16.04 TLS v2ray 带一键安装脚本 #
# 网址: https://www.v2raytech.com #
# 作者: hijk #
#############################################################

系统版本: Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
端口号: 21568更新系统…Hit:1 http://archive.ubuntu.com/ubuntu focal InReleaseHit:2 http://archive.ubuntu.com/ubuntu focal-updates InReleaseHit:3 http://archive.ubuntu.com/ubuntu focal-backports InReleaseHit:4 http://archive.ubuntu.com/ubuntu focal-security InReleaseReading package lists…Building dependency tree…
Reading state information…
79 packages can be upgraded. Run 'apt list –upgradable' to see them.安装必要软件BBR模块已安装
安装v2ray…v2ray安装成功!============================================
v2ray运行状态:[0;32m正在运行[0m
v2ray配置文件:[0;31m/etc/v2ray/config.json[0m

[0;31mv2ray配置信息:[0m
IP(address): [0;31m74.120.170.119[0m
端口(port):[0;31m21568[0m
id(uuid):[0;31m14847ce6-894f-43ac-8cba-92317c515a56[0m
额外id(alterid): [0;31m70[0m
加密方式(security): [0;31mauto[0m
传输协议(network): [0;31mtcp[0m

vmess链接: vmess://eyAidiI6IjIiLCAicHMiOiIiLCAiYWRkIjoiNzQuMTIwLjE3MC4xMTkiLCAicG9ydCI6IjIxNTY4IiwgImlkIjoiMTQ4NDdjZTYtODk0Zi00M2FjLThjYmEtOTIzMTdjNTE1YTU2IiwgImFpZCI6IjcwIiwgIm5ldCI6InRjcCIsICJ0eXBlIjoibm9uZSIsICJob3N0IjoiIiwgInBhdGgiOiIiLCAidGxzIjoiIiB9

No LSB modules are available./dev/fd/63: line 72: nginx: command not found

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.E: dpkg was interrupted, you must manually run 'dpkg –configure -a' to correct the problem.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.E: dpkg was interrupted, you must manually run 'dpkg –configure -a' to correct the problem.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.E: dpkg was interrupted, you must manually run 'dpkg –configure -a' to correct the problem. [36mLatest version v4.26.0 is already installed.[0m10 Jul 12:45:19 ntpdate[23996]: no server suitable for synchronization found

屏幕 没有出现 “按回车键,屏幕出现 “请设置v2ray的端口[1-65535]” 的提示,设置v2ray端口号(例如12345,不能是22)。”

    跳越者

    跳越者 · 2020年7月10日 15:17

    你这是网页终端吧?用ssh终端连过去运行

头像

kcloc · 2020年7月9日 11:42

大神,我安装完之后能正常使用,但是有一段时间不用之后,服务器就自动停止了,需要用root账号重新restart一下才行,每次都这样挺麻烦的,可以问下是什么原因吗。用看状态的指令看到是已停止,服务器是AWS免费的EC2,系统是linux 16.04,谢谢!

    跳越者

    跳越者 · 2020年7月9日 14:26

    可能是你服务器的内存太少了

      头像

      kcloc · 2020年7月16日 16:36

      1G内存也不够吗。。。

        跳越者

        跳越者 · 2020年7月16日 16:48

        1GB够用的,df -h,看看硬盘还有没有空间了

头像

糊涂 · 2020年6月30日 20:34

请教大神,我在阿里云上建了服务器,执行了你的一键安装脚本,V2ray服务也激活,但是发现没有监听IP4地址,只有IP6地址。添加监听0.0.0.0以后还是只监听IP6地址。添加了监听阿里云内网地址或者127.0.0.1以后,还是不能从客户端连接到V2RAY。请教这个怎么办?
下面是不同地址的V2RAY状态。
tcp6 0 0 :::57384 :::* LISTEN 32555/v2ray
unix 3 [ ] STREAM CONNECTED 245789 32555/v2ray
root@iZj6c3o6yrkkclurfik63nZ:~# systemctl restart v2ray
root@iZj6c3o6yrkkclurfik63nZ:~# netstat -apn | grep v2ray
tcp 0 0 127.0.0.1:57384 0.0.0.0:* LISTEN 32571/v2ray
unix 3 [ ] STREAM CONNECTED 245923 32571/v2ray
root@iZj6c3o6yrkkclurfik63nZ:~# netstat -apn | grep v2ray
tcp 0 0 127.0.0.1:57384 0.0.0.0:* LISTEN 32571/v2ray
unix 3 [ ] STREAM CONNECTED 245923 32571/v2ray
root@iZj6c3o6yrkkclurfik63nZ:~# systemctl restart v2ray
root@iZj6c3o6yrkkclurfik63nZ:~# netstat -apn | grep v2ray
tcp6 0 0 :::57384 :::* LISTEN 32637/v2ray
unix 3 [ ] STREAM CONNECTED 246251 32637/v2ray
root@iZj6c3o6yrkkclurfik63nZ:~# systemctl restart v2ray
root@iZj6c3o6yrkkclurfik63nZ:~# systemctl restart v2ray
root@iZj6c3o6yrkkclurfik63nZ:~# netstat -apn | grep v2ray
tcp 0 0 172.31.140.40:57384 0.0.0.0:* LISTEN 32671/v2ray
unix 3 [ ] STREAM CONNECTED 247231 32671/v2ray

    跳越者

    跳越者 · 2020年6月30日 20:51

    伪装的需要填443端口,根据最后输出信息来填

      头像

      糊涂 · 2020年6月30日 20:58

      我执行的应该是不带伪装的脚本,因为我没有注册过域名。系统是18.4的版本。另外,在执行脚本的时候第一条命令没有找到。不知道会不会有影响。
      系统版本: LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
      Distributor ID: Ubuntu
      Description: Ubuntu 18.04.4 LTS
      Release: 18.04
      Codename: bionic
      请输入v2ray的端口[1-65535]:57384

      端口号: 57384

      /dev/fd/63: line 72: nginx: command not found
      更新系统…

        跳越者

        跳越者 · 2020年6月30日 21:02

        没有影响,另外要到阿里云网页后台的安全组放行端口

          头像

          糊涂 · 2020年7月1日 09:21

          我在安全组里也已经开了TCP 协议下的57384,21,443,80,和20000-30000,端口。看上去能开的都开了。3389和22是默认打开的。都是授权0.0.0.0/0。
          在执行大神的脚本前,执行过其他一键脚本,也都是只监听IP6地址。看到CSDN上有人说到过关了防火墙就正常了,但是这个在阿里云上是关不掉的。
          实在是找不到方法了。

          跳越者

          跳越者 · 2020年7月1日 12:03

          只监听tcp6没关系啊,这个不影响,应该是你其他东西设置错了

          头像

          糊涂 · 2020年7月1日 14:27

          能不能给点建议,需要检查哪里?另外我手机和电脑端都是能加,但是在测试时会有报错。有没有其他可以测试服务器的方法?我想把服务器端和客户端的可能性都排除下。谢谢

          跳越者

          跳越者 · 2020年7月1日 14:36

          试试service iptables stop

          头像

          糊涂 · 2020年7月1日 15:31

          试了一下,报错了。麻烦看下
          root@iZj6c3o6yrkkclurfik63nZ:~# service iptables stop
          Failed to stop iptables.service: Unit iptables.service not loaded.

          跳越者

          跳越者 · 2020年7月1日 17:12

          防火墙没开,firewall-cmd –list-all,看看这个命令的提示

          头像

          糊涂 · 2020年7月1日 17:41

          执行以后是这个提示。感谢你的耐心指导。
          root@iZj6c3o6yrkkclurfik63nZ:~# firewall-cmd –list-all

          Command ‘firewall-cmd’ not found, but can be installed with:

          apt install firewalld

          跳越者

          跳越者 · 2020年7月1日 17:46

          可能是端口被墙了,建议换个端口试试,阿里云后台安全组也要放行

          头像

          糊涂 · 2020年7月1日 17:47

          我看提示说没有安装,需要执行它提示的命令安装下?
          apt install firewalld

          头像

          糊涂 · 2020年7月1日 18:19

          我执行了安装,跑了一长串代码,貌似安装好了,我复制了最后几条提示在这里。
          fedoraproject.FirewallD1.policy) in auto mode
          Created symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service → /lib/systemd/system/firewalld.service.
          Created symlink /etc/systemd/system/multi-user.target.wants/firewalld.service → /lib/systemd/system/firewalld.service.

          Processing triggers for man-db (2.8.3-2ubuntu0.1) …
          Processing triggers for dbus (1.12.2-1ubuntu1.2) …
          Processing triggers for ureadahead (0.100.0-21) …
          Processing triggers for libc-bin (2.27-3ubuntu1) …
          然后重新执行了下firewall-cmd –list-all,又有了下面的提示。但是执行service iptables stop的时候又提示说not loaded。麻烦大神再看看。谢谢
          root@iZj6c3o6yrkkclurfik63nZ:~# firewall-cmd –list-all
          usage: see firewall-cmd man page
          firewall-cmd: error: unrecognized arguments: –list-all
          root@iZj6c3o6yrkkclurfik63nZ:~# service iptables stop
          Failed to stop iptables.service: Unit iptables.service not loaded.

          跳越者

          跳越者 · 2020年7月1日 18:23

          客户端日志呢?

          头像

          糊涂 · 2020年7月1日 18:24

          我修改了下命令,改成firewall-cmd –list-all ,有了下面的提示

          root@iZj6c3o6yrkkclurfik63nZ:~# firewall-cmd –list-all
          public
          target: default
          icmp-block-inversion: no
          interfaces:
          sources:
          services: ssh dhcpv6-client
          ports:
          protocols:
          masquerade: no
          forward-ports:
          source-ports:
          icmp-blocks:
          rich rules:

          跳越者

          跳越者 · 2020年7月1日 18:27

          ubuntu系统不要用firewalld,卸载了吧。运行这个命令:sudo ufw disable,然后再试试客户端

          头像

          糊涂 · 2020年7月1日 18:41

          我执行了命令sudo ufw disable以后的提示是这样的。
          root@iZj6c3o6yrkkclurfik63nZ:~# sudo ufw disable
          Firewall stopped and disabled on system startup
          然后重启了服务器端的V2ray.

          客户端我使用的是V2RayN v3.19,配置完以后开启HTTP 全局代理,打开IE 以后的日志是这样的。
          配置成功
          Vmess-v8.210.169.176(8***176:57384)
          启动服务(2020/07/01 18:33:38)…
          V2Ray 4.23.4 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.1 windows/386)
          A unified platform for anti-censorship.
          2020/07/01 18:33:39 [Info] v2ray.com/core/common/platform/ctlcmd:
          v2ctl> Read config: C:\Users\Ray\Desktop\v2rayN-Core\config.json
          2020/07/01 18:33:39 [Warning] v2ray.com/core: V2Ray 4.23.4 started
          2020/07/01 18:35:03 tcp:127.0.0.1:64682 accepted tcp:mail.163.com:443 [proxy]
          2020/07/01 18:35:03 tcp:127.0.0.1:64685 accepted tcp:mail.163.com:443 [proxy]
          2020/07/01 18:35:04 tcp:127.0.0.1:64687 accepted tcp:ac.dun.163yun.com:443 [proxy]
          2020/07/01 18:35:09 tcp:127.0.0.1:64691 accepted tcp:nstool.netease.com:443 [proxy]
          2020/07/01 18:35:09 tcp:127.0.0.1:64692 accepted tcp:ac.dun.163yun.com:443 [proxy]
          2020/07/01 18:35:09 tcp:127.0.0.1:64693 accepted tcp:ac.dun.163yun.com:443 [proxy]
          2020/07/01 18:35:27 tcp:127.0.0.1:64733 accepted tcp:www.google.com:80 [proxy]
          2020/07/01 18:35:44 tcp:127.0.0.1:64739 accepted tcp:mail.163.com:443 [proxy]
          2020/07/01 18:35:44 tcp:127.0.0.1:64741 accepted tcp:mail.163.com:443 [proxy]
          2020/07/01 18:36:25 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [dial tcp 8.210.169.176:57384: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed
          2020/07/01 18:36:26 tcp:127.0.0.1:64749 accepted tcp:mail.163.com:443 [proxy]
          2020/07/01 18:36:26 tcp:127.0.0.1:64747 accepted tcp:mail.163.com:443 [proxy]
          2020/07/01 18:36:26 tcp:127.0.0.1:64748 accepted tcp:nstool.netease.com:443 [proxy]

          跳越者

          跳越者 · 2020年7月1日 19:31

          端口被墙了或者有网页后台没放行

          头像

          糊涂 · 2020年7月2日 10:29

          感谢你的回复。我打算重建服务器实例,大神可以推荐一个系统么?除了ubuntu以外的。

          跳越者

          跳越者 · 2020年7月2日 11:42

          当然是centos啊

          头像

          糊涂 · 2020年7月2日 13:40

          谢谢。我去重建个服务器再试试。再次感谢你的耐心答复

头像

ef19116 · 2020年6月29日 03:29

bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/ubuntu_install_v2ray.sh)

终端运行这行代码没有反应是什么原因呢?

    跳越者

    跳越者 · 2020年6月29日 11:34

    服务器网络有问题或者用的国内vps

头像

慕葛之年 · 2020年6月27日 18:57

我的HostUs的香港机器 安装v2ray完成之后(官网脚本),无法启动。您能帮忙看看什么问题么?
log如下:
v2ray.service – V2Ray Service
Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Sat 2020-06-27 18:40:01 CST; 2s ago
Docs: https://www.v2ray.com/
https://www.v2fly.org/
Process: 2978 ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json (code=exited, status=218/CAPABILITIES)
Main PID: 2978 (code=exited, status=218/CAPABILITIES)

Jun 27 18:40:01 root systemd[1]: v2ray.service: Unit entered failed state.
Jun 27 18:40:01 root systemd[1]: v2ray.service: Failed with result ‘exit-code’.
Jun 27 18:40:01 root systemd[1]: v2ray.service: Service hold-off time over, scheduling restart.
Jun 27 18:40:01 root systemd[1]: Stopped V2Ray Service.
Jun 27 18:40:01 root systemd[1]: v2ray.service: Start request repeated too quickly.
Jun 27 18:40:01 root systemd[1]: Failed to start V2Ray Service.

    跳越者

    跳越者 · 2020年6月27日 19:01

    服务器openvz的?还是安装过锐速?

    头像

    慕葛之年 · 2020年6月28日 13:56

    OpenVZ,没装过锐速,nanqinglang的bbr也装不了。
    我就手动调了时区,用官网脚本装了一下。无法启动。

      跳越者

      跳越者 · 2020年6月28日 14:04

      新版v2ray不支持openvz了

        头像

        慕葛之年 · 2020年6月28日 14:09

        好吧,谢谢。那OVZ还有什么代理可以用么?trojan?brook?wireguard?

          跳越者

          跳越者 · 2020年6月28日 14:12

          trojan和ss都可以

          头像

          慕葛之年 · 2020年6月28日 23:28

          trojan死在请求证书 ss死在下载build-essential。哭死

          跳越者

          跳越者 · 2020年6月28日 23:47

          你的网络有多差?

          头像

          慕葛之年 · 2020年6月29日 10:24

          我已经放弃那个了

头像

lygjxh · 2020年6月16日 12:56

安装v2ray…
Installing V2Ray v4.24.2 on x86_64
Downloading V2Ray: https://github.com/v2ray/v2ray-core/releases/download/v4.24.2/v2ray-linux-64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 629 100 629 0 0 4127 0 –:–:– –:–:– –:–:– 4138
100 12.3M 100 12.3M 0 0 616k 0 0:00:20 0:00:20 –:–:– 1201k
/dev/fd/63: line 144: unzip: command not found
Updating software repo
Installing unzip
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
Failed to install unzip. Please install it manually.
Installing V2Ray v4.23.4 on x86_64
Downloading V2Ray: https://github.com/v2ray/v2ray-core/releases/download/v4.23.4/v2ray-linux-64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 629 100 629 0 0 1789 0 –:–:– –:–:– –:–:– 1792
100 11.4M 100 11.4M 0 0 772k 0 0:00:15 0:00:15 –:–:– 1122k
/dev/fd/63: line 144: unzip: command not found
Updating software repo
Installing unzip
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
Failed to install unzip. Please install it manually.
安装失败,请到 https://v2raytech.com 网站反馈

查找评论了,你之前5月回复别人是缺少UNZIP组件,貌似更新里面添加了安装UNZIP,但是还是失败,不能自动安装UNZIP

    跳越者

    跳越者 · 2020年6月16日 15:06

    依赖安装失败了,重新运行试试

头像

Jay · 2020年6月14日 20:07

大神帮忙看一下问题
直接运行命令出现如下显示
#
# 作者: hijk #
#############################################################

系统版本: No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
请以root身份执行该脚本

添加sudo之后又报错如下:
~$ sudo bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/ubuntu_install_v2ray.sh)
bash: /dev/fd/63: No such file or directory

我现在该怎么做啊?

    跳越者

    跳越者 · 2020年6月14日 20:09

    网络问题,重新运营试试

头像

转瞬199 · 2020年6月10日 11:11

提示版本不适合怎么办? 你这个是ubuntu是16.04的请问有14.04的版本吗?

    跳越者

    跳越者 · 2020年6月10日 11:12

    没有,升级一下版本吧

头像

暗室不欺 · 2020年6月4日 18:28

大大,我这边一直有这个提示:
Can’t adjust the time of day: Operation not permitted
v2ray启动失败,请检查端口是否被占用!

    头像

    暗室不欺 · 2020年6月4日 18:46

    请问能帮我看看是那里出问题了吗?

      跳越者

      跳越者 · 2020年6月4日 18:49

      tail /var/log/v2ray/error.log,把信息贴出来看看

    跳越者

    跳越者 · 2020年6月4日 18:47

    tail /var/log/v2ray/error.log,提示什么?

      头像

      暗室不欺 · 2020年6月4日 18:58

      tail /var/log/v2ray/error.log
      tail: cannot open ‘/var/log/v2ray/error.log’ for reading: No such file or directory

        跳越者

        跳越者 · 2020年6月4日 18:59

        tail /var/log/v2ray/access.log,这个呢?

          头像

          暗室不欺 · 2020年6月4日 19:01

          安装v2ray…
          Latest version v4.23.4 is already installed.
          4 Jun 18:59:33 ntpdate[18529]: Can’t adjust the time of day: Operation not permitted
          v2ray启动失败,请检查端口是否被占用!
          root@Crusaders:~# tail /var/log/v2ray/access.log
          tail: cannot open ‘/var/log/v2ray/access.log’ for reading: No such file or directory
          root@Crusaders:~# tail /var/log/v2ray/error.log
          tail: cannot open ‘/var/log/v2ray/error.log’ for reading: No such file or directory
          root@Crusaders:~#
          一样的。

          跳越者

          跳越者 · 2020年6月4日 20:16

          你填的端口是什么?

          头像

          暗室不欺 · 2020年6月5日 08:18

          我端口是随便填的。
          用的vps是hostus的,按理说端口应该是全开的啊。

          跳越者

          跳越者 · 2020年6月5日 08:35

          netstat -nltp,出现什么?

          头像

          暗室不欺 · 2020年6月5日 09:18

          netstat -nltp
          Active Internet connections (only servers)
          Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
          tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 168/rpcbind
          tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 31310/sshd
          tcp 0 0 127.0.0.2:25 0.0.0.0:* LISTEN 31831/master
          tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 31831/master
          tcp6 0 0 :::111 :::* LISTEN 168/rpcbind
          tcp6 0 0 :::80 :::* LISTEN 26545/apache2
          tcp6 0 0 :::22 :::* LISTEN 31310/sshd
          tcp6 0 0 ::1:25 :::* LISTEN 31831/master

          跳越者

          跳越者 · 2020年6月5日 09:24

          你安装v2的时候填的端口是什么?

          头像

          暗室不欺 · 2020年6月5日 09:22

          对了,他第一次安装的时候,有一个这个

          General type of mail configuration:

          No configuration
          Internet Site
          Internet with smarthost
          Satellite system
          Local only

          是有什么需要选择的吗?

          跳越者

          跳越者 · 2020年6月5日 09:24

          这是邮件设置,和v2无关

          头像

          暗室不欺 · 2020年6月5日 09:32

          我填的端口是29979

          头像

          暗室不欺 · 2020年6月5日 09:38

          其实我试了很多端口,都不行的样子。包括:
          29979
          2458
          443
          10086
          10010
          4000

          跳越者

          跳越者 · 2020年6月5日 09:40

          systemctl restart v2ray,有啥反应?

          头像

          暗室不欺 · 2020年6月5日 09:46

          啥反应都没有。
          连续输入的结果
          Job for v2ray.service failed. See “systemctl status v2ray.service” and “journalctl -xe” for details.

          跳越者

          跳越者 · 2020年6月5日 09:46

          journalctl -xe,有什么输出?

          头像

          暗室不欺 · 2020年6月5日 09:49

          Jun 05 09:44:04 Crusaders systemd[1]: Failed to start V2Ray Service.
          — Subject: Unit v2ray.service has failed
          — Defined-By: systemd
          — Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

          — Unit v2ray.service has failed.

          — The result is failed.
          Jun 05 09:44:04 Crusaders systemd[1]: v2ray.service: Unit entered failed state.
          Jun 05 09:44:04 Crusaders systemd[1]: v2ray.service: Failed with result ‘start-l
          Jun 05 09:44:42 Crusaders sshd[27716]: Connection closed by 61.148.56.206 port 6
          Jun 05 09:45:28 Crusaders sshd[27718]: pam_unix(sshd:auth): authentication failu
          Jun 05 09:45:31 Crusaders sshd[27718]: Failed password for root from 128.199.124
          Jun 05 09:45:31 Crusaders sshd[27718]: Received disconnect from 128.199.124.159
          Jun 05 09:45:31 Crusaders sshd[27718]: Disconnected from 128.199.124.159 port 58
          Jun 05 09:45:51 Crusaders sshd[27720]: pam_unix(sshd:auth): authentication failu
          Jun 05 09:45:54 Crusaders sshd[27720]: Failed password for root from 106.12.52.2
          Jun 05 09:45:54 Crusaders sshd[27720]: Received disconnect from 106.12.52.229 po
          Jun 05 09:45:54 Crusaders sshd[27720]: Disconnected from 106.12.52.229 port 5199
          Jun 05 09:45:56 Crusaders sshd[27722]: pam_unix(sshd:auth): authentication failu
          Jun 05 09:45:58 Crusaders sshd[27722]: Failed password for root from 206.189.76.
          Jun 05 09:45:58 Crusaders sshd[27722]: Received disconnect from 206.189.76.244 p
          Jun 05 09:45:58 Crusaders sshd[27722]: Disconnected from 206.189.76.244 port 370
          lines 2464-2486/2486 (END)

          跳越者

          跳越者 · 2020年6月5日 09:56

          tail /var/log/v2ray/access.log,这个有输出吗?

          头像

          暗室不欺 · 2020年6月5日 10:09

          tail: cannot open ‘/var/log/v2ray/access.log’ for reading: No such file or directory

          跳越者

          跳越者 · 2020年6月5日 10:10

          getenforce呢?

          头像

          暗室不欺 · 2020年6月5日 10:14

          -bash: getenforce: command not found

          跳越者

          跳越者 · 2020年6月5日 10:15

          那就很奇怪了,卸载重新安装一下呢?

          头像

          暗室不欺 · 2020年6月5日 10:20

          实际上我已经重装好多次了,都是一样的错误。可能最近敏感时期吧……我另一个梯子已经不好使了。我等今天域名下来试试trojian。

    跳越者

    跳越者 · 2020年6月6日 22:25

    今天找到问题了,是v2官方脚本的问题,本站已经修复,可以再运行试试

头像

大大 · 2020年6月4日 13:49

大佬有没有centos6能用的一键脚本?

    跳越者

    跳越者 · 2020年6月4日 13:51

    没有做哈,可以到其他网站找找

      头像

      大大 · 2020年6月4日 15:12

      找了个其他的,但之前用过大佬你的,感觉还是你的脚本好用

        跳越者

        跳越者 · 2020年6月4日 15:14

        centos 6现在已经被淘汰了,我的代码全都是自己重新写的,所以就没照顾到centos 6

头像

SPJ · 2020年6月2日 09:37

大佬,我是个彻底的小白,看教程一步步尝试,到了最后一步一直显示端口被占用,重新换了几个也都不行,应该怎么解决呢?
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 140 not upgraded.
BBR模块已安装
安装v2ray…
Latest version v4.23.3 is already installed.
/dev/fd/63: line 108: ntpdate: command not found
v2ray启动失败,请检查端口是否被占用!
root@janethei:~#

    跳越者

    跳越者 · 2020年6月2日 10:37

    sudo apt install -y netstat,然后再试试

      头像

      SPJ · 2020年6月2日 16:46

      没有安装Java Developer Kit似乎进行不下去。。。有没有不安装java仍然可以进行的方法?

      头像

      SPJ · 2020年6月2日 16:48

      没有安装Java Developer Kit似乎进行不下去。。。有没有不安装java可以进行的方法?

    跳越者

    跳越者 · 2020年6月6日 22:25

    今天找到问题了,是v2官方脚本的问题,本站已经修复,可以再运行试试

头像

oppo · 2020年5月29日 15:17

试了两次,错误信息似乎是一样的。
在防火墙中添加了允许443和80端口也不行
请问是哪里出错了?

nginx is already the newest version (1.10.3-0ubuntu0.16.04.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already up-to-date: pip in /usr/local/lib/python3.5/dist-packages (20.1.1)
Requirement already satisfied: wheel in /usr/local/lib/python3.5/dist-packages (0.34.2)
WARNING: Skipping cryptography as it is not installed.
rm: cannot remove ‘cryptoggraphy’: No such file or directory
rm: cannot remove ‘cryptography-2.1.4.egg-info’: No such file or directory
/root
Collecting cryptography
Using cached cryptography-2.9.2.tar.gz (517 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … done
Collecting cffi!=1.11.3,>=1.8
Using cached cffi-1.14.0-cp35-cp35m-manylinux1_i686.whl (377 kB)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages (from cryptography) (1.10.0)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: cryptography
Building wheel for cryptography (PEP 517) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp533qcl5f
cwd: /tmp/pip-install-f3yyhf2b/cryptography
Complete output (135 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-i686-3.5
creating build/lib.linux-i686-3.5/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/utils.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-i686-3.5/cryptography
creating build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-i686-3.5/cryptography/x509
creating build/lib.linux-i686-3.5/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-i686-3.5/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat
copying src/cryptography/hazmat/_der.py -> build/lib.linux-i686-3.5/cryptography/hazmat
creating build/lib.linux-i686-3.5/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/bindings
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
creating build/lib.linux-i686-3.5/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends
creating build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
creating build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file ‘src/cryptography.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
no previously-included directories found matching ‘docs/_build’
warning: no previously-included files found matching ‘vectors’
warning: no previously-included files matching ‘*’ found under directory ‘vectors’
warning: no previously-included files found matching ‘azure-pipelines.yml’
warning: no previously-included files found matching ‘.azure-pipelines’
warning: no previously-included files found matching ‘.travis.yml’
warning: no previously-included files found matching ‘.travis’
warning: no previously-included files matching ‘*’ found under directory ‘.azure-pipelines’
warning: no previously-included files matching ‘*’ found under directory ‘.travis’
warning: no previously-included files found matching ‘release.py’
warning: no previously-included files found matching ‘.coveragerc’
warning: no previously-included files found matching ‘codecov.yml’
warning: no previously-included files found matching ‘dev-requirements.txt’
warning: no previously-included files found matching ‘rtd-requirements.txt’
warning: no previously-included files found matching ‘tox.ini’
writing manifest file ‘src/cryptography.egg-info/SOURCES.txt’
running build_ext
generating cffi module ‘build/temp.linux-i686-3.5/_padding.c’
creating build/temp.linux-i686-3.5
generating cffi module ‘build/temp.linux-i686-3.5/_constant_time.c’
generating cffi module ‘build/temp.linux-i686-3.5/_openssl.c’
building ‘_openssl’ extension
creating build/temp.linux-i686-3.5/build
creating build/temp.linux-i686-3.5/build/temp.linux-i686-3.5
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-i686-3.5/_openssl.c -o build/temp.linux-i686-3.5/build/temp.linux-i686-3.5/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.linux-i686-3.5/_openssl.c:546:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
error: command ‘i686-linux-gnu-gcc’ failed with exit status 1
—————————————-
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
Collecting certbot
Using cached certbot-1.4.0-py2.py3-none-any.whl (231 kB)
Collecting zope.interface
Using cached zope.interface-5.1.0-cp35-cp35m-manylinux2010_i686.whl (229 kB)
Collecting pyrfc3339
Using cached pyRFC3339-1.1-py2.py3-none-any.whl (5.7 kB)
Collecting pytz
Using cached pytz-2020.1-py2.py3-none-any.whl (510 kB)
Processing ./.cache/pip/wheels/b8/c6/20/f4f4965c4c09942f98aec2ba1d06e4e7bc7a6d531a708aa01d/parsedatetime-2.5-py3-none-any.whl
Collecting josepy>=1.1.0
Using cached josepy-1.3.0-py2.py3-none-any.whl (57 kB)
Collecting distro>=1.0.1
Using cached distro-1.5.0-py2.py3-none-any.whl (18 kB)
Collecting acme>=1.4.0
Using cached acme-1.4.0-py2.py3-none-any.whl (41 kB)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from certbot) (20.7.0)
Collecting cryptography>=1.2.3
Using cached cryptography-2.9.2.tar.gz (517 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … done
Processing ./.cache/pip/wheels/7e/38/7f/dad6e2f022a4f0705e22e498d3dfe2ffc7a9f95b41e7d7e2a7/ConfigArgParse-1.2.3-py3-none-any.whl
Processing ./.cache/pip/wheels/03/89/c9/09d1015c3bf60de3c28d6d30942f9e6b3a751819809cb623ad/configobj-5.0.6-py3-none-any.whl
Collecting zope.component
Using cached zope.component-4.6.1-py2.py3-none-any.whl (66 kB)
Requirement already satisfied: six>=1.9.0 in /usr/lib/python3/dist-packages (from josepy>=1.1.0->certbot) (1.10.0)
Collecting PyOpenSSL>=0.13
Using cached pyOpenSSL-19.1.0-py2.py3-none-any.whl (53 kB)
Collecting requests-toolbelt>=0.3.0
Using cached requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
Requirement already satisfied: requests[security]>=2.6.0 in /usr/lib/python3/dist-packages (from acme>=1.4.0->certbot) (2.9.1)
Collecting cffi!=1.11.3,>=1.8
Using cached cffi-1.14.0-cp35-cp35m-manylinux1_i686.whl (377 kB)
Collecting zope.deferredimport>=4.2.1
Using cached zope.deferredimport-4.3.1-py2.py3-none-any.whl (10 kB)
Collecting zope.event
Using cached zope.event-4.4-py2.py3-none-any.whl (7.6 kB)
Collecting zope.hookable>=4.2.0
Using cached zope.hookable-5.0.1-cp35-cp35m-manylinux2010_i686.whl (24 kB)
Collecting zope.deprecation>=4.3.0
Using cached zope.deprecation-4.4.0-py2.py3-none-any.whl (10 kB)
Collecting ndg-httpsclient
Using cached ndg_httpsclient-0.5.1-py3-none-any.whl (34 kB)
Collecting pyasn1
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting zope.proxy
Using cached zope.proxy-4.3.5-cp35-cp35m-manylinux2010_i686.whl (61 kB)
Building wheels for collected packages: cryptography
Building wheel for cryptography (PEP 517) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpbh9ip6al
cwd: /tmp/pip-install-6bzo5u5o/cryptography
Complete output (135 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-i686-3.5
creating build/lib.linux-i686-3.5/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/utils.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-i686-3.5/cryptography
creating build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-i686-3.5/cryptography/x509
creating build/lib.linux-i686-3.5/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-i686-3.5/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat
copying src/cryptography/hazmat/_der.py -> build/lib.linux-i686-3.5/cryptography/hazmat
creating build/lib.linux-i686-3.5/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/bindings
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives
creating build/lib.linux-i686-3.5/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends
creating build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
creating build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
running egg_info
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing src/cryptography.egg-info/PKG-INFO
writing requirements to src/cryptography.egg-info/requires.txt
reading manifest file ‘src/cryptography.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
no previously-included directories found matching ‘docs/_build’
warning: no previously-included files found matching ‘vectors’
warning: no previously-included files matching ‘*’ found under directory ‘vectors’
warning: no previously-included files found matching ‘azure-pipelines.yml’
warning: no previously-included files found matching ‘.azure-pipelines’
warning: no previously-included files found matching ‘.travis.yml’
warning: no previously-included files found matching ‘.travis’
warning: no previously-included files matching ‘*’ found under directory ‘.azure-pipelines’
warning: no previously-included files matching ‘*’ found under directory ‘.travis’
warning: no previously-included files found matching ‘release.py’
warning: no previously-included files found matching ‘.coveragerc’
warning: no previously-included files found matching ‘codecov.yml’
warning: no previously-included files found matching ‘dev-requirements.txt’
warning: no previously-included files found matching ‘rtd-requirements.txt’
warning: no previously-included files found matching ‘tox.ini’
writing manifest file ‘src/cryptography.egg-info/SOURCES.txt’
running build_ext
generating cffi module ‘build/temp.linux-i686-3.5/_padding.c’
creating build/temp.linux-i686-3.5
generating cffi module ‘build/temp.linux-i686-3.5/_constant_time.c’
generating cffi module ‘build/temp.linux-i686-3.5/_openssl.c’
building ‘_openssl’ extension
creating build/temp.linux-i686-3.5/build
creating build/temp.linux-i686-3.5/build/temp.linux-i686-3.5
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-i686-3.5/_openssl.c -o build/temp.linux-i686-3.5/build/temp.linux-i686-3.5/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.linux-i686-3.5/_openssl.c:546:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
error: command ‘i686-linux-gnu-gcc’ failed with exit status 1
—————————————-
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

    跳越者

    跳越者 · 2020年5月29日 15:52

    apt install -y openssl-dev,然后再试试

      头像

      oppo · 2020年5月29日 16:31

      安装了openssl之后脚本就能完美运行了,谢谢!

发表评论

电子邮件地址不会被公开。 必填项已用*标注