如何安装 Octave 4.2.0 或最新版本?我努力了:
- 当我已经安装了其他版本时安装最新版本的 GNU Octave: 没有给出 flathub 命令未找到
- 在 ubuntu 上从源代码安装 Octave 4.2.0?: 不起作用
- 在 ubuntu 上从源代码安装 Octave 4.2.0?:不起作用配置:
error: BLAS and LAPACK libraries are required
- 在 ubuntu 上从源代码安装 Octave 4.2.0?: 不能工作安装4.0.3代替
这是我的电脑版本:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch
我运行命令sudo -i
进入root,然后运行以下命令。我不确定这是否正确。
$ sudo -i
# echo deb http://deb.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/stretch-backports.list
# apt update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch-backports InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Hit:7 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease
Hit:8 https://download.docker.com/linux/debian stretch InRelease
Hit:9 https://nvidia.github.io/libnvidia-container/debian9/amd64 InRelease
Hit:10 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease
Hit:11 https://nvidia.github.io/nvidia-container-runtime/debian9/amd64 InRelease
Hit:12 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease
Hit:6 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Ign:13 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu disco InRelease
Hit:14 https://nvidia.github.io/nvidia-docker/debian9/amd64 InRelease
Ign:16 http://ppa.launchpad.net/octave/stable/ubuntu disco InRelease
Ign:17 http://ppa.launchpad.net/picaso/octave/ubuntu disco InRelease
Err:18 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu disco Release
404 Not Found
Err:19 http://ppa.launchpad.net/octave/stable/ubuntu disco Release
404 Not Found
Err:20 http://ppa.launchpad.net/picaso/octave/ubuntu disco Release
404 Not Found
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
E: The repository 'http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/octave/stable/ubuntu disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/picaso/octave/ubuntu disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/backports.list:1 and /etc/apt/sources.list.d/stretch-backports.list:1
答案1
您可以从以下位置安装 Octave 4.4.1(截至撰写本文时):拉伸向后移植:
添加向后移植存储库(作为 root)
echo deb http://deb.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/stretch-backports.list
更新你的包索引
apt update
安装 OpenJDK
apt install -t stretch-backports octave
如果您更愿意使用sudo
,则等效步骤是
echo deb http://deb.debian.org/debian stretch-backports main | sudo tee /etc/apt/sources.list.d/stretch-backports.list
sudo apt update
sudo apt install -t stretch-backports octave