Results 1 to 4 of 4

Thread: Dradis and DPKG error during apt dist-upgrade

  1. #1
    Junior Member
    Join Date
    Aug 2015
    Posts
    19

    Exclamation Dradis and DPKG error during apt dist-upgrade

    After performing sudo apt update, I tried to upgrade by doing sudo apt dist-upgrade but it shows following dradis error. What should I do?
    $ sudo apt dist-upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    Setting up dradis (3.6.0-0kali1) ...
    Warning: The home dir /var/lib/dradis you specified already exists.
    The system user `dradis' already exists. Exiting.
    DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from require at /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:91)
    DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from require at /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:91)
    Faraday::Builder is now Faraday::RackBuilder.
    == 1 CreateNodes: migrating ================================================== =
    -- create_table(:nodes, {})
    rails aborted!
    StandardError: An error has occurred, this and all later migrations canceled:

    SQLite3::SQLException: table "nodes" already exists: CREATE TABLE "nodes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type_id" integer, "label" varchar, "parent_id" integer, "created_at" datetime, "updated_at" datetime)
    bin/rails:4:in `require'
    bin/rails:4:in `<main>'
    ActiveRecord::StatementInvalid: SQLite3::SQLException: table "nodes" already exists: CREATE TABLE "nodes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type_id" integer, "label" varchar, "parent_id" integer, "created_at" datetime, "updated_at" datetime)
    bin/rails:4:in `require'
    bin/rails:4:in `<main>'
    SQLite3::SQLException: table "nodes" already exists
    bin/rails:4:in `require'
    bin/rails:4:in `<main>'
    Tasks: TOP => db:migrate
    (See full trace by running task with --trace)
    dpkg: error processing package dradis (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of kali-linux-full:
    kali-linux-full depends on dradis; however:
    Package dradis is not configured yet.

    dpkg: error processing package kali-linux-full (--configure):
    dependency problems - leaving unconfigured

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Location
    in a computer
    Posts
    669
    I'd try uninstalling dradis and reinstalling it from the Kali repos.

  3. #3
    Junior Member
    Join Date
    Aug 2015
    Posts
    19
    If I uninstall dradis then, it will remove kali-linux-full too. Won't that be a problem then?

  4. #4
    Junior Member
    Join Date
    May 2017
    Posts
    1

    Not so much, just put things back where they go. ;)

    Quote Originally Posted by Sagaryal View Post
    If I uninstall dradis then, it will remove kali-linux-full too. Won't that be a problem then?
    I had the same issue... here's how I fixed it:
    First, I figured I'd completely remove dradis (and kali-linux-full), the offending package(s):
    Code:
    apt-get purge dradis
    That doesn't remove the /etc/dradis/ directory, so I backed it up (wasn't necessary, but better to be anal than ass-raped, right?) and obliterated the lil' bastard:
    Code:
    mkdir backup-etc-dradis && rsync -avrX /etc/dradis backup-etc-dradis && rm --recursive  /etc/dradis/
    There's still some residual traces of dradis stuck in the couch cushions and whatnot (e.g. 'dradis' user), but luckily our package manager has a pretty high 'aptitude' to 'get' these sorts of issues and deal with them...
    Code:
    apt-get install kali-linux-full
    Voilą. Ready to roll. Hope this works for ya!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •