ive been trying to add to the respitory to install virtualbox and im having more of a difficult time than i should, ive apt-get update,upgrade ,dist-upgrade ; i did all this after adding the newer kali rolling respitory , im not sure if my sentences have proper syntax relating to this subject so the context may be iffy.
"kali@kali:~$ echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list"
\
so after i did that i did all the uppdatesa and upgrades to prepare the system for the installation of virtual box but when i put
apt -y install wget gnupg2
wget -q https://www.virtualbox.org/download/..._vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
the response is
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gnupg2 is already the newest version (2.2.27-1).
wget is already the newest version (1.21-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

ive googled this and couldnt find anything relating to this problem directly , closest thing ive seen that i could relate using MY knowledge was user/somethingsomething/keyfiles? idk thats literally from off the top of my head i know it may have soemthing to do with the gpg files and i have no idead where to go from here , im not sure if posting in multple threads is allowed but im going to to try and get the best and quickest answer as this has been bothering me all day and id like to overcome this simple task , thank you in advance.