![无法安装 Open VPN 存储库/“sources.list.d”权限被拒绝](https://linux22.com/image/1197728/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20Open%20VPN%20%E5%AD%98%E5%82%A8%E5%BA%93%2F%E2%80%9Csources.list.d%E2%80%9D%E6%9D%83%E9%99%90%E8%A2%AB%E6%8B%92%E7%BB%9D.png)
我正在尝试使用此处提供的官方说明来安装 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
部分负责权限。