APT-GET Removed – How to Reinstall It


I have accidentally removed apt-get, how do I reinstall it?

$ sudo apt-get update
sudo: apt-get: command not found

$ sudo dpkg-reconfigure apt
/usr/sbin/dpkg-reconfigure: apt is broken or not fully installed 

I would like to mention I do not want to reinstall Linux!

Best Answer

I'm not sure what happened with your apt-get, but if you're unable to use it, you might want to use apt from Ubuntu repositories (simply downloading and installing via sudo dpkg -i package_name)

the functionality of apt is pretty much similar to what you get with apt-get.

Related Question