解决apt-get install在安装软件包时依赖不兼容问题

时间:2024-03-25 12:57:40

解决apt-get install在安装软件包时依赖不兼容问题

在树莓派上安装libncurses5-dev出现以下问题

[email protected]:~/6lbr/examples/6lbr $ sudo apt-get install libncurses5-dev 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:
libncurses5-dev : Depends: libtinfo5 (= 5.9+20140913-1+deb8u3) but 6.0+20161126-1+deb9u2 is to be installed
Depends: libncurses5 (= 5.9+20140913-1+deb8u3) but 6.0+20161126-1+deb9u2 is to be installed
Depends: libtinfo-dev (= 5.9+20140913-1+deb8u3) but it is not going to be installed
Depends: ncurses-bin (= 5.9+20140913-1+deb8u3) but 6.0+20161126-1+deb9u2 is to be installed
E: Unable to correct problems, you have held broken packages.
解决apt-get install在安装软件包时依赖不兼容问题

解决

  • 执行sudo aptitude install libncurses5-dev命令

解决apt-get install在安装软件包时依赖不兼容问题

相关文章