Title: recover /etc/apt/preferences.d
Tags: apt;etc
Question: I’m new to Ubuntu but not so noob .. I learn fast and I have a dream to be a developer .. I break up with windows and jump into the world of Unix .
So what I did is that I had the duplicate repository in resources.list I did manage that and I still have the problem ..
I figure out that others resources.list exit in the /etc/apt/prefernces.d/ folder so I removed the whole folder and now I can't use the apt-get it tells me
W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)
I tried with the devilscripts (hardy) but I didn't get it.
So please if some one could upload the folder for me I’m stuck.
i get this message exactly when i'm trying to add-repository
IOError: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/webupd8team-y-ppa-manager-saucy.list'
thnks everyone the problem wasn't so complicated i just mkdir the directory and now everything is fine thnks
Comment: yes i did unfortunatly

Here is the accepted answer: My /etc/apt/preferences.d directory contains nothing.So only creation of that directory will solve that problem,
sudo mkdir /etc/apt/preferences.d


{'source': 'StackExchangeDataset', 'subset': 'askubuntu.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2014:00:02/25/14', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<apt><etc>', 'Title': 'recover /etc/apt/preferences.d', 'ViewCount': 10243, 'id': 426043, 'user_AboutMe': '<p>Old windows guy, fun of Unix-Linux systems hope to become developer </p>\n', 'user_AccountId': 4066349.0, 'user_DisplayName': 'zguell', 'user_Reputation': 748.0, 'user_Views': 88.0, 'user_id': 251148.0}}