我使用 Ubuntu 构建页面中提到的步骤构建了 Linux 映像、标头和工具。以下是我获得的 deb 包;
- Linux 头文件
- Linux的工具-4.15.0-51-generic_4.15.0-51.55_amd64.deb,
- Linux 映像-未签名-4.15.0-51-generic_4.15.0-51.55_amd64.deb
但是,当我尝试使用“dpkg -i *.deb”在我的 Ubuntu 18.04 机器上安装它时,出现了以下错误。
Selecting previously unselected package linux-headers-4.15.0-51-generic.
(Reading database ... 75312 files and directories currently installed.)
Preparing to unpack linux-headers-4.15.0-51-generic_4.15.0-51.55_amd64.deb ...
Unpacking linux-headers-4.15.0-51-generic (4.15.0-51.55) ...
Selecting previously unselected package linux-image-unsigned-4.15.0-51-generic.
Preparing to unpack linux-image-unsigned-4.15.0-51-generic_4.15.0-51.55_amd64.deb ...
Unpacking linux-image-unsigned-4.15.0-51-generic (4.15.0-51.55) ...
Selecting previously unselected package linux-tools-4.15.0-51-generic.
Preparing to unpack linux-tools-4.15.0-51-generic_4.15.0-51.55_amd64.deb ...
Unpacking linux-tools-4.15.0-51-generic (4.15.0-51.55) ...
Selecting previously unselected package linux-image-unsigned-4.15.0-51-generic-dbgsym.
Preparing to unpack linux-image-unsigned-4.15.0-51-generic-dbgsym_4.15.0-51.55_amd64.ddeb ...
Unpacking linux-image-unsigned-4.15.0-51-generic-dbgsym (4.15.0-51.55) ...
dpkg: dependency problems prevent configuration of linux-headers-4.15.0-51-generic:
linux-headers-4.15.0-51-generic depends on linux-headers-4.15.0-51; however:
Package linux-headers-4.15.0-51 is not installed.
dpkg: error processing package linux-headers-4.15.0-51-generic (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-unsigned-4.15.0-51-generic:
linux-image-unsigned-4.15.0-51-generic depends on linux-modules-4.15.0-51-generic; however:
Package linux-modules-4.15.0-51-generic is not installed.
dpkg: error processing package linux-image-unsigned-4.15.0-51-generic (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-tools-4.15.0-51-generic:
linux-tools-4.15.0-51-generic depends on linux-tools-4.15.0-51; however:
Package linux-tools-4.15.0-51 is not installed.
dpkg: error processing package linux-tools-4.15.0-51-generic (--install):
dependency problems - leaving unconfigured
Setting up linux-image-unsigned-4.15.0-51-generic-dbgsym (4.15.0-51.55) ...
Errors were encountered while processing:
linux-headers-4.15.0-51-generic
linux-image-unsigned-4.15.0-51-generic
linux-tools-4.15.0-51-generic
从错误中,我了解到以下依赖包未安装;
- Linux 工具-4.15.0-51
- Linux 标头-4.15.0-51
- Linux 工具-4.15.0-51
这些依赖包是什么以及如何构建它们?
以下是 linux-tools-4.15.0-34-generic 的“debian/control”文件的内容
Package: linux-tools-4.15.0-34-generic
Build-Profiles: <!stage1>
Architecture: i386 amd64 armhf arm64 ppc64el s390x
Section: devel
Priority: optional
Depends: ${misc:Depends}, linux-tools-4.15.0-34
Description: Linux kernel version specific tools for version 4.15.0-34
This package provides the architecture dependant parts for kernel
version locked tools (such as perf and x86_energy_perf_policy) for
version 4.15.0-34 on
64 bit x86.
我知道如何使用 apt-get 安装内核包,但我的要求是从源代码构建自己的内核。