libtinfo6 库不可安装

libtinfo6 library is not installable

我正在尝试安装 iraf 并收到以下错误。请问如何解决?

https://github.com/iraf-community/x11iraf

sudo apt install gcc make bison flex libncurses-dev tcl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
bison is already the newest version (2:3.0.4.dfsg-1build1).
flex is already the newest version (2.6.4-6).
make is already the newest version (4.1-9.1ubuntu1).
tcl-dev is already the newest version (8.6.0+9).
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
libncurses5-dev is already the newest version (6.1-1ubuntu1.18.04).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 xgterm : Depends: libtinfo6 (>= 6) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Mint 19.2 没有 xgterm,所以这可能是从其他地方安装的,因此导致了问题。从不同的发行版安装软件包从来都不是一个好主意。

简单的解决方案是用

删除 xgterm
sudo apt remove xgterm