长话短说:出于科学目的,我需要调试各种内核版本的符号。(内存取证)
我关注了一些指导这导致我执行:
$ apt-get install --print-uris linux-image-$(uname -r)-dbgsym
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
linux-image-5.4.0-58-generic-dbgsym
0 upgraded, 1 newly installed, 0 to remove and 284 not upgraded.
Need to get 15,4 kB of archives.
After this operation, 22,5 kB of additional disk space will be used.
'http://ddebs.ubuntu.com/pool/main/l/linux-signed/linux-image-5.4.0-58-generic-dbgsym_5.4.0-58.64_amd64.ddeb' linux-image-5.4.0-58-generic-dbgsym_5.4.0-58.64_amd64.ddeb 15420 MD5Sum:abf99aad97774011358418df34d0c5f1
在我的 Ubuntu 机器上。然后,我进入了/usr/lib/debug/boot/vmlinux-5.4.0-58-generic
那台机器。
apt-get
但是:当我直接下载由于 而打印在那里的URL 时--print-uris
,deb 文件不包含调试符号文件!我希望在那里找到调试符号,并在同一个目录中找到不同版本的调试符号文件夹。但似乎它们都不包含实际的矮人文件。
如能提供任何帮助我将非常感激。
答案1
请注意,有问题的软件包带有依赖项:
# LANG=C dpkg -i linux-image-5.4.0-58-generic-dbgsym_5.4.0-58.64_amd64.ddeb
Selecting previously unselected package linux-image-5.4.0-58-generic-dbgsym.
(Reading database ... 473483 files and directories currently installed.)
Preparing to unpack linux-image-5.4.0-58-generic-dbgsym_5.4.0-58.64_amd64.ddeb ...
Unpacking linux-image-5.4.0-58-generic-dbgsym (5.4.0-58.64) ...
dpkg: dependency problems prevent configuration of linux-image-5.4.0-58-generic-dbgsym:
linux-image-5.4.0-58-generic-dbgsym depends on linux-image-unsigned-5.4.0-58-generic-dbgsym; however:
Package linux-image-unsigned-5.4.0-58-generic-dbgsym is not installed.
[...]
您也想安装后者。