v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory

Open lixiaodongsql opened this issue 1 year ago • 32 comments

相关问题

On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory

描述你希望的解决方案

On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory

描述你所考虑的替代方案

No response

我确认已查询历史issues

  • [X] 是

lixiaodongsql avatar Nov 17 '24 08:11 lixiaodongsql

2024-11-17 15:54:16.7930-INFO v2rayN start up | v2rayN - V7.1.2 - X64 - 2024/11/17 | /home/directory/v2rayN-7.1.2/v2rayN-linux-64/v2rayN 2024-11-17 15:54:16.8101-INFO Unix 4.15.0.22 - 64 2024-11-17 15:54:18.6311-INFO UpdateTaskRunGeo 2024-11-17 15:54:18.6544-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.) 2024-11-17 15:54:18.6544-DEBUG 2024-11-17 15:54:18.6544-ERROR System.NullReferenceException: Object reference not set to an instance of an object. 2024-11-17 15:54:18.6591-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.) 2024-11-17 15:54:18.6591-DEBUG 2024-11-17 15:54:18.6591-ERROR System.NullReferenceException: Object reference not set to an instance of an object. 2024-11-17 15:55:18.6305-INFO UpdateTaskRunSubscription 2024-11-17 15:55:21.1390-INFO -S "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/bin/sing_box/sing-box" run -c "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/guiConfigs/config.json" --disable-color 2024-11-17 15:55:21.1390-DEBUG An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory 2024-11-17 15:55:21.1431-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) 2024-11-17 16:04:15.4967-INFO MyAppExit Begin 2024-11-17 16:04:16.5386-INFO MyAppExit End 2024-11-17 16:04:16.5476-INFO OnClosing -> ApplicationShutdown 2024-11-17 16:04:16.5476-INFO MyAppExit Begin

lixiaodongsql avatar Nov 17 '24 08:11 lixiaodongsql

Above is the contents of the file in the guiLogs folder of v2rayN 7.1.2 on Ubuntu 18.04

lixiaodongsql avatar Nov 17 '24 08:11 lixiaodongsql

sudo -S "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/bin/sing_box/sing-box" run -c "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/guiConfigs/config.json" --disable-color Execute in your terminal

2dust avatar Nov 17 '24 08:11 2dust

after I execute sudo -S "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/bin/sing_box/sing-box" run -c "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/guiConfigs/config.json" --disable-color

in my terminal on Ubuntu 18.04

a process is always running in my Ubuntu 18.04 terminal, there is no output information in my Ubuntu 18.04 terminal

lixiaodongsql avatar Nov 17 '24 08:11 lixiaodongsql

If I enable TLS fragment, and if I use sing-box Core, v2rayN 7.0.9 can work normally in Tun mode on Ubuntu 18.04

lixiaodongsql avatar Nov 17 '24 08:11 lixiaodongsql

I hope that I can still enter the sudo password to enable Tun mode every time in next version v2rayN

lixiaodongsql avatar Nov 17 '24 08:11 lixiaodongsql

I won't be able to solve your problem for a while, so I'll wait to see if someone else can.

2dust avatar Nov 17 '24 08:11 2dust

In order to find out the reason that v2rayN 7.1.2 can not work in Tun mode on Ubuntu 18.04 , what other information should I provide? Thank you very much for your help

lixiaodongsql avatar Nov 17 '24 09:11 lixiaodongsql

https://github.com/2dust/v2rayN/releases/tag/7.1.3

Try

2dust avatar Nov 18 '24 09:11 2dust

On Ubuntu 18.04, if I saved sudo password in v2rayN 7.1.3 , after I enable the Tun mode of v2rayN 7.1.3 , " An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory " is still displayed in the output of v2rayN 7.1.3

lixiaodongsql avatar Nov 18 '24 10:11 lixiaodongsql

2024-11-18 17:38:29.9832-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN 2024-11-18 17:38:30.0007-INFO Unix 4.15.0.22 - 64 2024-11-18 17:38:31.7187-INFO UpdateTaskRunGeo 2024-11-18 17:38:32.0230-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.) 2024-11-18 17:38:32.0230-DEBUG 2024-11-18 17:38:32.0230-ERROR System.NullReferenceException: Object reference not set to an instance of an object. 2024-11-18 17:38:32.0272-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.) 2024-11-18 17:38:32.0272-DEBUG 2024-11-18 17:38:32.0272-ERROR System.NullReferenceException: Object reference not set to an instance of an object. 2024-11-18 17:39:31.7586-INFO UpdateTaskRunSubscription 2024-11-18 17:39:43.6385-INFO -S /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh 2024-11-18 17:39:43.6385-DEBUG An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory 2024-11-18 17:39:43.6385-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) 2024-11-18 17:40:59.0411-INFO MyAppExit Begin 2024-11-18 17:40:59.0783-INFO MyAppExit End 2024-11-18 17:40:59.0783-INFO OnClosing -> ApplicationShutdown 2024-11-18 17:40:59.0783-INFO MyAppExit Begin

lixiaodongsql avatar Nov 18 '24 10:11 lixiaodongsql

Above is the contents of the file in the guiLogs folder of v2rayN 7.1.3 on Ubuntu 18.04

lixiaodongsql avatar Nov 18 '24 10:11 lixiaodongsql

Clear the password in the settings and give it a try. If it doesn’t work, there is no other solution for now, and you don’t need to post it.

2dust avatar Nov 18 '24 10:11 2dust

On Debian 12.7, if I run v2rayN 7.1.3 as non-administrator, after I saved the sudo password in v2rayN 7.1.3 , and after I enable Tun mode of v2rayN 7.1.3 , " [sudo] my username's password: sorry , please retry " is still displayed in the output of v2rayN 7.1.3

lixiaodongsql avatar Nov 18 '24 10:11 lixiaodongsql

2024-11-18 18:09:21.6580-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN 2024-11-18 18:09:21.6742-INFO Unix 6.1.0.25 - 64 2024-11-18 18:09:23.6859-INFO UpdateTaskRunGeo 2024-11-18 18:09:23.7591-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.) 2024-11-18 18:09:23.7591-DEBUG 2024-11-18 18:09:23.7591-ERROR System.NullReferenceException: Object reference not set to an instance of an object. 2024-11-18 18:09:23.7631-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.) 2024-11-18 18:09:23.7631-DEBUG 2024-11-18 18:09:23.7631-ERROR System.NullReferenceException: Object reference not set to an instance of an object. 2024-11-18 18:10:23.6875-INFO UpdateTaskRunSubscription 2024-11-18 18:10:36.1800-INFO -S /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh 2024-11-18 18:29:12.8489-INFO MyAppExit Begin 2024-11-18 18:29:13.8753-INFO MyAppExit End 2024-11-18 18:29:13.8834-INFO OnClosing -> ApplicationShutdown 2024-11-18 18:29:13.8834-INFO MyAppExit Begin

lixiaodongsql avatar Nov 18 '24 10:11 lixiaodongsql

Above is the contents of the file in the guiLogs folder of v2rayN 7.1.3 on Debian 12.7

lixiaodongsql avatar Nov 18 '24 10:11 lixiaodongsql

On Ubuntu 18.04, first I delete the v2rayN-linux-64 folder, and I unzip the version 7.1.3 v2rayN-linux-64.zip again, I execute sudo ./v2rayN in my terminal, after I enable the Tun mode of v2rayN 7.1.3 An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory

lixiaodongsql avatar Nov 18 '24 10:11 lixiaodongsql

Give up, we can't solve your problem

2dust avatar Nov 18 '24 11:11 2dust

2024-11-18 18:39:18.5790-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN 2024-11-18 18:39:18.5965-INFO Unix 4.15.0.22 - 64 2024-11-18 18:39:20.4283-INFO UpdateTaskRunGeo 2024-11-18 18:39:20.5864-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.) 2024-11-18 18:39:20.5864-DEBUG 2024-11-18 18:39:20.5864-ERROR System.NullReferenceException: Object reference not set to an instance of an object. 2024-11-18 18:39:20.5911-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.) 2024-11-18 18:39:20.5911-DEBUG 2024-11-18 18:39:20.5911-ERROR System.NullReferenceException: Object reference not set to an instance of an object. 2024-11-18 18:39:49.4673-INFO MyAppExit Begin 2024-11-18 18:39:49.5007-INFO MyAppExit End 2024-11-18 18:39:49.5028-INFO OnClosing -> ApplicationShutdown 2024-11-18 18:39:49.5028-INFO MyAppExit Begin 2024-11-18 18:40:09.8691-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN 2024-11-18 18:40:09.8849-INFO Unix 4.15.0.22 - 64 2024-11-18 18:41:37.1255-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN 2024-11-18 18:41:37.1411-INFO Unix 4.15.0.22 - 64 2024-11-18 18:41:38.7467-INFO UpdateTaskRunGeo 2024-11-18 18:41:46.0796-INFO /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh 2024-11-18 18:41:46.0810-DEBUG An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory 2024-11-18 18:41:46.0810-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) 2024-11-18 18:41:55.5393-INFO MyAppExit Begin 2024-11-18 18:41:56.5748-INFO MyAppExit End 2024-11-18 18:41:56.6316-INFO OnClosing -> ApplicationShutdown 2024-11-18 18:41:56.6316-INFO MyAppExit Begin 2024-11-18 18:42:03.8969-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN 2024-11-18 18:42:03.9124-INFO Unix 4.15.0.22 - 64 2024-11-18 18:42:05.3661-INFO UpdateTaskRunGeo 2024-11-18 18:42:33.6695-INFO /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh 2024-11-18 18:42:33.6751-DEBUG An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory 2024-11-18 18:42:33.6768-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) 2024-11-18 18:43:05.3659-INFO UpdateTaskRunSubscription 2024-11-18 18:43:23.7997-INFO MyAppExit Begin 2024-11-18 18:43:23.8362-INFO MyAppExit End 2024-11-18 18:43:23.8384-INFO OnClosing -> ApplicationShutdown 2024-11-18 18:43:23.8384-INFO MyAppExit Begin 2024-11-18 18:44:54.0162-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN 2024-11-18 18:44:54.0320-INFO Unix 4.15.0.22 - 64 2024-11-18 18:44:55.6273-INFO UpdateTaskRunGeo 2024-11-18 18:45:03.2663-INFO /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh 2024-11-18 18:45:03.2663-DEBUG An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory 2024-11-18 18:45:03.2663-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) 2024-11-18 18:45:55.6272-INFO UpdateTaskRunSubscription 2024-11-18 18:46:14.1900-INFO MyAppExit Begin 2024-11-18 18:46:14.2228-INFO MyAppExit End 2024-11-18 18:46:14.2248-INFO OnClosing -> ApplicationShutdown 2024-11-18 18:46:14.2248-INFO MyAppExit Begin

lixiaodongsql avatar Nov 18 '24 11:11 lixiaodongsql

I am really sorry for posting many problems

lixiaodongsql avatar Nov 18 '24 11:11 lixiaodongsql

Above is the contents of the file in the guiLogs of v2rayN 7.1.3 on Ubuntu 18.04 when I execute sudo ./v2rayN in Ubuntu 18.04 terminal and do not save sudo password in v2rayN 7.1.3

lixiaodongsql avatar Nov 18 '24 11:11 lixiaodongsql

v2rayN 7.0.9 can normally work in Tun mode on Ubuntu 18.04

lixiaodongsql avatar Nov 18 '24 11:11 lixiaodongsql

I think that the way of entering the sudo password to execute the command " sudo ./v2rayN " in the terminal in order to launch v2rayN program suits the habit of most of the Linux users.

lixiaodongsql avatar Nov 18 '24 13:11 lixiaodongsql

Thank you so much for your help again

lixiaodongsql avatar Nov 18 '24 13:11 lixiaodongsql

I think that the way of enabling Tun mode of v2rayN 7.0.9 also suits the habit of most of the Linux users

lixiaodongsql avatar Nov 18 '24 14:11 lixiaodongsql

On Debian 12.7, I enter the sudo password to open the folder where I store Linux version v2rayN 7.2.0 program files as root, and then I right-click the v2rayN file in order to run v2rayN 7.2.0, on Debian 12.7 v2rayN 7.2.0 can work normally in the Tun mode in the way of v2rayN 7.0.9

lixiaodongsql avatar Nov 24 '24 03:11 lixiaodongsql

On Ubuntu 18.04, I execute ./v2rayN of v2rayN 7.2.1 program files in the terminal, and I saved the sudo password in v2rayN 7.2.1 program, and then I enable the Tun mode of v2rayN 7.2.1 on Ubuntu 18.04 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.2.1/v2rayN-linux-64'. No such file or directory is still displayed in the output of v2rayN 7.2.1

lixiaodongsql avatar Nov 24 '24 04:11 lixiaodongsql

2024-11-24 12:15:42.3546-INFO v2rayN start up | v2rayN - V7.2.1 - X64 - 2024/11/24 | /home/directory/v2rayN-7.2.1/v2rayN-linux-64/v2rayN 2024-11-24 12:15:42.3712-INFO Unix 4.15.0.22 - 64 2024-11-24 12:15:44.2941-INFO UpdateTaskRunGeo 2024-11-24 12:16:44.2974-INFO UpdateTaskRunSubscription 2024-11-24 12:16:44.8114-INFO -S /home/directory/v2rayN-7.2.1/v2rayN-linux-64/bin/run_as_root.sh 2024-11-24 12:16:44.8114-DEBUG An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.2.1/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.2.1/v2rayN-linux-64'. No such file or directory 2024-11-24 12:16:44.8114-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo) 2024-11-24 12:17:47.1925-INFO MyAppExit Begin 2024-11-24 12:17:47.2308-INFO MyAppExit End 2024-11-24 12:17:47.2308-INFO OnClosing -> ApplicationShutdown 2024-11-24 12:17:47.2308-INFO MyAppExit Begin

lixiaodongsql avatar Nov 24 '24 04:11 lixiaodongsql

Above is the contents of the file in the guiLogs folder of v2rayN 7.2.1 program on Ubuntu 18.04

lixiaodongsql avatar Nov 24 '24 04:11 lixiaodongsql

Could you please use the way of enabling Tun mode of v2rayN 7.0.9 in the next version v2rayN on Linux? Thank you very much for your help. I really appreciate it

lixiaodongsql avatar Nov 24 '24 05:11 lixiaodongsql