Installing Dradis CE on Ubuntu 20.04

Did anyone manage to install Dradis CE on Ubuntu 20.04 ?
I have tried the instructions here with no luck.

1 Like

Hey @H2Cyber, what error(s) do you run into when installing? It should still be working as far as I know!

Here is the error I get :

hcyber@ubuntu:~/dradis-ce$ ./bin/setup

== Enabling default add-ons ==
== Installing dependencies ==
git@github.com:paper-trail-gem/paper_trail.git (at 1e56afd@1e56afd) is not yet checked out. Run `bundle install` first.
Fetching git@github.com:paper-trail-gem/paper_trail.git
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Retrying `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/share/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` at /home/hcyber/dradis-ce due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/share/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` in directory /home/hcyber/dradis-ce has failed.

If this error persists you could try removing the cache directory '/home/hcyber/dradis-ce'

Retrying `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/share/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` at /home/hcyber/dradis-ce due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/share/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` in directory /home/hcyber/dradis-ce has failed.

If this error persists you could try removing the cache directory '/home/hcyber/dradis-ce'

Retrying `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/share/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` at /home/hcyber/dradis-ce due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/share/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` in directory /home/hcyber/dradis-ce has failed.

If this error persists you could try removing the cache directory '/home/hcyber/dradis-ce'

Git error: command `git clone git@github.com:paper-trail-gem/paper_trail.git
/usr/share/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks
--quiet` in directory /home/hcyber/dradis-ce has failed.

If this error persists you could try removing the cache directory '/home/hcyber/dradis-ce'

== Command ["bundle install"] failed ==
1 Like

I have tried to paste the error but the SPAM bot blocked it, here is a screenshot instead :

Same exact error both on a fresh Ubuntu 20.4 and Kali 2021.1.
replicated the error in different environment for both Ubuntu and Kali

@4rdver have you tried removing the cache directory like the error mentions? /home/[redacted]/dradis-ce?

yes tried that.

I also tried the ‘fix’ from https:// Setup Fails · Issue #782 · dradis/dradis-ce · GitHub

replaced in Gemfile the line
gem ‘paper_trail’, git: ‘git@github.com:paper-trail-gem/paper_trail.git’, ref: ‘1e56afd’
with the line
gem ‘paper_trail’, git: ‘https ://github.com:paper-trail-gem/paper_trail.git’, ref: ‘1e56afd’

But when i run “sudo ruby bin/setup” I get the following error:

== Enabling default add-ons ==
== Installing dependencies ==
Traceback (most recent call last):
32: from /usr/local/bin/bundle:23:in <main>' 31: from /usr/local/bin/bundle:23:in load’
30: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/exe/bundle:37:in <top (required)>' 29: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/friendly_errors.rb:130:in with_friendly_errors’
28: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/exe/bundle:49:in block in <top (required)>' 27: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli.rb:24:in start’
26: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start' 25: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli.rb:30:in dispatch’
24: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch' 23: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command’
22: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' 21: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli.rb:182:in check’
20: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli/check.rb:15:in run' 19: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler.rb:194:in definition’
18: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/definition.rb:33:in build' 17: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/dsl.rb:13:in evaluate’
16: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/dsl.rb:232:in to_definition' 15: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/dsl.rb:232:in new’
14: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/definition.rb:124:in initialize' 13: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/definition.rb:689:in converge_sources’
12: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source_list.rb:99:in replace_sources!' 11: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source_list.rb:77:in lock_sources’
10: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source_list.rb:77:in sort_by' 9: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source_list.rb:77:in each’
8: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:78:in to_s' 7: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:228:in revision’
6: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:306:in git_proxy' 5: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:219:in cache_path’
4: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:326:in git_scope' 3: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:289:in uri_hash’
2: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/uri/lib/uri/common.rb:234:in parse' 1: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb:73:in parse’
/var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb:67:in split': bad Bundler::URI(is not Bundler::URI?): "https://github.com:paper-trail-gem/paper_trail.git" (Bundler::URI::InvalidURIError) Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Traceback (most recent call last): 34: from /usr/local/bin/bundle:23:in ’
33: from /usr/local/bin/bundle:23:in load' 32: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/exe/bundle:37:in <top (required)>’
31: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/friendly_errors.rb:130:in with_friendly_errors' 30: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/exe/bundle:49:in block in <top (required)>’
29: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli.rb:24:in start' 28: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start’
27: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli.rb:30:in dispatch' 26: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch’
25: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' 24: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run’
23: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli.rb:258:in install' 22: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/settings.rb:115:in temporary’
21: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli.rb:259:in block in install' 20: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/cli/install.rb:61:in run’
19: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler.rb:194:in definition' 18: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/definition.rb:33:in build’
17: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/dsl.rb:13:in evaluate' 16: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/dsl.rb:232:in to_definition’
15: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/dsl.rb:232:in new' 14: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/definition.rb:124:in initialize’
13: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/definition.rb:689:in converge_sources' 12: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source_list.rb:99:in replace_sources!’
11: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source_list.rb:77:in lock_sources' 10: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source_list.rb:77:in sort_by’
9: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source_list.rb:77:in each' 8: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:78:in to_s’
7: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:228:in revision' 6: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:306:in git_proxy’
5: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:219:in cache_path' 4: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:326:in git_scope’
3: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/source/git.rb:289:in uri_hash' 2: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/uri/lib/uri/common.rb:234:in parse’
1: from /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb:73:in parse' /var/lib/gems/2.7.0/gems/bundler-2.2.8/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb:67:in split’: bad Bundler::URI(is not Bundler::URI?): “https://github.com:paper-trail-gem/paper_trail.git” (Bundler::URI::InvalidURIError)

== Command [“bundle install”] failed ==

same error if i run “bundle install”

update: after the latest update on github, reinstalling it on Ubuntu and Kali has completed successfully.

1 Like

Try to install it on fresh Kali 2021.2 and Ubuntu Desktop 20.04 with no luck. On Kali I get

== Enabling default add-ons ==
== Installing dependencies ==
Your Ruby version is 2.7.4, but your Gemfile specified 2.7.2
Your Ruby version is 2.7.4, but your Gemfile specified 2.7.2

== Command [“bundle install”] failed ==

On Ubuntu it got stuck installing libv8

Any ideas?

1 Like

Hey @blueshore this thread should help you get your Ruby version changed to v2.7.2: Installation Issue - #4 by CybertSys. Otherwise, Google is probably your friend with libv8 install errors, I’ve had trouble with that dependency before myself.

1 Like

Thanks! Notice that most users are going with the build-in in Kali. Since I’m doing an eval for recommendation, I’ll check that way, and then I might get deeper into the rabbit hole :rabbit2: :slight_smile:

1 Like