1)git clone https://github.com/beagleboard/linux.git
following the these steps
https://embedjournal.com/kernel-compilation-beaglebone-black/
2)https://elinux.org/Building_BBB_Kernel
We tried both apt-get is not working and screen shoot also attached.