protonvpn 错误 — “预计 --menu 至少有 5 个令牌,但实际有 4 个”

protonvpn 错误 — “预计 --menu 至少有 5 个令牌,但实际有 4 个”

我已经安装了 protonvpn,并且已经使用很长时间了,没有任何问题。

我已经使用过本教程 -https://www.tecmint.com/install-protonvpn-in-linux/ 安装protonvpn

从今天开始,尝试连接 protonvpn 时突然出现以下错误 -

sudo protonvpn connect

Traceback (most recent call last):
  File "/usr/local/bin/protonvpn", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/protonvpn_cli/cli.py", line 72, in main
    cli()
  File "/usr/local/lib/python3.8/dist-packages/protonvpn_cli/cli.py", line 134, in cli
    connection.dialog()
  File "/usr/local/lib/python3.8/dist-packages/protonvpn_cli/connection.py", line 83, in dialog
    country = show_dialog("Choose a country:", choices)
  File "/usr/local/lib/python3.8/dist-packages/protonvpn_cli/connection.py", line 38, in show_dialog
    code, tag = d.menu(headline, title="ProtonVPN-CLI", choices=choices)
  File "/usr/local/lib/python3.8/dist-packages/dialog.py", line 2935, in menu
    return self._widget_with_string_output(
  File "/usr/local/lib/python3.8/dist-packages/dialog.py", line 1728, in _widget_with_string_output
    code, output = self._perform(args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/dialog.py", line 1523, in _perform
    exit_code, output = self._handle_program_exit(child_pid,
  File "/usr/local/lib/python3.8/dist-packages/dialog.py", line 1489, in _handle_program_exit
    self._wait_for_program_termination(child_pid,
  File "/usr/local/lib/python3.8/dist-packages/dialog.py", line 1435, in _wait_for_program_termination
    raise DialogError(
dialog.DialogError: dialog-like terminated due to an error: the dialog-like program exited with status 3 (which was passed to it as the DIALOG_ERROR environment variable). Sometimes, the reason is simply that dialog was given a height or width parameter that is too big for the terminal in use. Its output, with leading and trailing whitespace stripped, was:

Error: Expected at least 5 tokens for --menu, have 4.

那么,我该如何纠正这个问题?

相关内容