我正在使用“termux”(android 终端模拟器)。我最近在“proot”环境中安装了 Ubuntu。当我使用 'apt search Octave' 搜索八度包时,我找不到任何结果。然后我在Ubuntu软件包中手动搜索octave来验证它是否可用于'armhf'。令我惊讶的是它可用于 'armhf' 。我真的很想在我的 android 上使用八度。为什么它没有出现在 apt 搜索中?我能做什么来修复它?
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
答案1
这octave
软件包可在universe
存储库中找到:
sudo add-apt-repository universe
sudo apt update
sudo apt install octave
您应该能够通过向您的
/etc/apt/sources.list
文件中添加一行来使用列出的任何镜像,如下所示:
deb http:// artful main universe
对于您的情况,只需执行以下操作:将第三行更改为:
deb http://ports.ubuntu.com/ubuntu-ports/ artful main universe restricted
然后更新你的系统。