无法安装 lib32ncurses5-dev 或 ia32-libs

tit*_*rum 4 package-management

我正在尝试安装 Android 源代码,但不断收到此错误。我一直在安装,但似乎这些包是完整和成功安装所必需的。

这是我的错误

Package lib32ncurses5-dev is not available, but is referred to by another package.
Run Code Online (Sandbox Code Playgroud)

这可能意味着软件包丢失、已过时或只能从其他来源获得

Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'lib32ncurses5-dev' has no installation candidate
E: Package 'ia32-libs' has no installation candidate
E: Unable to locate package lib32readline5-dev
E: Unable to locate package lib32z-dev
Run Code Online (Sandbox Code Playgroud)

我在 Intel® Core™ i5-2300 CPU @ 2.80GHz 和 32 位系统上有一个带有 Ubuntu 的 VM

Cae*_*ium 5

ia32-libs是在universe 组件中。听起来您没有启用此存储库。

您需要在 Software Center -> Software Sources 中启用它,或者通过编辑/etc/apt/sources.list和取消注释universe末尾的行来启用它。

不要忘记执行apt-get update(或在更新管理器中按更新)