E: Unable to locate package autoheader

发布时间 2023-11-16 10:23:02作者: 闹闹爸爸

系统:ubuntu20.04

在编译util-linux库的时候,执行 ./autogen.sh  时报如下错误:

ERROR: You must have autopoint installed to generate the util-linux build system.
       The autopoint command is part of the GNU gettext package.


ERROR: You must have autoconf installed to generate the util-linux build system.


ERROR: You must have autoheader installed to generate the util-linux build system.
       The autoheader command is part of the GNU autoconf package.


ERROR: You must have libtool-2 installed to generate the util-linux build system.


ERROR: You must have automake installed to generate the util-linux build system.

执行 apt-get install autopoint 和 apt-get install autoconf 时都能正常安装,但是执行 apt-get install autoheader 时报如下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package autoheader

执行  apt-cache search autoheader* 搜索autoheader相关的库也没有搜到。

解决办法

在ubuntu14.04上搜索 apt-cache search autoheader ,结果如下:

# apt-cache search autoheader
autoconf2.13 - automatic configure script builder (obsolete version)

隐藏的很好!!!

在ubuntu20.04上执行 apt-get install autoconf2.13 ,安装完成以后再执行 ./autogen.sh  就不会报 ERROR: You must have autoheader installed to generate the util-linux build system. 的错误了。