在 Ubuntu 18.04 上安装 GNU Octave 时出现 gpg 密钥超时错误

在 Ubuntu 18.04 上安装 GNU Octave 时出现 gpg 密钥超时错误

我尝试使用以下命令安装 Octave:

  1. sudo add-apt-repository ppa:octave/stable

  2. sudo apt update

  3. sudo apt-get install octave

但是运行第一个命令后,出现以下错误:

The latest version of GNU Octave built for all supported Ubuntu releases. GNU Octave is normally distributed with Ubuntu, this PPA is for you if you have a need to use a newer version of Octave than what you can already get from your installed version of Ubuntu.

Simply follow the instructions below to add this PPA to your system and install the octave package. If it's not that easy or you encounter any errors, contact the team and let us know.

Much credit goes to the Debian Octave Group who maintain the official Debian packages that this work is derived from. Without their efforts to bring Octave packaging to such a high level of quality in Debian and Debian derivatives, this PPA would not be here.
 More info: https://launchpad.net/~octave/+archive/ubuntu/stable
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Error: retrieving gpg key timed out.

我在使用 Ubuntu 18.04。请帮我解决这个问题。

答案1

互联网上几乎所有地方都推荐使用上述 3 个步骤来安装 Octave。

该软件的 PPA适用于较旧版本的 Ubuntu(16.04 LTS 和 14.04 LTS)。无需明确添加。

直接在终端中运行以下命令:

sudo apt install octave

它应该可以正常工作。希望这能有所帮助 :)

相关内容