I recently erased and reinstalled Ubuntu GNOME 17.04 on my laptop (Because I encrypted my home folder with the first installation and wasn't able to remove the encryption). The first time, everything worked perfectly. The second time, things were working well for a while. But today, I installed screenfetch and ran it thrice, after which, I switched off my laptop. I switched it on five hours later, and I wasn't able to start the terminal by pressing Ctrl+Alt+T. I tried opening it from the list of applications, but it just showed Terminal loading on the top bar and closed. I read online that screenfetch can cause this problem, but when I used screenfetch with the first installation, nothing like this happened. I tried all of those locale settings solutions, but none worked. For now, I'm only able to use XTerm, and I'm only able to run GNOME Terminal by typing the command
dbus-launch gnome-terminal in XTerm. Is there any way to fix this? Because I really like GNOME Terminal and I don't want to have to reinstall again.
SIDE NOTE: I made a temporary user account, and tried running GNOME Terminal in that account. And it worked as it was supposed to.
UPDATE: When I try starting terminal from Xterm by typing
gnome-terminal, it gives the following error:
Error constructing proxy server for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached
UPDATE 2: I ran the command
dbus-update-activation-environment --all in Xterm, and Terminal started working again. But after rebooting, Terminal stopped working again. Even if i type the command again.
UPDATE 3: Typing the following command in Xterm gets GNOME Terminal working properly again, but it requires me to type this every time I reboot.
sudo localedef -v -c -i en_US -f UTF-8 en_US.UTF-8