Here is my log:
in brief:
ubuntu1804, kernel (default, comes with installation): 5.4
but apt install linux-source causes to download 4.15??
root@ubuntu-desktop:/git.co/dev-learn/cuda/linux/cuda-by-example/p75# lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
root@ubuntu-desktop:/git.co/dev-learn/cuda/linux/cuda-by-example/p75# uname -r
5.4.0-73-generic
root@ubuntu-desktop:/git.co/dev-learn/cuda/linux/cuda-by-example/p75# dpkg -l | grep linux-source
root@ubuntu-desktop:/git.co/dev-learn/cuda/linux/cuda-by-example/p75# apt install linux-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-hwe-5.4-headers-5.4.0-56 linux-hwe-5.4-headers-5.4.0-58 linux-hwe-5.4-headers-5.4.0-60
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
linux-source-4.15.0
Suggested packages:
kernel-package libqt3-dev
The following NEW packages will be installed:
linux-source linux-source-4.15.0
0 upgraded, 2 newly installed, 0 to remove and 132 not upgraded.
Need to get 129 MB of archives.
After this operation, 146 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1
http://mirror.arizona.edu/ubuntu bionic-updates/main amd64 linux-source-4.15.0 all 4.15.0-143.147 [129 MB]
Get:2
http://mirror.arizona.edu/ubuntu bionic-updates/main amd64 linux-source all 4.15.0.143.130 [2,484 B]
Fetched 129 MB in 11s (11.4 MB/s)
Selecting previously unselected package linux-source-4.15.0.
(Reading database ... 350420 files and directories currently installed.)
Preparing to unpack .../linux-source-4.15.0_4.15.0-143.147_all.deb ...
Unpacking linux-source-4.15.0 (4.15.0-143.147) ...
Selecting previously unselected package linux-source.
Preparing to unpack .../linux-source_4.15.0.143.130_all.deb ...
Unpacking linux-source (4.15.0.143.130) ...
Setting up linux-source-4.15.0 (4.15.0-143.147) ...
Setting up linux-source (4.15.0.143.130) ...
root@ubuntu-desktop:/git.co/dev-learn/cuda/linux/cuda-by-example/p75#
root@ubuntu-desktop:/git.co/dev-learn/cuda/linux/cuda-by-example/p75# dpkg -l | grep linux-source
ii linux-source 4.15.0.143.130 all Linux kernel source with Ubuntu patches
ii linux-source-4.15.0 4.15.0-143.147 all Linux kernel source for version 4.15.0 with Ubuntu patches