question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install SSHJ: installation fails with dependency error on org.bouncycastle.bcpkix

See original GitHub issue

This is a follow-up of https://github.com/dbeaver/dbeaver/issues/9989#issuecomment-824908370 . I want to connect to a PostgreSQL db through a SSH tunnel, but connection fails with default implementation JSch with error process hasn't exited (see https://github.com/dbeaver/dbeaver/issues/9989), so I’m following the suggestion from multiple commenters at https://github.com/dbeaver/dbeaver/issues/9989 to switch to SSHJ (instead of the default JSch).

Sadly, I’m unable to follow this advice to switch to SSHJ, because I’m unable to install it. When I try to install it (from Install New SoftwareDBeaver SSHJ extension - https://dbeaver.io/update/sshj/latest/Next), installation fails with:

Cannot complete the install because one or more required items could not be found.
  Software being installed: DBeaver SSHJ 1.0.76.202104181339 (org.jkiss.dbeaver.net.sshj.feature.feature.group 1.0.76.202104181339)
  Missing requirement: SSHv2 library for Java 0.27.3 (org.jkiss.bundle.sshj 0.27.3) requires 'osgi.bundle; org.bouncycastle.bcpkix 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: DBeaver SSH implementation (SSHJ) 1.0.76.202104181339 (org.jkiss.dbeaver.net.ssh.sshj 1.0.76.202104181339)
    To: osgi.bundle; org.jkiss.bundle.sshj 0.0.0
  Cannot satisfy dependency:
    From: DBeaver SSHJ 1.0.76.202104181339 (org.jkiss.dbeaver.net.sshj.feature.feature.group 1.0.76.202104181339)
    To: org.eclipse.equinox.p2.iu; org.jkiss.dbeaver.net.ssh.sshj [1.0.76.202104181339,1.0.76.202104181339]

Am I missing something?

System information

  • Ubuntu 20.10, fully up-to-date
  • DBeaver 21.0.3.202104181339 (latest as of today, installed from the official deb package)
  • Zero additional extensions

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
mbelangcommented, Oct 18, 2021

Still having this issue with dbeaver Version 21.2.2.202110030714 and Ubuntu 20.04.

4reactions
vycodercommented, Nov 8, 2021

I’m having the same problem on 21.2.4. Same error, the thing is, my initial issue is #7424.

Can't initialize tunnel
   Unable to initialize SSH agent

I’ve read that JSCh doesn’t work, recommended SSHJ, now I’m stuck. lol

Read more comments on GitHub >

github_iconTop Results From Across the Web

BouncyCastle openssl cannot be resolved - Stack Overflow
Whenever we get error saying "The import *** cannot be resolved", it means that there is problem with library. Here, bcprov-jdk jar is...
Read more >
EGit / JGit » Can't update EGit - Eclipse Community Forums
An error occurred while collecting items to be installed ... found containing: osgi.bundle,org.bouncycastle.bcpkix,1.61.0.v20190602-1335
Read more >
Set up environment to install API components and program with API
The following sections provide details about installing API components and programing with API. Requirements to use Java API. To use the Java API, ......
Read more >
SSH installation errors - Ask Ubuntu
The problem: openssh-server : Depends: openssh-client (= 1:6.6p1-2ubuntu1) but 1:6.6p1-2ubuntu2 is installed. Try running:
Read more >
recording test results [checks api] no suitable checks publisher ...
Please let me know, if any other dependency is complicating this issue or may be ... jenkins/Jenkinsfile 10:32:44 Selected Git installation does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found