Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED]Change x-www-browser alternative to flatpak - Firefox

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
Pryka
Posts: 5
Joined: 2021-09-26 19:43
Has thanked: 2 times

[SOLVED]Change x-www-browser alternative to flatpak - Firefox

#1 Post by Pryka »

Im setting up my new Debian installation and try to replace Firefox-ESR from x-www-browser alternatives with flatpak version. I have followed this guide https://wiki.debian.org/Firefox but unfortunately when I try to run sudo apt-get purge firefox-esr apt is trying to download and install chromium browser from the repositories.

LC_ALL=C sudo update-alternatives --config x-www-browser

Code: Select all

There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                                              Priority   Status
------------------------------------------------------------
  0            /var/lib/flatpak/exports/bin/org.mozilla.firefox   200       auto mode
  1            /usr/bin/firefox-esr                               70        manual mode
* 2            /var/lib/flatpak/exports/bin/org.mozilla.firefox   200       manual mode
LC_ALL=C sudo update-alternatives --display x-www-browser

Code: Select all

x-www-browser - manual mode
  link best version is /var/lib/flatpak/exports/bin/org.mozilla.firefox
  link currently points to /var/lib/flatpak/exports/bin/org.mozilla.firefox
  link x-www-browser is /usr/bin/x-www-browser
  slave x-www-browser.1.gz is /usr/share/man/man1/x-www-browser.1.gz
/usr/bin/firefox-esr - priority 70
  slave x-www-browser.1.gz: /usr/share/man/man1/firefox-esr.1.gz
/var/lib/flatpak/exports/bin/org.mozilla.firefox - priority 200
LC_ALL=C sudo apt-get purge firefox-esr

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libdbus-glib-1-2
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  chromium chromium-common chromium-sandbox libjsoncpp24 libminizip1 libre2-9 libu2f-udev system-config-printer
Suggested packages:
  chromium-l10n chromium-shell chromium-driver
The following packages will be REMOVED:
  firefox-esr*
The following NEW packages will be installed:
  chromium chromium-common chromium-sandbox libjsoncpp24 libminizip1 libre2-9 libu2f-udev system-config-printer
0 upgraded, 8 newly installed, 1 to remove and 0 not upgraded.
Need to get 60.3 MB of archives.
After this operation, 369 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
What am I missing? Thanks in advance.

PS. Sorry for the stupid question I was running Gentoo and Arch for the last 10 years my Debian skills are next to none.
PS2. First forum post - Hello! :)
Last edited by Pryka on 2021-09-26 21:03, edited 1 time in total.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: Change x-www-browser alternative to flatpak - Firefox

#2 Post by 4D696B65 »

The meta-package that gave you ff-esr must give you chromium to satisfy itself. It's one or the other unless you remove the meta-package. Removing the meta-package might remove some other packages so keep an eye out on this.

User avatar
Pryka
Posts: 5
Joined: 2021-09-26 19:43
Has thanked: 2 times

Re: Change x-www-browser alternative to flatpak - Firefox

#3 Post by Pryka »

Oh so in my case it would be the gnome-core meta package

Thank you for the answer, marking topic as SOLVED

himprakashd
Posts: 4
Joined: 2021-10-02 07:39

Re: [SOLVED]Change x-www-browser alternative to flatpak - Firefox

#4 Post by himprakashd »

I was having a simillar problem but with konqueror and firefox. When trying to remove konqueror, firefox was getting installed.

When I tried to remove konqueror using dpkg `sudo dpkg -r konq-plugins konqueror`, I found that libreoffice-help-en-us depends on either of firefox-esr, epiphany-browser, konqueror, chromium or firefox.
```
(Reading database ... 211190 files and directories currently installed.)
Removing konq-plugins (4:20.12.0-4) ...
dpkg: dependency problems prevent removal of konqueror:
libreoffice-help-en-us depends on firefox-esr | epiphany-browser | konqueror | chromium | firefox; however:
Package firefox-esr is not installed.
Package epiphany-browser is not installed.
Package konqueror is to be removed.
Package chromium is not installed.
Package firefox is not installed.

dpkg: error processing package konqueror (--remove):
dependency problems - not removing
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
konqueror
```
After removing libreoffice-help-en-us, I was able to remove konqueror.

Post Reply