To restore deleted files under /etc directory in Ubuntu:1. Find out which package includes the file/files using dpkg or ucfq command.2. Re-install the package and specify to create non-existing files.3. Use the sudo UCF_FORCE_CONFFMISS=1 apt -o Dpkg::Options::=--force-confmiss install --reinstall command.