恢复/etc/apt/preferences.d

zgu*_*ell 5 apt etc

我\xe2\x80\x99m是Ubuntu的新手,但不是那么菜鸟..我学得很快,我有一个成为一名开发人员的梦想..我告别了Windows并跳入了Unix的世界。

\n\n

所以我所做的是,我在 resources.list 中有重复的存储库,我确实管理了它,但仍然有问题..

\n\n

我发现其他 resources.list 在/etc/apt/prefernces.d/文件夹中退出,所以我删除了整个文件夹,现在我无法使用它告诉我的 apt-get

\n\n
W: Unable to read /etc/apt/preferences.d/ - FileExists (2: No such file or directory)\n
Run Code Online (Sandbox Code Playgroud)\n\n

我尝试使用Devilscripts (hardy),但我没有得到它。\n所以,如果有人可以为我上传该文件夹,我\xe2\x80\x99m 卡住了。

\n\n

当我尝试添加存储库时,我收到此消息\n IOError:[Errno 2]没有这样的文件或目录:'/etc/apt/sources.list.d/webupd8team-y-ppa-manager-saucy。列表'

\n\n

谢谢大家,问题没那么复杂,我只是 mkdir 目录,现在一切都很好,谢谢

\n

Avi*_*Raj 5

我的/etc/apt/preferences.d目录不包含任何内容。因此只有创建该目录才能解决该问题,

sudo mkdir /etc/apt/preferences.d
Run Code Online (Sandbox Code Playgroud)