Reputation: 529
following the instructions on the official vpn page (instructions install openvpn client) in the second step:
# curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg
I get the following error message:
sudo curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg
-bash: /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg: Permission denied
(23) Failed writing body
Upvotes: 21
Views: 20147
Reputation: 135
The tutorial you posted is still valid, but as it was pointed out in the comments, you have to run the commands as superuser (I just tested sudo
but it wouldn't work either).
Moreover, apt-key
is mostly deprecated, so be careful with the accepted solution. If you follow the steps there, you will get a deprecation warning every time you run apt update
.
Upvotes: 2
Reputation: 566
I had a similar issue recently. Use
sudo wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub
and
sudo apt-key add openvpn-repo-pkg-key.pub
Reference - https://openvpn.net/cloud-docs/openvpn-3-client-for-linux/
Upvotes: 42