如何修复这个错误?
我已经执行了这组命令。
sudo dpkg --add-architecture arm64
sudo apt update
sudo apt install libncurses5:arm64 libncursesw5:arm64
sudo apt install libncurses5-dev:arm64 libncursesw5-dev:arm64
执行后,我收到此错误。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libncurses-dev:arm64 : Depends: libncurses6:arm64 (= 6.2-0ubuntu2.1) but it is not going to be installed
Depends: libncursesw6:arm64 (= 6.2-0ubuntu2.1) but it is not going to be installed
Depends: libc6-dev:arm64 but it is not going to be installed or
libc-dev:arm64
libtinfo6:arm64 : Depends: libc6:arm64 (>= 2.17) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Debian(及其派生的东西)不提供除了交叉编译所需的工具之外的软件包。 如果你想在Ubuntu的跨环境中使用ncurses,你必须自己配置和编译它。