当前位置: 首页 > news >正文

笔记,ubuntu22安装header问题

描述:

需要/lib/modules/5.15.0-53-generic

安装linux-headers-5.15.0-53-generic_5.15.0-53.59_20.04.1_amd64.deb提示 Package libssl1.1 is not installed.,机器上只有libssl3.0,最后强制安装,并且打了快照,防止重启后可能进不了系统。

root@xxx:~/5.15.0-53-generic# ls -al /lib/modules/5.15.0-53-generic
total 1660
drwxr-xr-x  6 root root   4096 Aug 11 06:30 .
drwxr-xr-x  9 root root   4096 Aug 11 06:19 ..
lrwxrwxrwx  1 root root     40 Oct 20  2022 build -> /usr/src/linux-headers-5.15.0-53-generic
drwxr-xr-x  2 root root   4096 Oct 20  2022 initrd
drwxr-xr-x 12 root root   4096 Aug 10 10:01 kernel
-rw-r--r--  1 root root 166818 Aug 10 10:01 modules.alias
-rw-r--r--  1 root root 173177 Aug 10 10:01 modules.alias.bin
-rw-r--r--  1 root root  10498 Oct 20  2022 modules.builtin
-rw-r--r--  1 root root  26433 Aug 10 10:01 modules.builtin.alias.bin
-rw-r--r--  1 root root  13012 Aug 10 10:01 modules.builtin.bin
-rw-r--r--  1 root root  82263 Oct 20  2022 modules.builtin.modinfo
-rw-r--r--  1 root root  91972 Aug 10 10:01 modules.dep
-rw-r--r--  1 root root 132056 Aug 10 10:01 modules.dep.bin
-rw-r--r--  1 root root    268 Aug 10 10:01 modules.devname
-rw-r--r--  1 root root 242946 Oct 20  2022 modules.order
-rw-r--r--  1 root root    574 Aug 10 10:01 modules.softdep
-rw-r--r--  1 root root 321444 Aug 10 10:01 modules.symbols
-rw-r--r--  1 root root 377136 Aug 10 10:01 modules.symbols.bin
drwxr-xr-x  3 root root   4096 Aug  9 03:06 ubuntu
drwxr-xr-x  3 root root   4096 Aug  9 03:06 vdso

root@xxx:~/5.15.0-53-generic# dpkg -i linux-headers-5.15.0-53-generic_5.15.0-53.59_20.04.1_amd64.deb 
Selecting previously unselected package linux-headers-5.15.0-53-generic.
(Reading database ... 170413 files and directories currently installed.)
Preparing to unpack linux-headers-5.15.0-53-generic_5.15.0-53.59_20.04.1_amd64.deb ...
Unpacking linux-headers-5.15.0-53-generic (5.15.0-53.59~20.04.1) ...
dpkg: dependency problems prevent configuration of linux-headers-5.15.0-53-generic:
 linux-headers-5.15.0-53-generic depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

dpkg: error processing package linux-headers-5.15.0-53-generic (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-5.15.0-53-generic
root@xxx:~/5.15.0-53-generic# dpkg -i linux-headers-5.15.0-53-generic_5.15.0-53.59_20.04.1_amd64.deb  --nodeps
dpkg: error: cannot access archive '--nodeps': No such file or directory
root@xxx:~/5.15.0-53-generic# dpkg -i --force-all  linux-headers-5.15.0-53-generic_5.15.0-53.59_20.04.1_amd64.deb 
(Reading database ... 179953 files and directories currently installed.)
Preparing to unpack linux-headers-5.15.0-53-generic_5.15.0-53.59_20.04.1_amd64.deb ...
Unpacking linux-headers-5.15.0-53-generic (5.15.0-53.59~20.04.1) over (5.15.0-53.59~20.04.1) ...
dpkg: linux-headers-5.15.0-53-generic: dependency problems, but configuring anyway as you requested:
 linux-headers-5.15.0-53-generic depends on libssl1.1 (>= 1.1.0); however:
  Package libssl1.1 is not installed.

Setting up linux-headers-5.15.0-53-generic (5.15.0-53.59~20.04.1) ...
root@xxx:~/5.15.0-53-generic# dpkg -l |grep 5.15.0-53                        
ii  linux-buildinfo-5.15.0-53-generic       5.15.0-53.59~20.04.1                    amd64        Linux kernel buildinfo for version 5.15.0 on 64 bit x86 SMP
ii  linux-headers-5.15.0-53-generic         5.15.0-53.59~20.04.1                    amd64        Linux kernel headers for version 5.15.0 on 64 bit x86 SMP
ii  linux-hwe-5.15-headers-5.15.0-53        5.15.0-53.59~20.04.1                    all          Header files related to Linux kernel version 5.15.0
ii  linux-image-unsigned-5.15.0-53-generic  5.15.0-53.59~20.04.1                    amd64        Linux kernel image for version 5.15.0 on 64 bit x86 SMP
ii  linux-modules-5.15.0-53-generic         5.15.0-53.59~20.04.1                    amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.15.0-53-generic   5.15.0-53.59~20.04.1                    amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii  linux-modules-iwlwifi-5.15.0-53-generic 5.15.0-53.59~20.04.1                    amd64        Linux kernel iwlwifi modules for version 5.15.0-53
root@xxx:~/5.15.0-53-generic# ls -al /lib/modules
modules/        modules-load.d/ 
root@xxx:~/5.15.0-53-generic# ls -al /lib/modules/5.15.0-
5.15.0-53-generic/ 5.15.0-60-generic/ 5.15.0-67-generic/ 5.15.0-69-generic/ 5.15.0-73-generic/ 5.15.0-76-generic/ 5.15.0-78-generic/
root@xxx:~/5.15.0-53-generic# ls -al /lib/modules/
total 36
drwxr-xr-x  9 root root 4096 Aug 11 06:19 .
drwxr-xr-x 88 root root 4096 Aug 11 06:17 ..
drwxr-xr-x  6 root root 4096 Aug 11 06:30 5.15.0-53-generic
drwxr-xr-x  2 root root 4096 Mar 29 06:56 5.15.0-60-generic
drwxr-xr-x  5 root root 4096 Mar 28 06:49 5.15.0-67-generic
drwxr-xr-x  2 root root 4096 Jun  9 06:41 5.15.0-69-generic
drwxr-xr-x  2 root root 4096 Aug 11 06:21 5.15.0-73-generic
drwxr-xr-x  5 root root 4096 Jul 20 07:00 5.15.0-76-generic
drwxr-xr-x  5 root root 4096 Aug 11 06:19 5.15.0-78-generic

http://www.lryc.cn/news/118644.html

相关文章:

  • 领航优配:股票分红为什么股价下降?分红有什么好处?
  • Spark(38):Streaming DataFrame 和 Streaming DataSet 转换
  • 设计模式之六:命令模式(封装调用)
  • git删除历史提交中的某些文件
  • Java List(列表)
  • 虚拟机的创建与使用
  • springboot传给前端日期少了八小时
  • 链表数组OJ题汇总
  • 中间人攻击与 RADIUS 身份验证
  • 虚拟机安装国产操作系统的方法
  • 【Linux】云服务器自动化部署VuePress博客(Jenkins)
  • Golang字符串处理深入解析:探索 strings 标准库的全部方法
  • 如何在群辉NAS系统下安装cpolar套件,并使用cpolar内网穿透?
  • opencv基础57-模板匹配cv2.matchTemplate()->(目标检测、图像识别、特征提取)
  • 搜索插入位置
  • Centos Linux快速复制文件并查看进度的方法(保留文件原始时间戳等属性)
  • 牛奶产业链的工业“链主品牌”利乐是如何诞生的?
  • 【历史上的今天】8 月 11 日:苹果电脑之父诞生;阿里巴巴收购雅虎中国;OpenAI 击败电竞世界冠军
  • Flutter 报错 Could not create task ‘xxx‘.this and base files have different roots
  • 单调递增的数字——力扣738
  • STL文件格式详解【3D】
  • 【分布式技术专题】RocketMQ延迟消息实现原理和源码分析
  • Qt中ffmpeg API存储和显示摄像头视频
  • jfinal tomcat部署
  • Linux - MongoDB 数据库自动退出服务问题/闪退
  • B2B2C多语言电商系统平台搭建,多用户商城系统搭建(app、小程序、微商城)
  • 【MySQL】创建高级联结
  • chatGPT应用于房地产行业
  • java之jmh初识及使用
  • 利用状态监测和机器学习提高冷却塔性能的具体方法