Skip to main content
Ubuntu 24.04 - official wallpaper

HowTo fix Google Chrome not starting after renaming the host in Ubuntu 24.04

My recent days were marked by the biennial (as in every two years) prematurely (I’ll explain that in a later post) installation of a new Ubuntu LTS (long term support) version. In 2022 I stopped “playing” around and jumping distributions and upgrading every 6 months to the latest release and saved plenty of time researching why things that worked fine before now stopped working. Yesterday though, April 25th, Ubuntu’s latest LTS release 24.04 was released and I upgraded. With this came some issues whose solution I will work through in the next few posts.

The first issue was, that my Google Chrome profile suddenly was locked with a weird error message amongst a garble of other notes:

1Chrome has locked the profile so that it doesn't get corrupted.
2If you are sure no other processes are using this profile, you
3can unlock the profile and relaunch Chrome.

Chrome did not launch anymore. I initially planned to just delete all of Google Chrome’s user profiles in my backup and start fresh. Bookmarks and site data was synchronized to my Google profile so other than logins, settings, cookie settings, and currently open tabs nothing much would have been lost. I guess.

On the other side, the error message sounded like an easy thing to do: unlock the profile and relaunch Chrome.

After some searching I came across this Bug Report in the Google Chrome bugtracker, that, quite incidentally, celebrated it’s 10th birthday yesterday. 10 years open.

The core of the problem lies in how Chrome associates its profile information with the system’s hostname. When the hostname is altered, Chrome fails to recognize the existing profile because it continues to reference the old hostname. This mismatch prevents the browser from starting properly. This seems to be a safety feature more than a bug.

With a bug report being open for more than a decade now I don’t think the developers have any interest in fixing this, so we will have to look to hacks to fix it by ourself and it’s astonishingly easy:

1rm -rf ~/.config/google-chrome/Singleton*

Just delete all Singleton* files from the profile. Done. On the other side, how often are we renaming our hostnames ;)

For more details on this issue, you might want to visit the discussions on Chromium’s issue tracker.

Recent Posts

Photo by Roman Synkevych via Unsplash

Git push.default setup

Pushing a new branch to a repository’s remote often requires two attempts by the scatterbrained developer, but there is help in push.autoSetupRemote.

Photo by Mohammad Rahmani via Unsplash

Automatically load workspace when starting VSCode

Workspaces are a great feature in VSCode. But they have their issues. For instance starting VSCode in a folder will not automatically load the workspace file. This can be annoying if you have a workspace file in the folder and you want to open it directly.

Photo by Roman Synkevych via Unsplash

How to delete all files ignored by Git

The .gitignore file in a Git repository serves as a configuration file that specifies files and directories that Git should — as the name implies — ignore. When Git encounters a file or directory listed in .gitignore, it automatically excludes them from being tracked, preventing them from showing up in commands like git status and git add.

Setting up highlighted notes in GitHub Markdown

Highlighting blockquotes in GitHub Markdown format

GitHub recently introduced an innovative feature for Markdown documents that allows users to highlight “Note”, “Warning”, and other notification blocks more effectively. An enhancement useful for developers who want to draw attention to important information in their documentation or discussions.

Twitter as imagined by DALL-E (disclaimer: the prompt might have been passive agressive)

Erasing ~2 decades of Twitter

A while back (about 15 months ago), I stopped using Twitter. At first, I thought I might delete my account, but then I realized that somewhere along the lines, Twitter has begun to enforce a “you have to have an account to watch this content” rule.

Photo by Roman Synkevych via Unsplash

Bash Function to Remove Github Ghost Notifications

Every now and then my inbox in Github shows x total unread updates without having actual updates. When I click on it, there are no unread notifications. This is a known issue and it’s been around for a while. The notifications are called “ghost notifications” and they are not visible in the UI.

Back to top
Back Forward