Firefox Update on Kubuntu 18.04

I have Kubuntu 18.04 for about 4 months. I have used Ubuntu for the last 5 years. I am not sure how to open and execute software from my download file.

For example:

Firefox wants me to update my browser. I download the software to the download file.
file is called: firefox-67.0.1.tar.bz2.

I Click on it and I am stuck at this point.

There are just a bunch of files and folders. I am not sure what to do. There is an extract option but which files??? I tried using the package manager and not able to figure that out either. I could use the terminal but don’t have the terminal commands for that.

I have a screen shot I could send if needed to see what I am looking at.

Can someone give me some guidance here?

I thank so very much in advance so who will help me with this. I have been putting it off for over a month.

i’m not familiar with the kubuntu sofware updater, but sudo apt update followed by sudo apt upgrade in the terminal will update any package on your system that needs upgrading. that should include firefox. the current version of firefox in the ubuntu repository is 67.0.4 as you can see at this link: https://packages.ubuntu.com/bionic/firefox

disclaimer: i always make a system backup with timeshift before doing any system work, but that is by no means a must :slight_smile:

1 Like

Firefox is installed by default in Kubuntu and any updates should show up in the normal updates without you having to do anything apart from installing from there. You need to check there first and do the update through it as that is the best and easiest way to do it. Sometimes there is a delay in updates as these are checked to make sure they are safe to install.
Personally I would wait for it show in the update manager. If you want to do it, this link is the easiest I have found for you to do it, https://snapcraft.io/install/firefox/kubuntu, but as @cordx has said do system snapshot first using TimeShift in case anything goes wrong with it you can restore before you did it

1 Like

just ran an update && upgrade myself because i was behind on my firefox version as well.

Great! this is what I got: I didn’t include everything just the important info:

Reading package lists… Done
Building dependency tree
Reading state information… Done
459 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ sudo apt upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed
libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.24.2-0ubuntu0.18.04.1) but 2.22.5-0ubuntu0.18.04.1 is installed
nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.116-0ubuntu0.18.04.1) but it is not installed
Recommends: libnvidia-gl-390:i386 (= 390.116-0ubuntu0.18.04.1)
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ ^C
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ apt list --upgradable
Listing… Done

Also… I have another issue with the Software Updater called Discover in Kubuntu. I have not been able to complete the updates for several months.

Currently there are 452 updates and once I click “Update All” a box pops up to enter my password but it disappears within 1 second then another box pops up indicating I do not have “authorization to complete this operation. Failed to obtain authentication.”

How do I get the password box to stop disappearing???

hopefully this will run correctly with sudo: sudo apt --fix-broken install

didn’t work
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ ^C
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ ^C
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$

“With great power comes great responsibility.”
This is the number 1 rule when using GNU/Linux.
“Think before you type.”
If you don’t follow these quite simple rules, you will always run into issues. In the worst case scenario, you will break your whole system or delete all your data so be careful, if you don’t want to achieve that.

Same goes for

Here is the answer to your question, but you didn’t read it precisely enough, which is the reason why you are stuck at the same error.

Comment from @Akito:
This is actually a very dangerous procedure and you should only do this when you know precisely what you are doing. It also is not necessary 99.99% of the time. Do at your own risk, it might break your system.

You also have a lock file that has not been cleared. Go to a terminal and type this command sudo rm /var/lib/dpkg/lock-frontend
Then run these commands sudo apt autoclean sudo apt clean sudo apt update and sudo apt upgrade

Good Luck.

1 Like

This file will be recreated if it’s needed. :slight_smile:

Looks like you forgot to type ‘sudo’ in front of the command.

1 Like

Thanks! Here is where it stands right now. I did all the suggestions

clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following package was automatically installed and is no longer required:
libllvm6.0:i386
Use ‘sudo apt autoremove’ to remove it.
The following additional packages will be installed:
libnvidia-gl-390 libnvidia-gl-390:i386
The following NEW packages will be installed:
libnvidia-gl-390 libnvidia-gl-390:i386
0 upgraded, 2 newly installed, 0 to remove and 462 not upgraded.
226 not fully installed or removed.
Need to get 29.2 MB of archives.
After this operation, 147 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 libnvidia-gl-390 amd64 390.116-0ubuntu0.18.04.1 [14.3 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 libnvidia-gl-390 i386 390.116-0ubuntu0.18.04.1 [14.9 MB]
Fetched 29.2 MB in 20s (1,476 kB/s)
(Reading database … 243962 files and directories currently installed.)
Preparing to unpack …/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb …
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing ‘diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390’
found ‘diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340’
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb (–unpack):
new libnvidia-gl-390:i386 package pre-installation script subprocess returned error exit status 2
Preparing to unpack …/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_amd64.deb …
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing ‘diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390’
found ‘diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340’
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_amd64.deb (–unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb
/var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$

1 Like

Thanks for the info. I tried all your terminal commands and here is the result:

clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following package was automatically installed and is no longer required:
libllvm6.0:i386
Use ‘sudo apt autoremove’ to remove it.
The following additional packages will be installed:
libnvidia-gl-390 libnvidia-gl-390:i386
The following NEW packages will be installed:
libnvidia-gl-390 libnvidia-gl-390:i386
0 upgraded, 2 newly installed, 0 to remove and 474 not upgraded.
226 not fully installed or removed.
Need to get 0 B/29.2 MB of archives.
After this operation, 147 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 243962 files and directories currently installed.)
Preparing to unpack …/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb …
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing ‘diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390’
found ‘diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340’
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb (–unpack):
new libnvidia-gl-390:i386 package pre-installation script subprocess returned error exit status 2
Preparing to unpack …/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_amd64.deb …
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing ‘diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390’
found ‘diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340’
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_amd64.deb (–unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb
/var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ dpkg-divert --list nvidia-340
diversion of /usr/lib/x86_64-linux-gnu/libEGL.so to /usr/lib/x86_64-linux-gnu/libEGL.so.distrib by nvidia-340
diversion of /usr/lib/i386-linux-gnu/libGLESv2.so.2 to /usr/lib/i386-linux-gnu/libGLESv2.so.2.distrib by nvidia-340
diversion of /usr/lib/x86_64-linux-gnu/libGLESv2.so.2 to /usr/lib/x86_64-linux-gnu/libGLESv2.so.2.distrib by nvidia-340
diversion of /usr/lib/i386-linux-gnu/libGLESv1_CM.so.1 to /usr/lib/i386-linux-gnu/libGLESv1_CM.so.1.distrib by nvidia-340
diversion of /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so to /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.distrib by nvidia-340
diversion of /usr/lib/x86_64-linux-gnu/libEGL.so.1 to /usr/lib/x86_64-linux-gnu/libEGL.so.1.distrib by nvidia-340
diversion of /usr/lib/i386-linux-gnu/libGLESv2.so to /usr/lib/i386-linux-gnu/libGLESv2.so.distrib by nvidia-340
diversion of /usr/lib/i386-linux-gnu/libEGL.so to /usr/lib/i386-linux-gnu/libEGL.so.distrib by nvidia-340
diversion of /usr/lib/i386-linux-gnu/libGL.so to /usr/lib/i386-linux-gnu/libGL.so.distrib by nvidia-340
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
diversion of /usr/lib/x86_64-linux-gnu/libGL.so to /usr/lib/x86_64-linux-gnu/libGL.so.distrib by nvidia-340
diversion of /usr/lib/i386-linux-gnu/libGLESv1_CM.so to /usr/lib/i386-linux-gnu/libGLESv1_CM.so.distrib by nvidia-340
diversion of /usr/lib/i386-linux-gnu/libEGL.so.1 to /usr/lib/i386-linux-gnu/libEGL.so.1.distrib by nvidia-340
diversion of /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1 to /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1.distrib by nvidia-340
diversion of /usr/lib/x86_64-linux-gnu/libGLESv2.so to /usr/lib/x86_64-linux-gnu/libGLESv2.so.distrib by nvidia-340
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ dpkg-divert --remove /usr/lib/x86_64-linux-gnu/libGL.so.1
Removing ‘diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340’
dpkg-divert: error: unable to create new file ‘/var/lib/dpkg/diversions-new’: Permission denied

looks like you still need to remove or delete these with rm:
sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb
then
sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_amd64.deb
and then follow those with the others from ask ubuntu:

sudo apt-get clean
sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install -f
sudo apt-get update

did your firefox get updated?

Nope. I have tried the suggestions posted here and still it is not updated.

1 Like

This is what happened:

clindsay@clindsay-Lenovo-IdeaPad-Y500:~$ sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb
rm: cannot remove ‘/var/cache/apt/archives/libnvidia-gl-390_390.116-0ubuntu0.18.04.1_i386.deb’: No such file or directory
clindsay@clindsay-Lenovo-IdeaPad-Y500:~$

Have you tried to update through Synaptic Package Manager? I am not sure if it is installed by default in Kubuntu, if not it should be in the software manager. I know that you can remove things completely through it. I did that with Firefox as I don’t use use it. Just searched for it then marked it for complete removal. Once that is is done, you could go back to software manager and re-install and then the software manager should update it. - This is all I can think of, perhaps @abhishek has a better solution.

1 Like