subgraph / subgraph-os-issues

Subgraph OS issues repository
73 stars 10 forks source link

Cannot install firefox-esr #202

Open conorsch opened 7 years ago

conorsch commented 7 years ago

Trying to install firefox-esr from the Debian Stretch repos fails, due to dpkg-divert conflicts related to oz:

[user@subgraph:~] $ sudo apt install -y firefox-esr
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  fonts-stix | otf-stix fonts-lmodern mozplugger libgnomeui-0
Recommended packages:
  gstreamer1.0-libav
The following NEW packages will be installed:
  firefox-esr
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 42.0 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Get:1 http://debian.mirror.neology.co.za/debian stretch/main amd64 firefox-esr amd64 45.6.0esr-1 [42.0 MB]
Fetched 42.0 MB in 2min 45s (253 kB/s)
(Reading database ... 178003 files and directories currently installed.)
Preparing to unpack .../firefox-esr_45.6.0esr-1_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-oz/firefox by oz'
dpkg: error processing archive /var/cache/apt/archives/firefox-esr_45.6.0esr-1_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/firefox-esr_45.6.0esr-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is a fresh install of the latest SubgraphOS iso, subgraph-os-alpha_2016-12-30_1.iso.

conorsch commented 7 years ago

Still hitting this problem. Any temporary workarounds, e.g. updates to the dpkg-divert settings?

julien-tmp commented 7 years ago

Use sudo oz-setup remove --force firefox (ensuring that your /var/lib/oz/cells.d/firefox.json is set to /usr/bin/firefox. If it gives an error: sudo dpkg-divert --remove /usr/bin/firefox

You should then be able to install firefox-esr normally. After that, change the path in your /var/lib/oz/cells.d/firefox.json to /usr/bin/firefox-esr and run sudo oz-setup install firefox

ghost commented 6 years ago

@krz37 Followed your recommendation and Firefox launched. Still, It triggered a series of firewall warnings and even though I've allowed it to connect, it's not being able to navigate.