我正在尝试使用此处提供的官方说明来安装 Open VPN:
https://community.openvpn.net/openvp.../OpenVPN3Linux
但是,我在这一步失败了:
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/sources.list.d/openvpn3.list: Permission denied
我该怎么办?谢谢!
答案1
应该如下:
curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor > | sudo tee /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg
该sudo tee
部分负责权限。