0

I'm trying to install openVPN on Ubuntu, but I'm facing difficulties.

I confirm that the system is up to date:

apt update && apt upgrade

Install the necessary packages:

apt install ca-certificates wget net-tools gnupg

I add the local repository for installation:

wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | sudo apt-key add -

Run the following command:

echo "deb http://as-repository.openvpn.net/as/debian focal main">/etc/apt/sources.list.d/openvpn-as-repo.list

But this command gives me the following error:

bash: /etc/apt/sources.list.d/openvpn-as-repo.list: Permission denied

And when executing the command for installation: apt install openvpn-as It gives me the following: E: Unable to find package openvpn-as

-bash: /etc/apt/sources.list.d/openvpn-as-repo.list: Permission denied
muru
  • 197,895
  • 55
  • 485
  • 740
smart
  • 1

1 Answers1

1

Looks like you have been misled by some random internet instructions. You DON'T need to add any sources or run mysterious commands to install OpenVPN.

Your output suggests that you added some unnecessary source. Remove it. Undo anything else those instructions told you to do. Return your system to stock condition.

On a clean Ubuntu system, installing OpenVPN as simple as sudo apt install openvpn...but your system isn't currently clean due to whatever instruction you followed.

user535733
  • 62,253