在Ubuntu上安装v2rayA

Aroma

安装v2rayA

参照v2rayA在Debian / Ubuntu上的安装教程。教程中的Method 1无效的(本博客发布时),它提供的apt source过期。

使用Method 2安装v2rayA,使用v2rayA的预编译文件。.deb预编译文件在v2raya-apt库(源文件库v2ray-core只有zip分发,需要解压)。

安装v2ray-core

参考v2rayA · Discussion #1453安装v2ray-core。使用的是v2ray-core的releases。

本节的代码需要在root权限下执行:使用su rootsudo bash
下载地理信息文件。

1
2
3
cd /etc/v2raya/
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat

安装v2ray-core。注意需要根据架构修改文件名,这里使用的是arm64架构。
1
2
3
4
5
mkdir v2ray
cd v2ray
wget https://github.com/v2fly/v2ray-core/releases/download/v5.25.1/v2ray-linux-arm64-v8a.zip
unzip v2ray-linux-*
mv v2ray /usr/bin/

为v2rayA配置文件添加v2ray-core的路径。
1
2
mkdir -p /etc/v2raya
echo '{"v2ray_path": "/usr/bin/v2ray"}' > /etc/v2raya/config.json

然后重启v2rayA服务。
1
systemctl restart v2raya

脚本式安装

我把上面的安装过程整理成了bash shell脚本。直接获取并执行:

1
curl -fSsL https://gist.githubusercontent.com/recynie/6839f0055327316f67a3c89fbe9e5381/raw/c989e8367f75f9dc9eb804db65d9fcb3a39461d6/install_v2raya_arm64.sh | bash

  • Title: 在Ubuntu上安装v2rayA
  • Author: Aroma
  • Created at : 2026-02-18 00:00:00
  • Updated at : 2026-02-18 00:00:00
  • Link: https://recynie.github.io/2026-02-18/install-v2raya-on-ubuntu/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
在Ubuntu上安装v2rayA