Ubuntu

為什麼 octave 包沒有出現在 apt search 中?

  • February 14, 2018

我正在使用“termux”(安卓終端模擬器)。我最近在“proot”環境中安裝了 Ubuntu。當我使用 ‘apt search octave’ 搜尋 octave 包時,我找不到任何結果。然後我在 Ubuntu 包中手動搜尋 octave 以驗證它是否可用於“armhf”。令我驚訝的是,它可用於 ‘armhf’ 。我真的很想在我的 android 上使用 octave 。為什麼它沒有出現在 apt search 中?我能做些什麼來修復它?我的架構資訊

Ubuntu 包搜尋:https ://packages.ubuntu.com/search?suite=artful&arch=armhf&searchon=names&keywords=Octave

“cat /etc/apt/sources.list”的輸出

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ artful main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ artful-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ artful universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful universe
deb http://ports.ubuntu.com/ubuntu-ports/ artful-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ports.ubuntu.com/ubuntu-ports/ artful multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ artful-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ artful-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu artful partner
# deb-src http://archive.canonical.com/ubuntu artful partner

deb http://ports.ubuntu.com/ubuntu-ports/ artful-security main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ artful-security universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ artful-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ artful-security multiverse

octave軟體包在universe儲存庫中可用:

sudo add-apt-repository universe
sudo apt update
sudo apt install octave

八度下載頁面

您應該能夠通過添加一行來使用任何列出的鏡像,/etc/apt/sources.list如下所示:

deb http:// artful main universe

對於您的情況,只需執行以下操作:將第 3 行更改為:

deb http://ports.ubuntu.com/ubuntu-ports/ artful main universe restricted

然後更新您的系統。

引用自:https://unix.stackexchange.com/questions/424063