I am building/compiling the custom kernel 5.4.0-66 version source code.
I followed the process mentioned in the link as provided by Ubuntu: https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
The below commands are used to compile the linux kernel source code
`
LANG=C fakeroot debian/rules clean
LANG=C fakeroot debian/rules editconfigs
LANG=C fakeroot debian/rules binary-headers binary-generic binary-perarch
`
After some time I get the kernel compilation error.
dpkg-deb: error: 'zfs-dkms_0.8.3-1ubuntu12.6_all.deb' is not a Debian format archive
When checked the size of file zfs-dkms_0.8.3-1ubuntu12.6_all.deb
, it was found to be size zero.
This is strange, I used the same source code earlier and never got this error while compiling.
When I debugged further, I found that the below curl statement is able to download the zero size debian package.
curl --fail --show-error https://launchpad.net/ubuntu/+archive/primary/+files/zfs-dkms_0.8.3-1ubuntu12.6_all.deb -o zfs-dkms_0.8.3-1ubuntu12.6_all.deb -D zfs-dkms_0.8.3-1ubuntu12.6_all.deb.hdr
The error here is that, during custom kernel compilation the size of the downloaded package zfs-dkms_0.8.3-1ubuntu12.6_all.deb is shown as zero.
Kinldy suggest, why the kernel is not getting compiled even after following the process mentioned in the above link and following the commands.
Thanks and Regards,
/A\nurag