笔记,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

你可能感兴趣的:(笔记,java,前端)