You have two options:
1st Option:
----------------
-Reinstall Kali, pay attention to the "apt-get autoremove" command and try the example below:
-----------------------------------------------------------------------------------------------------------------------------------------
You'll get rid of "The following packages were automatically installed and are no longer required:" message by doing "apt-get install" for each one of the package listed to be removed by "apt-get autoremove".
Example:
--------------
if "apt-get autoremove" says:
Code:
root@xxxxx:~#apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gdm3 gnome-backgrounds gnome-system-log mobile-broadband-provider-info network-manager-gnome
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
try this:
instead of hiting "y" and "enter" to remove them use "apt-get install" for each one of the package offered by "apt-get autoremove"
Example:
Code:
root@xxxxx:~#apt-get install gdm3 gnome-backgrounds gnome-system-log mobile-broadband-provider-info network-manager-gnome
Reading package lists... Done
Building dependency tree
Reading state information... Done
gdm3 is already the newest version.
gdm3 set to manually installed.
gnome-backgrounds is already the newest version.
gnome-backgrounds set to manually installed.
gnome-system-log is already the newest version.
gnome-system-log set to manually installed.
mobile-broadband-provider-info is already the newest version.
mobile-broadband-provider-info set to manually installed.
network-manager-gnome is already the newest version.
network-manager-gnome set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
then use "apt-get autoremove" command to see if it's still offering those packages for removing.
2nd Option:
-----------------
Try to: 1.gain internet acces from terminal, 2.add the proper Kali ripostories for apt and 3.reinstall all the packages removed by the "apt-get autoremove" command.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1.Internet access:
--------------------------
Even without network-manager installed (removed by "apt-get autoremove") you still have connetion but let's say is not up and running, that's why you don't have internet acces.
So if you are behind a router and you get your IP addres alocated by router's DHCP table, you're lucky because all you have to do is get your ETH/ WiFI adapter up and running.
For WIFI connection (WEP encription):
--------------------------------------------------------
to see your wifi adapter name (ex: wlan0)
then:
to bring up the adapter
then:
to see a list of wireless networks. find your WLAN by looking at ESSIDs
then:
Code:
iwconfig essid "YOUR_WIFI_NAME" key "YOUR_WIFI_PASSWORD"
then:
to obtain an IP addres from the router.
Verify your connection with "ifconfig wlan0" and test your connection with "ping" comand (example: ping google.com).iF ping comand "Replays" then youre up and running.
For Wired Connection (auto optain IP by DHCP)
---------------------------------------------------------------------
to get the adapter up and running. (try eth0 or eth1 etc if you have multiple ethernet adapters)
to verify that you adapter is up and running
then:
to obtain an IP addres from the router.
or:
Code:
/etc/init.d/networking restart
to restart you adapters and optain an IP addres
Verify your connection with "ifconfig wlan0" and test your connection with "ping" comand (example: ping google.com).iF ping comand "Replays" then youre up and running.
2.After gaining Internet access add Kali ripostories:
--------------------------------------------------------------------------
Open "/etc/apt/sources.list" file with "vim" command and add the repostories below:
Example:
Code:
vim /etc/apt/sources.list
(press "INSERT" to edit/add lines to the file, after done editing and after verifying everithing is OK press "ESC" and " :wq " to write and close the file)
3.Reinstall all the packages removed by the "apt-get autoremove" command:
---------------------------------------------------------------------------------------------------------------
If you don't know wich package you removed with "apt-get autoremove" then take a look at the ".bash_history" file placed in you home folder (~#) and
scroll/find the file untill you see "apt-get autoremove THE_LIST_OF_PACKAGES_YOU_REMOVED"
Code:
root@xxxxx:~#vim .bash_history
install them back
Code:
apt-get install THE_LIST_OF_PACKAGES_YOU_REMOVED
I hope this helps you or at least give you an idea to start with.. Cheers!
P.S.: Sorry for my english language mistakes!