Firefox cannot be set as default browser

I’d like to see the output of echo $XDG_DATA_DIRS

1 Like
/usr/share/Lubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop

1 Like

Ok, so that’s what I was looking for and seeing it means that you should be able to select Firefox from the menu. However, considering everything else we have done, you might have to restart your machine to see if that works.

Thanks. It will have to wait until tomorrow.

Erich, since the Firefox .deb package wouldn’t be required anymore, couldn’t Alan just remove that Firefox .deb package completely, restart the machine, then select the snap browser as default? I would have thought, given that scenario, there would not have been any need for re-install of the snap.

Is that not so?

It could be removed, but it sets itself as providing x-www-browser which is something the snap cannot do on its own. I wanted to make sure the package was there so that virtual package could be provided, otherwise other browsers could, theoretically, take over as default not seeing something else installed as that virtual package.

I’ll admit, it’s a shot in the dark. And no, the .deb will not be removed anytime soon from the repositories, if at all.

1 Like

I’m sorry, Erich, but I am a bit confused.

I thought you said that package was only needed during install, and not required after install.

Did I mis-interpret?

It can be safely removed, not required after install. I’m sorry I confused. I’d keep it around to be safe, though.

1 Like

I have restart the PC, Firefox has updated to 143.0.3 but it still doesn’t show as default in Setttings.
I ran wireless.info which sends results to the default browser, just to check, but that doesn’t happen and the txt file says “last command not found”, so definitely no default present or accessible.

How exactly do you run it ? From a terminal ? By clicking on it in a file manager ?

Looking at the code the wireless info script does not launch any browser at all but displays a dialog with a pastebin URL to click on (or the pastebin URL in a terminal when no kdialog or zenity is installed) …

I would recommend that @portalan actually runs:

sudo apt update
sudo apt full-upgrade

(or sudo apt dist-upgrade)

Not upgrade.

Also, try sudo apt install lubuntu-desktop^.

These two steps will replace any missing packages that may have been erroneously uninstalled, or erroneously not installed.

Ogra,
from a terminal:

./wireless-info
[sudo] password for alant: 

Results saved in "/home/alant/wireless-info.txt".

Do you also want to post them to your default 'pastebinit' provider? [Y/n]: Y

Pastebin failed, error message is:

Failed to contact the server: HTTP Error 400: Bad Request

That might just be an issue with paste.ubuntu.com for now
The script just tries to upload the text file to a paste site

Popey,
I have done:

sudo apt update
sudo apt full-upgrade

sudo apt install lubuntu-desktop^

The last one created a long list, with no apparent issues.
Settings still shows Firefox is not the default.

Feel free to paste that entire file here between two sets of three backticks ( `, the key above tab or the ~ key without the shift).

```
LIke so
```

Like so

It will automatically create scrollbars if needed.

Here goes:


########## wireless info START ##########

./wireless-info: line 148: last: command not found
Report from: 04 Oct 2025 18:21 BST +0100

Booted last: 04 Oct 2025 00:00 BST +0100

Script from: 27 Aug 2024 10:55 UTC +0000

##### release ###########################

Distributor ID:	Ubuntu
Description:	Ubuntu 25.04
Release:	25.04
Codename:	plucky

##### kernel ############################

Linux 6.14.0-33-generic #33-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 17 23:22:02 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################

Lubuntu

##### lspci #############################

00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) [8086:1502] (rev 04)
	DeviceName:  Onboard LAN
	Subsystem: Dell Device [1028:053a]
	Kernel driver in use: e1000e

##### lsusb #############################

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 003: ID 04d9:1702 Holtek Semiconductor, Inc. Keyboard LKS02
Bus 004 Device 004: ID 413c:3016 Dell Computer Corp. Optical 5-Button Wheel Mouse

##### PCMCIA card info ##################

##### rfkill ############################

##### secure boot #######################

'mokutil' is not installed (package "mokutil").

##### lsmod #############################

cfg80211             1437696  0
mxm_wmi                12288  1 nouveau
dell_wmi               28672  0
dell_smbios            36864  2 dell_wmi,dell_pc
wmi_bmof               12288  0
dell_wmi_descriptor    20480  2 dell_wmi,dell_smbios
sparse_keymap          12288  1 dell_wmi
video                  77824  2 dell_wmi,nouveau
wmi                    28672  8 video,dell_wmi,wmi_bmof,dell_smm_hwmon,dell_smbios,dell_wmi_descriptor,mxm_wmi,nouveau

##### dkms #############################

./wireless-info: line 206: dkms: command not found

##### interfaces ########################

##### ifconfig ##########################

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback <MAC address> brd <MAC address>
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether <MAC 'eno1' [IF1]> brd <MAC address>
    altname enp0s25
    altname enx1803732dc070
    inet 192.168.0.8/24 brd 192.168.0.255 scope global dynamic noprefixroute eno1
       valid_lft 86092sec preferred_lft 86092sec
    inet6 fe80::<IP6 'eno1' [IF1]>/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever

##### iwconfig ##########################

./wireless-info: line 233: iwconfig: command not found

##### route #############################

default via 192.168.0.1 dev eno1 proto dhcp src 192.168.0.8 metric 100 
192.168.0.0/24 dev eno1 proto kernel scope link src 192.168.0.8 metric 100 

##### resolv.conf #######################

[777 root '/etc/resolv.conf' -> '../run/systemd/resolve/stub-resolv.conf']

nameserver 127.0.0.53
options edns0 trust-ad
search .

##### network managers ##################

Installed:

	NetworkManager

Running:

root        1057       1  0 08:41 ?        00:00:00 /usr/sbin/NetworkManager --no-daemon

##### NetworkManager info ###############

GENERAL.DEVICE:                         eno1
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/Devices/2
GENERAL.VENDOR:                         Intel Corporation
GENERAL.PRODUCT:                        82579LM Gigabit Network Connection (Lewisville)
GENERAL.DRIVER:                         e1000e
GENERAL.DRIVER-VERSION:                 6.14.0-33-generic
GENERAL.FIRMWARE-VERSION:               0.13-4
GENERAL.HWADDR:                         <MAC 'eno1' [IF1]>
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.REASON:                         0 (No reason given)
GENERAL.IP4-CONNECTIVITY:               4 (full)
GENERAL.IP6-CONNECTIVITY:               4 (full)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:19.0/net/eno1
GENERAL.PATH:                           pci-0000:00:19.0
GENERAL.IP-IFACE:                       eno1
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     netplan-zz-all-en
GENERAL.CON-UUID:                       3fc91611-2585-3063-ac16-0d3e7c50d8c3
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/3
GENERAL.METERED:                        no (guessed)
CAPABILITIES.CARRIER-DETECT:            yes
CAPABILITIES.SPEED:                     100 Mb/s
CAPABILITIES.IS-SOFTWARE:               no
CAPABILITIES.SRIOV:                     no
INTERFACE-FLAGS.UP:                     yes
INTERFACE-FLAGS.LOWER-UP:               yes
INTERFACE-FLAGS.CARRIER:                yes
INTERFACE-FLAGS.PROMISC:                no
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         192.168.0.8/24
IP4.GATEWAY:                            192.168.0.1
IP4.ROUTE[1]:                           dst = 192.168.0.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[2]:                           dst = 0.0.0.0/0, nh = 192.168.0.1, mt = 100
IP4.DNS[1]:                             192.168.0.1
DHCP4.OPTION[1]:                        dhcp_client_identifier = 01:<MAC 'eno1' [IF1]>
DHCP4.OPTION[2]:                        dhcp_lease_time = 86400
DHCP4.OPTION[3]:                        dhcp_server_identifier = 192.168.0.1
DHCP4.OPTION[4]:                        domain_name_servers = 192.168.0.1
DHCP4.OPTION[5]:                        expiry = 1759684601
DHCP4.OPTION[6]:                        ip_address = 192.168.0.8
DHCP4.OPTION[7]:                        requested_broadcast_address = 1
DHCP4.OPTION[8]:                        requested_domain_name = 1
DHCP4.OPTION[9]:                        requested_domain_name_servers = 1
DHCP4.OPTION[10]:                       requested_domain_search = 1
DHCP4.OPTION[11]:                       requested_host_name = 1
DHCP4.OPTION[12]:                       requested_interface_mtu = 1
DHCP4.OPTION[13]:                       requested_ms_classless_static_routes = 1
DHCP4.OPTION[14]:                       requested_nis_domain = 1
DHCP4.OPTION[15]:                       requested_nis_servers = 1
DHCP4.OPTION[16]:                       requested_ntp_servers = 1
DHCP4.OPTION[17]:                       requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[18]:                       requested_root_path = 1
DHCP4.OPTION[19]:                       requested_routers = 1
DHCP4.OPTION[20]:                       requested_static_routes = 1
DHCP4.OPTION[21]:                       requested_subnet_mask = 1
DHCP4.OPTION[22]:                       requested_time_offset = 1
DHCP4.OPTION[23]:                       requested_wpad = 1
DHCP4.OPTION[24]:                       routers = 192.168.0.1
DHCP4.OPTION[25]:                       subnet_mask = 255.255.255.0
IP6.ADDRESS[1]:                         fe80::<IP6 'eno1' [IF1]>/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 256
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/2
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   3fc91611-2585-3063-ac16-0d3e7c50d8c3 | netplan-zz-all-en

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

##### NetworkManager config #############

[[/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf]]
[connection]
wifi.powersave = 3

[[/etc/NetworkManager/NetworkManager.conf]]
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no

[[/usr/lib/NetworkManager/conf.d/10-dns-resolved.conf]]
[main]
dns=systemd-resolved

[[/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf]]
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:gsm,except:type:cdma

[[/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf]]
[device-31-mac-addr-change]
match-device=driver:eagle_sdio,driver:wl
wifi.scan-rand-mac-address=no

##### NetworkManager profiles ###########

##### Netplan config ####################

grep: /etc/netplan/01-network-manager-all.yaml: Permission denied
grep: /etc/netplan/50-cloud-init.yaml: Permission denied

##### iw reg get ########################

Region: Europe/London (based on set time zone)

global
country 00: DFS-UNSET
	(755 - 928 @ 2), (N/A, 20), (N/A), PASSIVE-SCAN
	(2402 - 2472 @ 40), (N/A, 20), (N/A)
	(2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
	(5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN
	(5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
	(57240 - 63720 @ 2160), (N/A, 0), (N/A)

##### iwlist channels ###################

'iwlist' is not installed (package "wireless-tools").

##### iwlist scan #######################

'iwlist' is not installed (package "wireless-tools").

##### module infos ######################

[cfg80211]
filename:       /lib/modules/6.14.0-33-generic/kernel/net/wireless/cfg80211.ko.zst
description:    wireless configuration support
license:        GPL
depends:        
intree:         Y
name:           cfg80211
retpoline:      Y
vermagic:       6.14.0-33-generic SMP preempt mod_unload modversions 
parm:           bss_entries_limit:limit to number of scan BSS entries (per wiphy, default 1000) (int)
parm:           ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm:           cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[cfg80211]
bss_entries_limit: 1000
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################

##### modprobe options ##################

[/etc/modprobe.d/amd64-microcode-blacklist.conf]
blacklist microcode

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/intel-microcode-blacklist.conf]
blacklist microcode

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

##### rc.local ##########################

grep: /etc/rc.local: No such file or directory

##### pm-utils ##########################

##### udev rules ########################

##### dmesg #############################

[    7.851434] e1000e 0000:00:19.0 eno1: NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx
[ 4964.608570] e1000e 0000:00:19.0 eno1: NIC Link is Down
[ 4967.464208] e1000e 0000:00:19.0 eno1: NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx

########## wireless info END ############


Looking at the problem from a different angle, what does the following script report, which might highlight possible PATH conflicts … or omissions?


Sample Output:

Found 3 instances of the command ...

Instance				Path Precedence
----------------------------------------------------------------------
	--				/Oasis/bin
	--				/root/.nvm/versions/node/v22.4.1/bin
	--				/DB001_F2/Oasis/bin
	--				/DB001_F2/Oasis/bin_Others
	--				/DB001_F2/LO/bin_Util
	--				/DB001_F2/LO/bin_Admin
	--				/DB001_F2/LO/bin_OS
	--				/DB001_F2/LO/bin_FW
	--				/usr/local/sbin
/usr/local/bin/firefox (symlink)         🡺   /opt/firefox/firefox
	--				/usr/sbin
	--				/usr/bin
	--				/sbin
	--				/bin
	--				/usr/games
	--				/usr/local/games
	--				/snap/bin
	--				/DB001_F2/LO/bin_User
	--				/DB001_F2/LO/bin_Eval
	--				/DB001_F2/LO/bin_Dev

Instances Masked from PATH
----------------------------------------------------------------------
-rwxr-xr-x   /DB001_F2/home/ericthered.Downloads/firefox/firefox
-rwxr-xr-x   /opt/firefox-142.0/firefox

Script [Appl__Command__PathAndPrecedence.sh]:

#!/bin/sh

tmp="$(basename "${0}" ".sh")_$$.tmp"

if [ $# -eq 0 ]
then
	echo "\n\t Required name of executable attempting to locate as parameter.\n" ; exit 1
fi


reportInstance()
{
	if [ -L "${testor}" ]
	then
		target="$(ls -l "${testor}" | cut -f2- -d\> | cut -c2- )"
		if [ -x "${target}" ]
		then
			echo "${testor} (symlink)" |
			awk -v tgt="${target}" '{ printf("%s%s%-40s%s 🡺  %s%s%s%s\n", "\033[1m", "\033[33;1m", $0, "\033[0m", "\033[1m", "\033[92;1m", tgt, "\033[0m" ) ; }'
		else
			if [ -s "${target}" ]
			then
				echo "${testor} (noexec)" |
				awk -v tgt="${target}" '{ printf("%s%s%-40s%s 🡺  %s%s%s%s\n", "\033[1m", "\033[33;1m", $0, "\033[0m", "\033[1m", "\033[91;1m", tgt, "\033[0m" ) ; }'
			else
				echo "${testor} (broken)" |
				awk -v tgt="${target}" '{ printf("%s%s%-40s%s 🡺  %s%s%s%s\n", "\033[1m", "\033[33;1m", $0, "\033[0m", "\033[1m", "\033[91;1m", tgt, "\033[0m" ) ; }'
			fi
		fi
	else
		if [ -x "${testor}" ]
		then
			echo "${testor}" | awk '{ printf("%-40s 🡸\n", $0 ) ; }'
		else
			echo "\t--\t\t\t\t${dir}"
		fi
	fi
}


cmd=${1}
locate "${cmd}" |
	awk -v fcmd="${cmd}" '{
		n=split( $0, parts, "/" ) ;
		if( parts[n] == fcmd ){
			print $0 ;
		} ;
	}' |
	while true
	do
		read line
		if [ -z "${line}" ]
		then
			break
		else
			if [ ! -d "${line}" ] && [ -x "${line}" ]
			then
				echo "${line}"
			fi
		fi
	done >"${tmp}"

if [ -s "${tmp}" ]
then
	echo "\nFound $(wc -l "${tmp}" | awk '{ print $1 }' ) instances of the command ..."
else
	echo "\nFound  0  instances of the command.\n" ; exit 0
fi

cpath=$(which "${cmd}" )
locn=$(dirname "${cpath}" )

echo "\nInstance\t\t\t\tPath Precedence\n----------------------------------------------------------------------"

cmdMatch=0
for dir in $(echo "${PATH}" | sed 's+[:]+\ +g' )
do
	testor="$(grep '^'"${dir}" "${tmp}" )"
	if [ -n "${testor}" ]
	then
		cmdMatch=1
		reportInstance
	else
		if [ ${cmdMatch} -eq 1 ]
		then
			testor="${dir}/${cmd}"
			reportInstance
		else
			echo "\t--\t\t\t\t${dir}"
		fi
	fi
done

grep -v "${cpath}" "${tmp}" >"${tmp}.2"
if [ -s "${tmp}.2" ]
then
	echo "\nInstances Masked from PATH\n----------------------------------------------------------------------"
	cat "${tmp}.2" | 
	xargs ls -l |
	awk '{
		pos=index( $0, $9 ) ;
		rem=substr( $0, pos ) ;
		printf("%-12s %s\n", $1, rem ) ;
	}'
	echo ""
else
	echo "\nFound no instances of the command which are Masked from PATH.\n"
fi

Sorry to be a bit slow on all this, do I just run the line :

Script [Appl__Command__PathAndPrecedence.sh]:

in a terminal?

Yes. (. . . . . . . . )

script [Appl__Command__PathAndPrecedence.sh]:
Script started, output log file is '[Appl__Command__PathAndPrecedence.sh]:'.

The file that appears in Featherpad is empty. Am I looking in the wrong place?