安装libprotobuf-dev时出错:依赖项未满足

时间:2020-05-19 17:45:59

标签: bash cmake protocol-buffers

我在运行特定程序的版本时的第一个错误是我的cmake导致错误

CMake Error at /opt/cmake-3.17.2-Linux-x86_64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
  /opt/cmake-3.17.2-Linux-x86_64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindProtobuf.cmake:624 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:49 (find_package)

因此,我可能需要运行以下命令来安装protobuf项目: sudo apt-get install libprotobuf-dev protobuf-compiler

我收到以下错误消息

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:
 libprotobuf-dev : Depends: libprotobuf-lite9v5 (= 2.6.1-1.3) but 2.6.1-1.3ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

我该如何安装以防止出现此错误消息?

0 个答案:

没有答案