Ubuntu – gnome-terminal will not load, sudo gnome-terminal will

command linegnomegnome-terminal

My gnome-terminal appears to have stopped working. Clicking the icon, Ctrl+Alt+T, and Alt+F2 -> gnome-terminal all have the same effect: the mouse changes to a spinner, the icon shows that gnome-terminal is loading, but then after a few seconds, things go back to where they were before.

I've read a number of threads linking this to a locale setting issue, but none of those answers have worked for me (sudo locale-gen --purge, resetting the locale, etc.).

As with many of the other people who have reported a problem like this, the error message I get from MATE terminal is this: Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached
.

I also tried uninstalling and reinstalling gnome-terminal to no avail.

On a whim, I tried sudo gnome-terminal, and this loads up correctly. From here, I can login username and now I can use my terminal normally. I tried cp /etc/skel/.bashrc ~/ + relogging to see if maybe there was something wrong with my .bashrc; this changed nothing.

I'm not sure if it's related, but I'm also now receiving an error message that my default keyring hasn't been unlocked upon logging in, which never happened before.

What could be causing this?

Best Answer

I got this - it coincided with suddenly needing to enter a Keyring password on every login. I think that started after installing chrome-remote-desktop.

It also screwed my sound - no sound device:

The fix is here: Installing Google Chrome Remote Desktop messed up my box

All I had to do was sudo rm -rf ~/.config/chrome-remote-desktop and reboot.

I got my sound back and I could launch gnome-terminal again

chrome-remote-desktop was the culprit