I lost /etc/apt directory

Asked by faridtalagani on 2009-12-07

I am pretty new on Linux ubuntu, I must say that I really love it! but I have a problem and I hope some one can help me with it. Some how I lost my /etc/apt directory! Is there a way to recover this directory? can I download this directory somehow?
I hope someone can help me.

Question information

English Edit question
Ubuntu apt Edit question
No assignee Edit question
Solved by:
Andy Ruddock
Last query:
Last reply:
Philip Muškovac (yofel) said : #1

I'm not sure, but you should be able to copy the folder from a ubuntu live-cd.

Best Andy Ruddock (andy-ruddock) said : #2

Use your browser to go fo http://packages.ubuntu.com and search for apt. There'll be a link where you can download the .deb file. Once saved you can open a console and install it with the command :

dpkg -i apt_xxxxxx.deb

(where xxxxx is the version number string for the file you just downloaded).
This will recreate the default /etc/apt directory.

faridtalagani (m-r-talagani) said : #3

WOW!!! thanx alot!! it WORKS!...amazing....you really helped me out....I really need to get deeper into LINUX!
again thanx a million.

Andy Ruddock (andy-ruddock) said : #4

Glad to be able to help.