首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >致命错误: openssl/bio.h:没有这样的文件或目录

致命错误: openssl/bio.h:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2019-11-24 18:54:52
回答 1查看 10.9K关注 0票数 4

我尝试使用make命令重新编译内核以进行配置,但出现了以下错误:

代码语言:javascript
复制
scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
 #include <openssl/bio.h>

于是,我尝试安装了libssl-dev

代码语言:javascript
复制
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:
 libssl-dev : Depends: libssl1.1 (= 1.1.1b-1ubuntu2) but 1.1.1b-1ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

谁能告诉我怎样才能修复我的依赖关系?我为什么要把它们弄坏呢?

EN

Stack Overflow用户

发布于 2020-04-11 18:56:14

尝试安装aptitude并使用此工具降级libssl-dev。

代码语言:javascript
复制
$ sudo apt-get install aptitude

完成此步骤后,使用After将您的从1.1.1b-1ubuntu2降级到1.1.1b-1ubuntu2.1

代码语言:javascript
复制
$ sudo aptitude install libssl-dev

仔细选择选项。这将解决您的问题。

票数 8
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59016911

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档