Set the Default Browser on Ubuntu From the Command Line
Open your terminal
1
sudo update-alternatives --config x-www-browser
Choice your browser
123456789
There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/google-chrome 200 auto mode
1 /usr/bin/firefox 40 manual mode
2 /usr/bin/google-chrome 200 manual mode
Press enter to keep the current choice[*], or type selection number: