Usually I rarely use Ubuntu, and I am not familiar with the related operations. I will record some methods of viewing the kernel repair information on ubuntu.
ubuntu view the changelog method of a certain version:
Download the changelog file and view it with vim:
apt-get changelog linux-image-3.13.0-117-generic
Download the deb package and store it in the /var/cache/apt/archives/ directory by default after downloading
apt-get-d install linux-image-3.13.0-117-generic
Download the source code package to the current directory:
apt-cache search linux-source
apt-get source linux-image-3.13.0-117-generic //New version of apt-get source linux-source-4.15.0
E.g:
root@VM-32-104-ubuntu:/home/ubuntu# apt-get source linux-image-3.13.0-117-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'linux-lts-trusty'as source package instead of'linux-image-3.13.0-117-generic'
NOTICE:'linux-lts-trusty' packaging is maintained in the 'Git' version control system at:
http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-precise.git lts-backport-trusty
Need to get128 MB of source archives.
Get:1 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main linux-lts-trusty 3.13.0-117.164~precise1(dsc)[3,623 B]
Get:2 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main linux-lts-trusty 3.13.0-117.164~precise1(tar)[116 MB]
Get:3 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main linux-lts-trusty 3.13.0-117.164~precise1(diff)[11.4 MB]
Fetched 128 MB in2s(52.7 MB/s)
gpgv: Signature made Tue 11 Apr 201712:10:18 AM CST using RSA key ID CBEECEA3
gpgv: Can't check signature:public key not found
dpkg-source: warning: failed to verify signature on ./linux-lts-trusty_3.13.0-117.164~precise1.dsc
dpkg-source: info: extracting linux-lts-trusty in linux-lts-trusty-3.13.0
dpkg-source: info: unpacking linux-lts-trusty_3.13.0.orig.tar.gz
dpkg-source: info: applying linux-lts-trusty_3.13.0-117.164~precise1.diff.gz
dpkg-source: info: upstream files that have been modified:
linux-lts-trusty-3.13.0/Documentation/ABI/removed/net_dma
linux-lts-trusty-3.13.0/Documentation/ABI/stable/sysfs-firmware-opal-dump
linux-lts-trusty-3.13.0/Documentation/ABI/stable/sysfs-firmware-opal-elog
linux-lts-trusty-3.13.0/Documentation/ABI/testing/ima_policy
linux-lts-trusty-3.13.0/Documentation/ABI/testing/sysfs-firmware-efi
linux-lts-trusty-3.13.0/Documentation/ABI/testing/sysfs-firmware-efi-runtime-ma
....
After the download is complete, linux-lts-trusty-3.13.0 is the source package corresponding to the linux-image-3.13.0-117-generic version patched on the basis of linux-lts-trusty_3.13.0.orig.tar.gz:
root@VM-32-104-ubuntu:/home/ubuntu/source# ls -al
total 124928
drwxr-xr-x 3 root root 4096 Aug 1113:10.
drwxrwxrwx 8 ubuntu sudo 4096 Aug 1113:10..
drwxr-xr-x 27 root root 4096 Aug 1113:10 linux-lts-trusty-3.13.0-rw-r--r--1 root root 11352017 Apr 132017 linux-lts-trusty_3.13.0-117.164~precise1.diff.gz
- rw-r--r--1 root root 3623 Apr 132017 linux-lts-trusty_3.13.0-117.164~precise1.dsc
- rw-r--r--1 root root 116419243 Apr 162014 linux-lts-trusty_3.13.0.orig.tar.gz
linux-lts-trusty_3.13.0-117.164~precise1.diff.gz is linux-lts-trusty-3.13.0 and linux-lts-trusty_3.13.0.orig.tar.The diff information between gz.
In addition, apt-get source downloads the latest source code package of this version every time. The historical package cannot be downloaded. For example, if you want to download the source code of linux-image-3.13.0-32-generic, the download is actually the latest one. Version of linux-image-3.13.0-117-generic source code package:
root@VM-32-104-ubuntu:/home/ubuntu/source/linux-image-3.13.0-32-generic# apt-get source linux-image-3.13.0-32-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'linux-lts-trusty'as source package instead of'linux-image-3.13.0-32-generic'
NOTICE:'linux-lts-trusty' packaging is maintained in the 'Git' version control system at:
http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-precise.git lts-backport-trusty
Need to get128 MB of source archives.
Get:1 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main linux-lts-trusty 3.13.0-117.164~precise1(dsc)[3,623 B]
Get:2 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main linux-lts-trusty 3.13.0-117.164~precise1(tar)[116 MB]
Get:3 http://mirrors.tencentyun.com/ubuntu/ precise-updates/main linux-lts-trusty 3.13.0-117.164~precise1(diff)[11.4 MB]
Fetched 128 MB in10s(12.4 MB/s)
gpgv: Signature made Tue 11 Apr 201712:10:18 AM CST using RSA key ID CBEECEA3
gpgv: Can't check signature:public key not found
dpkg-source: warning: failed to verify signature on ./linux-lts-trusty_3.13.0-117.164~precise1.dsc
dpkg-source: info: extracting linux-lts-trusty in linux-lts-trusty-3.13.0
dpkg-source: info: unpacking linux-lts-trusty_3.13.0.orig.tar.gz
dpkg-source: info: applying linux-lts-trusty_3.13.0-117.164~precise1.diff.gz