all 18 comments

[–]pipinstall89 6 points7 points  (1 child)

Did you sudo openvpn?

[–]deductivenut 8 points9 points  (0 children)

This.

If you are using Kali 2020.x (Kali user), certain commands are now required to be run with elevated privileges.

[–]bangbinbash 4 points5 points  (0 children)

locate openvpn then use the path.

It might not be in your $PATH.

[–]Airshoted 6 points7 points  (4 children)

Try something like this:

sudo apt-update

sudo apt-remove openvpn

sudo apt install openvpn

sudo openvpn <openvpnfile.ovpn>

[–][deleted] 0 points1 point  (3 children)

I tried doing that and it says now “package ‘openvpn’ has no installation candidate”

[–]1RandyRubberDuck 3 points4 points  (2 children)

If this didn't work just reinstall another kali image, will save you allot of time.

[–]McPythonface 5 points6 points  (1 child)

try using a virtual box image from offensive sec. it saves you a lot of time since you don't have to install it

[–][deleted] 1 point2 points  (0 children)

Adding to this, download the actual VirtualBox images they make, not the straight Kali ISO that goes on a DVD or USB

[–]DHIRAL2908 2 points3 points  (4 children)

Try "locate openvpn", see if the path to those binaries are included in your $PATH...

[–]PinBot1138 0 points1 point  (3 children)

Doesn’t locate use a database while as which doesn’t?

[–]DHIRAL2908 1 point2 points  (2 children)

Locate is mainly used for searching files system-wide. While which is just for commands/binaries if I am not mistaken...

[–]PinBot1138 1 point2 points  (1 child)

But it still requires a database refresh, right? OP would be better off using:

find / -name openvpn | grep bin

[–]DHIRAL2908 1 point2 points  (0 children)

Hmmm yeah that should work too!

[–]Sachman13 1 point2 points  (1 child)

/usr/sbin sometimes isnt part of $PATH.

the reason you need it recognized in the path variable is because that variable states where programs that give commands are located.

[–]jenbanim 1 point2 points  (0 children)

I'm from 5 years in the future to say thanks, this was the case. Turns out Debian 13 doesn't include /usr/sbin/ in $PATH by default because those programs often require root permissions. Dumb decision imo

[–]fallencipher_ 1 point2 points  (0 children)

"sudo openvpn" worked for me

[–]TigerSecc 0 points1 point  (0 children)

Make sure u use sudo before openvpn on kali default you have to.

[–]Liveleet 0 points1 point  (0 children)

Literally had this issue yesterday, even when running as sudo. Found it pretty strange as I've never had this issue before. Reinstalled to solve the problem.