VBox - Kali - Guest Editions [solved]

I got Kali Linux installed into VBox and I am now trying to install Guest Editions. I got the following error.
How do I find the sources of my Linux Kernel?

apt-get install linux-headers-$(uname -r)

That is what the tutorial I am following said but I get this.

Did you run apt-get update first?

Yes, I solved this issue by running

apt-get dist-upgrade

shutdown -r now

2 Likes