I did the command
sudo apt-get purge and all my
apt- commands and my software center are no longer installed.
when ever i do 'sudo apt-get update' even, i get 'sudo: apt-get: command not found'
|show 2 more comments|
You don't have APT installed, so you can't automatically download and install any packages. That includes the packages you need to put APT back. Therefore, you must manually install them.
The best place to get them is probably here on Launchpad, since the interface is easy to use and the downloads are encrypted over HTTPS (which means you're far less likely to get corrupted files).
On the page for the
In this case, the entry to expand is (therefore)
Then download all the
Download the files to a folder that has no other files in it. You'll probably make a new folder for this purpose.
You can actually skip the
The following is for your convenience (and that of others with this problem who are running Ubuntu 12.10, as many people currently are). Following the above instructions will work fine. If you like, you can download the packages using the links below, which are taken directly from that Launchpad page.
If you want
On a 32-bit system (but not if you're running the 64-bit version of Ubuntu), get these files:
On a 64-bit system (but not if you're running the 32-bit version of Ubuntu), get these files:
With all the downloaded
For example, if you put them in a folder called
This would put you in your
If the folder is elsewhere, you'll have to specify where. For example, if you put it inside the
If you prefer, you can simply type
Once you are in the folder that contains the
That will install them all. That should restore APT and you should be able to install packages in the usual way again. (If you are accustomed to using the Software Center, and that's also uninstalled, then you can get that back with
If you get errors when you run that
Assuming this works, you should reinstall
Then to install