即使安装后仍出现未找到包异常

即使安装后仍出现未找到包异常

当我执行 ./configure 时出现以下错误。

configure: error: Package requirements (gio-2.0 >= 0.23.0
                       libgcab-1.0 >= 0.1.10
                       uuid >= 1.41.3
                       libxml-2.0 >= 2.7) were not met:

No package 'libgcab-1.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables WIXL_CFLAGS
and WIXL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

与我之前的问题不同(当我执行 ./configure 时,找不到软件包),这次即使安装了模块之后仍然会出现错误。

sudo apt-cache search libgcab
libgcab-1.0-0 - Microsoft Cabinet file manipulation library
libgcab-dev - Microsoft Cabinet file manipulation library - development files

sudo apt-get install libgcab-1.0-0
Reading package lists... Done
Building dependency tree        
Reading state information... Done
libgcab-1.0-0:i386 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 120 not upgraded.

sudo apt-get install libgcab-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgcab-dev:i386 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 120 not upgraded.

什么问题可能导致该错误?

编辑

apt-cache policy libgcab.*
N: Unable to locate package libgcab.*
N: Couldn't find any package by regex 'libgcab.*'

grep "universe" /etc/apt/sources.list
## team. Also, please note that software in universe WILL NOT receive any
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe

答案1

正如你所见,当你输入sudo apt-cache 搜索 libgcab它将显示 3 个版本。1.0-0、文档和开发因此如果 ./configure 认为没有名为该文件的文件,那么请尝试下载开发版本。sudo apt-get 安装 libgcab-dev。您正在尝试反编译 .msi 文件,对吧?我遇到了同样的问题,这种方法对我有用。

相关内容