Debian
如何在我的機器上安裝 octave 4.2.0?
如何安裝 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
您可以從Stretch backports安裝 Octave 4.4.1(在撰寫本文時):
- 添加 backports 儲存庫(以 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