v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.37k stars 8.94k forks source link

ubuntu16.04使用官方脚本安装失败 #797

Closed sherkwast closed 6 years ago

sherkwast commented 6 years ago

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) v3.4 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 ubuntu16.04LTS 使用官方脚本 bash <(curl -L -s https://install.direct/go.sh) 安装失败 3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)

InstallingV2Ray v3.4 on x86_64 rm: 无法删除'/tmp/v2ray': 不允许的操作 Donwloading V2Ray. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 608 0 608 0 0 608 0 --:--:-- 0:00:01 --:--:-- 465 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0 Warning: Failed to create the file /tmp/v2ray/v2ray.zip: 权限不够 0 6938k 0 16347 0 0 4086 0 0:28:58 0:00:04 0:28:54 8617 curl: (23) Failed writing body (0 != 16347) Failed to download! Please check your network or try again.

修改go.sh文件给mkdir, rm等命令加上sudo依旧会出现以下错误

Warning:Failed to create the file /tmp/v2ray/v2ray.zip: 权限不够 0 6938k 0 16347 0 0 4086 0 0:28:58 0:00:04 0:28:54 8617 curl: (23) Failed writing body (0 != 16347) Failed to download! Please check your network or try again.

4) 你期待看到的正确表现是怎样的? 正常顺利安装!

tlze commented 6 years ago

sudo bash <(curl -L -s https://install.direct/go.sh) 试过没?

On Thu, Dec 28, 2017 at 4:40 PM sherkwast notifications@github.com wrote:

  1. 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) v3.4
  2. 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 ubuntu16.04LTS 使用官方脚本 bash <(curl -L -s https://install.direct/go.sh) 安装失败
  3. 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)

InstallingV2Ray v3.4 on x86_64 rm: 无法删除'/tmp/v2ray': 不允许的操作 Donwloading V2Ray. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 608 0 608 0 0 608 0 --:--:-- 0:00:01 --:--:-- 465 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0 Warning: Failed to create the file /tmp/v2ray/v2ray.zip: 权限不够 0 6938k 0 16347 0 0 4086 0 0:28:58 0:00:04 0:28:54 8617 curl: (23) Failed writing body (0 != 16347) Failed to download! Please check your network or try again.

修改go.sh文件给mkdir, rm等命令加上sudo依旧会出现以下错误

Warning:Failed to create the file /tmp/v2ray/v2ray.zip: 权限不够 0 6938k 0 16347 0 0 4086 0 0:28:58 0:00:04 0:28:54 8617 curl: (23) Failed writing body (0 != 16347) Failed to download! Please check your network or try again.

  1. 你期待看到的正确表现是怎样的? 正常顺利安装!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/v2ray/v2ray-core/issues/797, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUD27_kt79fKsANG9KgnvuO21_nCUSCks5tE1P-gaJpZM4ROH40 .

sherkwast commented 6 years ago

试过了 说是sudo下没有bash命令

xiaokangwang commented 6 years ago

先运行sudo su成为root用户之后执行这个程序。

你使用的是原生Linux操作系统么?什么版本的内核?有没有自己启用SELinux?

sherkwast commented 6 years ago

好的,我先试试,用的是官网下载的ubuntu发行版,好像是默认禁用root,该操作之后需要再禁用root帐号吗 Linux whu-P65xHP 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 没有启用SElinux

xiaokangwang commented 6 years ago

不需要,一般都是禁用登录,并不是禁用这个账户。使用这个方法并不是启用了登录,只是临时的切换了账户。

sherkwast commented 6 years ago

我重新安装时显示

root@PC~# bash <(curl -L -s https://install.direct/go.sh) Lastest version v3.4 is already installed.

但是运行service v2ray status后输出

● v2ray.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)

应该是上次安装没成功,如何完全卸载?用--remove显示找不到v2ray

DarienRaymond commented 6 years ago

go.sh --force 强制重新安装。

DarienRaymond commented 6 years ago

Closing due to inactivity.