Firefox Won't Install But Runs from Command Line

OK, after my previous post about Firefox freezing the system, I was able to open it in safe mode from the command line and create a new profile. So I can get it to run from the command line, but it doesn’t show up in the applications list, and Octopi says that it isn’t installed,. When I try to install it, I get an error message “Errors occurred, no packages were upgraded. Command finished with errors!” Something seems to be wrong with the system. Does anyone have any thoughts? Thanks again in advance.

Please report;

pacman -Qs firefox

We probably want to at least sync/update (and maybe see what those errors are);

sudo pacman -Syu

I had done this multiple times during my attempts, but this time I get a whole string of errors, beginning with

Error: failed retrieving file ‘core.db’ from arch.mirror.constant.com : Could not resolve host: arch.mirror.constant.com

Do I have a key problem?

No it seems like a mirrors problem.

The first one should just tell use which firefox package(s) you have installed, if any.

But for your errors

Then please do

sudo cachyos-rate-mirrors

Before trying to sync/upgrade again.

Thanks! You just taught me a command I’d never seen before. After running that and then rebooting, I tried again to install Firefox. What I got was:

resolving dependencies…
looking for conflicting packages…
Package (1) New Version Net Change
extra/firefox 141.0-1 262.07 MiB
Installed Size: 262.07 MiB
checking keys in keyring
checking package integrity
checking for file conflicts
error: failed to commit transaction (conflicting files)
firefox: /usr/bin/firefox exists in filesystem
firefox: /usr/lib/firefox/application.ini exists in filesystem
firefox: /usr/lib/firefox/browser/chrome/icons/default/default128.png exists in filesystem
firefox: /usr/lib/firefox/browser/chrome/icons/default/default16.png exists in filesystem
firefox: /usr/lib/firefox/browser/chrome/icons/default/default32.png exists in filesystem
firefox: /usr/lib/firefox/browser/chrome/icons/default/default48.png exists in filesystem
firefox: /usr/lib/firefox/browser/chrome/icons/default/default64.png exists in filesystem
firefox: /usr/lib/firefox/browser/defaults/preferences/vendor.js exists in filesystem
firefox: /usr/lib/firefox/browser/omni.ja exists in filesystem
firefox: /usr/lib/firefox/crashhelper exists in filesystem
firefox: /usr/lib/firefox/crashreporter exists in filesystem
firefox: /usr/lib/firefox/defaults/pref/channel-prefs.js exists in filesystem
firefox: /usr/lib/firefox/dependentlibs.list exists in filesystem
firefox: /usr/lib/firefox/distribution/distribution.ini exists in filesystem
firefox: /usr/lib/firefox/firefox exists in filesystem
firefox: /usr/lib/firefox/firefox-bin exists in filesystem
firefox: /usr/lib/firefox/fonts/TwemojiMozilla.ttf exists in filesystem
firefox: /usr/lib/firefox/glxtest exists in filesystem
firefox: /usr/lib/firefox/gmp-clearkey/0.1/libclearkey.so exists in filesystem
firefox: /usr/lib/firefox/gmp-clearkey/0.1/manifest.json exists in filesystem
firefox: /usr/lib/firefox/libgkcodecs.so exists in filesystem
firefox: /usr/lib/firefox/liblgpllibs.so exists in filesystem
firefox: /usr/lib/firefox/libmozavcodec.so exists in filesystem
firefox: /usr/lib/firefox/libmozavutil.so exists in filesystem
firefox: /usr/lib/firefox/libmozgtk.so exists in filesystem
firefox: /usr/lib/firefox/libmozsandbox.so exists in filesystem
firefox: /usr/lib/firefox/libmozsqlite3.so exists in filesystem
firefox: /usr/lib/firefox/libmozwayland.so exists in filesystem
firefox: /usr/lib/firefox/libxul.so exists in filesystem
firefox: /usr/lib/firefox/omni.ja exists in filesystem
firefox: /usr/lib/firefox/pingsender exists in filesystem
firefox: /usr/lib/firefox/platform.ini exists in filesystem
firefox: /usr/lib/firefox/removed-files exists in filesystem
firefox: /usr/lib/firefox/vaapitest exists in filesystem
firefox: /usr/share/applications/firefox.desktop exists in filesystem
firefox: /usr/share/gnome-shell/search-providers/firefox.search-provider.ini exists in filesystem
firefox: /usr/share/icons/hicolor/128x128/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/16x16/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/192x192/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/22x22/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/24x24/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/256x256/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/32x32/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/384x384/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/48x48/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/64x64/apps/firefox.png exists in filesystem
firefox: /usr/share/icons/hicolor/scalable/apps/firefox.svg exists in filesystem
firefox: /usr/share/icons/hicolor/symbolic/apps/firefox-symbolic.svg exists in filesystem
firefox: /usr/share/metainfo/org.mozilla.firefox.metainfo.xml exists in filesystem
Errors occurred, no packages were upgraded.

Command finished with errors!

Which makes sense to me, since Firefox will run from CLI. So I ran:

sudo pacman -Rs firefox
error: target not found: firefox

Do I have to pick through this list of files and remove them one at a time? Thanks again.

I still want to know the output of

( Possible supplementary - Do you remember how firefox was initially installed? )

And does

sudo pacman -Syu

Complete without errors?

(Maybe show output?)

We can overcome your errors shown, but it would probably be good for us to gather the above information first.

Thanks for staying with me on this!

1.) I originally installed Firefox with Octopi.

2.) pacman -Qs firefox
local/ttf-fira-sans 1:4.301-2
Mozilla’s sans-serif typeface designed for Firefox OS

3.) pacman -Syu ran fine after cachyos-rate-mirrors. Now:

❯ sudo pacman -Syu
[sudo] password for mikeb:
:: Synchronizing package databases…
cachyos is up to date
core is up to date
extra is up to date
multilib is up to date
:: Starting full system upgrade…
warning: power-profiles-daemon: local (0.30-2) is newer than extra (0.30-1)
there is nothing to do

So everything is up to date. Octopi just won’t install firefox with it’s gui on top of the command line version.

So no firefox installed according to the package manager.

We might assume that something went wrong during the installation so you have some or all of the files, but technically not the package.

We can tell pacman to overwrite the paths. Take care to not use this kind of command except in special circumstances like this.

sudo pacman -S firefox --overwrite '/usr/*' 

As we have already synced/refreshed/updated after sorting the mirrors this should be the last peculiarity. Let us know.

That seems to have fixed it. The Firefox icon showed up in the menu, and the software opens, complete with bookmarks. I’m not sure how this got corrupted in the first place, but thanks for the CLI lesson!

It’s nice to see how problems are solved here so easily. Maybe you could mark cscs’s answer as the correct solution? This will help others with a similar issue.

My apologies; I did not notice a way to do that, and it now seems to be flagged.