Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 26230  / 1 Year ago, wed, november 30, 2022, 7:55:37

I have mistakenly removed the default package APT from my system .



When I run command locate apt-get, I get below output:



/home/jeet/apt-get
/home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/cmdline/apt-get.cc
/home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/doc/apt-get.8.xml
/home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/doc/de/apt-get.de.8
/home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/doc/fr/apt-get.fr.8
/home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/doc/ja/apt-get.ja.8
/home/jeet/Downloads/apt-get
/home/jeet/Downloads/apt-get.8.gz
/usr/share/bash-completion/completions/apt-get
/usr/share/bash-completion/completions/slapt-get


If I run ls | grep apt-get, then I won't get any output.



Can anybody please advice how to recover apt package or install it from start?


More From » 12.04

 Answers
7

You can download the apt .deb package, depending on your system, from the following locations. Once downloaded, open a terminal(Ctrl-Alt-t) and run the appropriate commands indicated below.



Downloading apt for 12.04:



The 32-bit version of apt can be downloaded here.



To install:



sudo dpkg -i apt_0.8.16~exp12ubuntu10.10_i386.deb


For the 64-bit version:
download here



To install:



sudo dpkg -i apt_0.8.16~exp12ubuntu10.10_amd64.deb


Downloading apt for 12.10:



The 32-bit version of apt can be downloaded here.



To install:



sudo dpkg -i apt_0.9.7.5ubuntu5.4_i386.deb


For the 64-bit version:
download here.



To install:



sudo dpkg -i apt_0.9.7.5ubuntu5.4_amd64.deb

[#32195] Thursday, December 1, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ndaavi

Total Points: 169
Total Questions: 116
Total Answers: 113

Location: Falkland Islands
Member since Wed, Dec 23, 2020
3 Years ago
;