My /usr/share/themes Folder Got Deleted?

**Hi I am Keval **

My /usr/share/themes Folder Got Deleted. how can I restore them again and I have also restarted the pc 3 times

Thankyou In Advance Keval Shah


Solution 1:

You have to reinstall the packages which put files into the /usr/share/themes directory by using command below:

sudo apt-get update
sudo apt-get install --reinstall $(dpkg -S /usr/share/themes | sed 's/,//g' | sed 's|: /usr/share/themes||g')

Above:

  • dpkg -S /usr/share/themes shows the list of comma-separated packages
  • sed 's/,//g' - removes commas
  • sed 's|: /usr/share/themes||g' - removes : /usr/share/themes in the end