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
/etc/
is a system directory which you can usually read most contents there, but need to elevate privileges to write there (ie.sudo
)... so check your command which you didn't provide for us. β guiverc Jun 14 '23 at 04:51