I accidentally deleted the directory '/etc/apt/sources.list.d'. How can I solve?
2 Answers
/etc/apt/sources.list.d
is owned by root, and has the permissions rwxr-xr-x
You can recreate it with
sudo mkdir /etc/apt/sources.list.d
sudo chmod 755 /etc/apt/sources.list.d
You will of course have to manually add all sources you want after having recreated the directory.
Please, try this command to recreate your repository:
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
-
Thanks for the reply but I have deleted the directory /etc/apt/sources.list.d by mistake. Now running the command sudo add-apt-repository command ppa: webupd8team / java and i have this error 'can not find the folder'– andrea5Jan 3, 2019 at 19:36
-