StackStorm / StackStorm/st2

apt: st2 -> libssl-dev is conflicting with nodejs-dev -> libssl1.0-dev

Open
#4,889 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug OS support st2-packages status:to be verified
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

SUMMARY

When trying to install npm to be able to add another hubot adapter, I found that installing nodejs-dev (required for npm) would uninstall st2 package

STACKSTORM VERSION

Paste the output of st2 --version: st2 3.1.0, on Python 3.6.9

OS, environment, install method

Ubuntu 18.04.4 LTS, followed official documentation (apt package)

Steps to reproduce the problem

Have a working st2 setup

Run apt install npm

Expected Results

npm package to install without breaking everything

Actual Results

# apt install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  grub-pc-bin libdumbnet1 libjemalloc1
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  gyp libjs-async libjs-inherits libjs-node-uuid libssl1.0-dev libuv1-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
  node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp
  node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct
  node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license node-which node-wrappy node-yallist nodejs-dev python-pkg-resources
Suggested packages:
  node-hawk node-aws-sign node-oauth-sign node-http-signature debhelper python-setuptools
The following packages will be REMOVED:
  libssl-dev st2
The following NEW packages will be installed:
  gyp libjs-async libjs-inherits libjs-node-uuid libssl1.0-dev libuv1-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
  node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp
  node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct
  node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license node-which node-wrappy node-yallist nodejs-dev npm python-pkg-resources
0 upgraded, 71 newly installed, 2 to remove and 0 not upgraded.
Need to get 4,245 kB of archives.
After this operation, 120 MB disk space will be freed.
Do you want to continue? [Y/n]

When running apt-get in debug mode I can see that there is a conflict :

# apt-get -o Debug::pkgProblemResolver=true install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) st2:amd64 < 3.1.0-3 @ii mK Ib >
Broken st2:amd64 Depends on libssl-dev:amd64 < 1.1.1-1ubuntu2.1~18.04.5 @ii mR >
  Considering libssl-dev:amd64 0 as a solution to st2:amd64 0
  Removing st2:amd64 rather than change libssl-dev:amd64
Done

st2 depends on libssl-dev but nodejs-dev depends on libssl1.0-dev, both versions are conflicting with each others.

I could not find a way to have both installed at the same time to add a new hubot adapter.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the conflict on Ubuntu 18.04.4 with the documented apt installation and apt install npm, then inspect the reported st2, libssl-dev, nodejs-dev, and libssl1.0-dev dependency relationships. Done means npm and st2 can be installed together without apt removing st2.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, python, ubuntu
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.