[COMPASS-4428] Compass installation fails on Ubuntu 20.04 Created: 29/Sep/20  Updated: 29/Oct/23  Resolved: 23/Oct/20

Status: Closed
Project: Compass
Component/s: Compass, Installation
Affects Version/s: 1.21.2
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Maurizio Casimirri Assignee: Maurizio Casimirri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Story Points: 8
Documentation Changes: Needed
Documentation Changes Summary:

Add to the documentation a note about the fact that in case the user would encounter the 'Failled to install file: not supported' when trying to install the .deb file in ubuntu alternate methods like `sudo apt install` would work.

Sprint: Iteration Orange

 Description   

root@b12b6bca7202:/# dpkg -i compass.deb 
Selecting previously unselected package mongodb-compass.
(Reading database ... 95994 files and directories currently installed.)
Preparing to unpack compass.deb ...
Unpacking mongodb-compass (1.22.1) ...
dpkg: dependency problems prevent configuration of mongodb-compass:
 mongodb-compass depends on libgconf-2-4 | libgconf2-4; however:
  Package libgconf-2-4 is not installed.
  Package libgconf2-4 is not installed.
 mongodb-compass depends on libgconf-2-4; however:
  Package libgconf-2-4 is not installed.

Similar to: https://github.com/balena-io/etcher/issues/2191



 Comments   
Comment by Anna Henningsen [ 16/Oct/20 ]

I had no issue installing (and running) the Compass deb on 20.04 in a Docker container, after installing the dependencies listed in the deb.

There is some weirdness going on here, but I don’t think it’s breaking anything. Specifically, hadron-build and electron-installer-debian both add dependencies on libgconf2.

hadron-build adds “libgconf-2-4”, because of COMPASS-1298 – that was an issue for ancient Electron versions, and if I had to guess I would say we don’t need it anymore.

electron-installer-debian adds “libgconf-2-4 | libgconf2-4”, because it looks at the `version` file in the `dist/...` directory, and uses that as the Electron version. 2. We actually store the Compass version in that file, not the Electron version, so electron-installer-debian thinks that we’re using Electron < 3.0.0 and therefore adds libgconf2 as a dependency (newer Electron versions don’t require it).

So, presumably what we should do is:

  • Drop the dependency on libgconf2 in hadron-build altogether, because electron-installer-debian already takes care of that for us
  • Change the `dist/.../version` file to contain the Electron version, not the Compass version

But before doing anything, I’d like to check that I’m not misunderstanding the issue here.

Generated at Wed Feb 07 22:36:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.