物理的にデスクトップにいる場合は、コマンドを使用して問題なく protonvpn を起動できますprotonvpn-cli c
。
ただし、SSH 接続を介してリモートで接続し、同じコマンドを実行すると、次のエラーが発生します。
Unable to setup reconnect. Please make sure that you have access to internet or that you've previously connected to another server.
まだフォーラムで検索しても見つからないので、どんな助けでもいただければ幸いです。
私は現在Ubuntu 20.04.3 LTSを実行しており、公式のProtonVPNパッケージ(https://protonvpn.com/support/linux-ubuntu-vpn-setup/)
答え1
検索した後、ついにこの修正方法を見つけました!
この問題を解決するには、PolicyKit
のルールを追加する必要がありますNetworkManager
。
root を使用してファイル名を作成し/etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla
、内容は以下のようになります。
Identity=unix-user:<your username>
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yes
<your username>
Linux ユーザー名に置き換えます。
複数のユーザー名の場合:
Identity=unix-user:<username1>;unix-user:<username2>
PolicyKit
認証エージェントが存在するかどうかを確認します。
# ls /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
ls: cannot access '/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1': No such file or directory
ファイルが存在しない場合は、次の方法でインストールしますapt-get install policykit-1-gnome
。
# apt-get install policykit-1-gnome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
policykit-1-gnome
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 68.2 kB of archives.
After this operation, 508 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 policykit-1-gnome amd64 0.105-7 [68.2 kB]
Fetched 68.2 kB in 0s (752 kB/s)
Selecting previously unselected package policykit-1-gnome.
(Reading database ... 133186 files and directories currently installed.)
Preparing to unpack .../policykit-1-gnome_0.105-7_amd64.deb ...
Unpacking policykit-1-gnome (0.105-7) ...
Setting up policykit-1-gnome (0.105-7) ...
policykit-1-gnome
存在しない場合は、apt-cache
検索を使用してPolicyKit Authentication Agent
正しいパッケージ名を取得してください。
# apt-cache search PolicyKit Authentication Agent
lxqt-policykit - LXQt authentication agent for PolicyKit
lxpolkit - LXDE PolicyKit authentication agent
mate-polkit - MATE authentication agent for PolicyKit-1
mate-polkit-bin - MATE authentication agent for PolicyKit-1 (executable wrapper script)
mate-polkit-common - MATE authentication agent for PolicyKit-1 (common files)
libpolkit-agent-1-0 - PolicyKit Authentication Agent API
libpolkit-agent-1-dev - PolicyKit Authentication Agent API - development files
policykit-1-gnome - authentication agent for PolicyKit
polkit-kde-agent-1 - KDE dialogs for PolicyKit
ukui-polkit - UKUI authentication agent for PolicyKit-1
その後、再度接続を実行してみてくださいprotonvpn-cli
。これで準備完了です。