Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I open Chromium and the browser ask me if I want to set it as my default browser. I click on "set as default" and close the browser.

But when I open Chromium again I get the same question. Ubuntu 11.04 seems not to set Chromium correctly as my default browser.

How to fix that?

share|improve this question
up vote 10 down vote accepted

Try changing your your preferred browser.

  • Open Preferred Applications from Preferences > Preferred Appplications.

enter image description here

  • Change the default Web Browser to your liking.

enter image description here

share|improve this answer
It's definitely worth trying to set it through Preferred Applications. There was (and possibly still is) a strange bug if you didn't set it this way. – 8128 Apr 30 '11 at 20:24
That's it! After changing the settings in Preferred Applications and setting Chromium as default browser again everything is working fine. Maybe a problem with a restore of an Ubuntu 10.10 backup. – 1passenger Apr 30 '11 at 20:27
I had to wait a minute ;-) Now it's accepted. Thanx. :-) – 1passenger Apr 30 '11 at 20:29

To change the browser globally, run the next command in a terminal:

sudo update-alternatives --config x-www-browser

Enter the number of chromium-browser and press Enter to confirm it.

share|improve this answer
That's not working... – 1passenger Apr 30 '11 at 20:25
update-alternatives should work (note the extra s) – Seamus Apr 30 '11 at 20:26
@1passenger: the s after update-alternative slipped out. Try the new command. – Lekensteyn Apr 30 '11 at 20:27
Sorry, mistake in writing. I meant update-alternatives and not update-alternative. – 1passenger Apr 30 '11 at 20:32
Somehow I had two /usr/bin/chromium-browser in the list. One in auto and one in manual mode, but the manual one was selected. After I changed to the auto one it works. – keiki Feb 24 '14 at 10:11

Start google-chrome from a terminal in the foreground (leave off the &):

me:/home/me> google-chrome

Click on the prompt to make chrome the default browser.... notice that it is getting a permissions problem on .local/share/applications/mimeapps.list. The applications directory is owned by root and chrome was running as me. In order to fix the problem, I used:

chown -R .local

Then I restarted google-chrome. It created the following entries in

cat .local/share/applications/mimeapps.list

[Default Applications]

I suppose you could just create those entries in the file if there is a security problem with changing the owner of the .local directory.

share|improve this answer
It's actually the opposite of "a security problem with changing the owner of the .local directory". The only way the .local directory will have root ownership is if you executed a program with sudo root before the .local directory was created, and then it becomes very important to fix the ownership. – Auspex Feb 14 at 17:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.