libtinfo6 无法安装

libtinfo6 无法安装

我正在尝试安装 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 fy a solution).

我试着写:

apt --fix-broken install 

它只提供了一些选择。

我正在使用 Linux Mint 19.2。当我写 xgterm 时,我得到

xgterm: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory 

答案1

xgterm您尝试安装的软件包对于您的系统来说太新了。首先删除它:

apt purge xgterm

xgterm这将允许您继续按照构建 iaf 的说明进行操作,其中包括为您的系统构建具有适当依赖项的版本。

相关内容