Upgrade of Purebrowser fails

Original Errormessage:

dpkg-divert: Fehler: »Umleitung von /usr/bin/firefox zu /usr/bin/firefox.real durch purebrowser« kollidiert mit »Umleitung von /usr/bin/firefox zu /usr/bin/firefox.real durch firefox-esr«

translated:

dpkg-divert: ERROR: »Redirection from /usr/bin/firefox to /usr/bin/firefox.real of purebrowser« collides with »redirection from /usr/bin/firefox to /usr/bin/firefox.real of firefox-esr«

I get the same error:

dpkg-divert: error: ‘diversion of /usr/bin/firefox to /usr/bin/firefox.real by purebrowser’ clashes with ‘diversion of /usr/bin/firefox to /usr/bin/firefox.real by firefox-esr’
dpkg: error processing archive /var/cache/apt/archives/purebrowser_52.5.0esr-1pureos2_amd64.deb (–unpack):
new purebrowser package pre-installation script subprocess returned error exit status 2
Preparing to unpack …/libgmp10_2%3a6.1.2+dfsg-1.2_amd64.deb …
Unpacking libgmp10:amd64 (2:6.1.2+dfsg-1.2) over (2:6.1.2+dfsg-1.1) …
Errors were encountered while processing:
/var/cache/apt/archives/purebrowser_52.5.0esr-1pureos2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried to uninstall the firefox-esr package, then did ‘sudo apt-get upgrade’ (which worked, apart from the error
‘Error! Bad return status for module build on kernel: 4.14.0-3-amd64 (x86_64)
Consult /var/lib/dkms/psmouse/byd-0.2/build/make.log for more information.’, which I hope is not that crucial).

But then trying to install firefox-esr-package now clashes with PureBrowser:

Preparing to unpack …/firefox-esr_52.5.0esr-1~deb9u1_amd64.deb …
dpkg-divert: error: ‘diversion of /usr/bin/firefox to /usr/bin/firefox.real by firefox-esr’ clashes with ‘diversion of /usr/bin/firefox to /usr/bin/firefox.real by purebrowser’
dpkg: error processing archive /var/cache/apt/archives/firefox-esr_52.5.0esr-1~deb9u1_amd64.deb (–unpack):
new firefox-esr package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/firefox-esr_52.5.0esr-1~deb9u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

So it is either PureBrowser or Firefox-esr…

2 Likes

So I don’t know if we are the only ones experienceing this problem, but I’d like to point out that in some cases I had to rely on Firefox to access certain (password protected) webresources, because with PureBrowser for reasons unknown it would not transmit the passphrase (at least that is what I remembered).

So it would be nice to have both options, however, at the moment there seems to be a clash.

Any ideas (maybe the solution is simple?) are very welcome -

Stefan

1 Like

The issues with PureBrowser should be fixed in version 52.5.3esr-1pureos2

OK, great -

but for some reason, apt-get can’t find the new version for purebrowser, even after I did sudo apt-get update.

sudo apt-get install purebrowser=52.5.3esr-1pureos2
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Version ‘52.5.3esr-1pureos2’ for ‘purebrowser’ was not found

I also realized that since several days, sudo apt-get upgrade would do nothing, just giving the list of packages which are no longer required.

What could be the reason for that? Did something change about the repositories in the last weeks?

sudo apt-get update doesn’t work properly, agree. Use instead sudo apt update then you’ll see that sudo apt upgrade starts working as well.

Most of what I’ve seen suggests using apt instead of apt-get now, though I think install instructions still frequently use apt-get out of tradition.

I’ve replaced all my usage of apt-get with apt and haven’t had any issues.

I think it’s an issue of PureOS, though I could not find it being tracked here https://tracker.pureos.net

does not work for me either! :frowning_face:

I would attempt a
sudo apt update
and then a
sudo apt upgrade

Instead of explicitly specifying a particular version.

I tried it with the particular version, because what you proposed lead me to post this topic. :wink:

OK,

sudo apt update

and

sudo apt upgrade

do something. However, they don’t give me purebrowser version 52.5.3esr-1pureos2.
Instead I still have

purebrowser is already the newest version (52.5.0esr-1pureos2).

and

sudo apt install firefox-esr

still clashes with purebrowser.

1 Like

We don’t package firefox-esr within PureOS. Do you have non-PureOS repositories in your sources.list?

Yes,

this is my /etc/apt/sources.list:

deb http://repo.puri.sm/pureos/ green main
deb-src http://repo.puri.sm/pureos/ green main
deb http://httpredir.debian.org/debian stretch main contrib non-free

I am quite sure that the last line I added because this was suggested in the Purism news to apply the patch for Spectre, but if I read now, it says to include

deb http://deb.puri.sm/pureos/ green contrib non-free

So that last line in my sources.list is probably where my installation finds firefox-esr (how would I verify this?).

So for the moment I stick with PureBrowser, I’ll come back to this post when I encounter problems.

May this somehow correlated to tor browser?

I think that you migth’ve misunderstood how to apply the patch that Purism referred to; in that blog post, it says that you were supposed to create this separate file: /etc/apt/sources.list.d/purism.list, which was supposed to contain only these lines:

#non-free Purism repo for microcode
deb http://deb.puri.sm/pureos/ green contrib non-free

Not this line:
deb http://httpredir.debian.org/debian stretch main contrib non-free

Also, your /etc/apt/sources.list file should contain the following lines, instead of what you listed above:

deb http://repo.pureos.net/pureos/ green main
deb-src http://repo.pureos.net/pureos/ green main

Sorry,

my fault - actually you are right, and I had put the lines

# non-free Purism repo for microcode
deb http://deb.puri.sm/pureos/ green contrib non-free

into /etc/apt/sources.list.d/purism.list

The debian non-free repository is needed to get bluetooth working.

OK,

in the meantime I have PureBrowser 52.6.0esr-2pureos1, and with this version, I can also install the firefox-esr package, without a clash-message.