在 ubuntu 22.04 上安装 openvpn

在 ubuntu 22.04 上安装 openvpn

我想从这里安装 openvpn:https://as-portal.openvpn.com/instructions/ubuntu/installation

第一个命令产生了一个我无法解决的错误:

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) 
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

所以我将其分成sudo apt updatesudo apt -y install ca-certificates wget net-tools gnupg

对于第三条命令,文件

openvpn-as-repo.list does not exist in /etc/apt/sources.list.d/

并且通过触摸创建它会出现同样的错误。

当我跑步时

sudo echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/as-repository.asc] http://as-repository.openvpn.net/as/debian jammy main">/etc/apt/sources.list.d/openvpn-as-repo.list

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

相关内容