1

I edited a file in /usr/gnome-shell/share/theme/ubuntu.css. I did the editing in the block #lockDialogGroup I used the wrong syntax and my computer will not boot. What commands would I use safe mode root@Douce (my computer name) to re-edit the file so my computer will boot. I don't want to do a fresh install.

N0rbert
  • 97,162
  • 34
  • 239
  • 423
  • 1
    You can boot in safe mode, go to root console, remount `/` and then edit the file. Another way is to boot from LiveUSB and edit from there. – Pilot6 Jan 07 '20 at 23:24
  • Does this answer your question? [Modify bashrc & .profile from safe mode](https://askubuntu.com/questions/626836/modify-bashrc-profile-from-safe-mode) – Nonny Moose Jan 17 '20 at 22:10

1 Answers1

0

The most straightforward solution will be to reinstall its gnome-shell-common package from simple terminal session (Ctrl+Alt+F3):

sudo apt-get install --reinstall gnome-shell-common

to revert file to the default contents.

N0rbert
  • 97,162
  • 34
  • 239
  • 423