I accidentally deleted the apt.conf.d folder and can’t install (use the apt-get) anything.
When I try to locate the apt.conf.d
in the apt folder, it’s no longer there, only sources.list
can be found.
So that means that the apt.conf.d
is not the only thing missing in the folder.
The main question is: How can I recreate/restore/retrieve the whole apt folder?
Additional:
While using apt-get in the terminal, I always get the error:
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
I'm using Ubuntu 12.04.
It’s not in the trash because I used root access via terminal (so it’s deleted permanently, unfortunately).
EDIT:
The apt.conf.d
folder has been recreated but how about the preferences.d
? What type of file should I recreate? (What is the default content of the preferences.d
and apt.conf.d
?)
sudo mkdir /etc/apt/apt.conf.d
?