I would like to restore LightDM to its default state, because for some reason
/etc/lightdm/unity-greeter.conf
is now an empty file.
Deleting /etc/lightdm/unity-greeter.conf
and then running sudo apt-get install --reinstall unity-greeter
doesn't create a new config file as you might expect.
How can I restore a missing config file?
Best Answer
Find out what package installed the config file:
As you can see, the name of the package is
unity-greeter
.If you deleted a directory, like
/etc/pam.d
, you can list every package that added to it by using the directory path:Run the following command, replacing
<package-name>
with the name of the package:And for restoring the directory:
If everything worked as expected, you should get a message:
A Practical example when needing to reinstall all of the PulseAudio configuration files: