ubuntu vmlinux 获取

ubuntu vmlinux 获取

1.从ubuntu keyserver获取key

ubuntu 16.04及以后的系统:
$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C8CAB6595FDFF622

ubuntu 16.04以前的系统:
$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01

2. 创建debug list文件

$ codename=$(lsb_release -c | awk '{print $2}')

  • 获取发行版代号
lsb_release -c | awk  '{print $2}'
focal
  • 创建/etc/apt/sources.list.d/ddebs.list文件,添加如下内容:
deb http://ddebs.ubuntu.com/ ${codename}      main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-updates  main restricted universe multiverse
deb http://ddebs.ubuntu.com/ ${codename}-proposed main restricted universe multiverse
  • 修改/etc/apt/sources.list.d/ddebs.list文件
    vi cmd:
:1,$s/${codename}/bionic

3. 更新debug symbol源

$sudo apt-get update

4. 获取linux kernel的debug symbol

$sudo apt-get install linux-image-$(uname -r)-dbgsym

linux kernel的debug symbol 位于 /usr/lib/debug/boot/

posted @ 2022-07-29 16:28  反光  阅读(262)  评论(0编辑  收藏  举报