Erro Exclamation Dradis e DPKG durante o apt dist-upgrade

0

Estou usando a versão mais recente do kali. Depois de executar o sudo apt update , tentei atualizar fazendo sudo apt dist-upgrade , mas ele mostra o seguinte erro dradis . Alguma maneira de resolver isso? Eu também segui todas as respostas dadas neste link , mas não resolvi. Remover dradis removeria kali-linux-full , então eu não tentei.

$ 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
    
por Sagaryal 16.05.2017 / 11:23

1 resposta

0

Eu tive o mesmo problema ... aqui está como consertei:

Primeiro, achei que eu removeria completamente o dradis (e o kali-linux-full), o (s) pacote (s) ofensivo (s):

apt-get purge dradis

Isso não remove o diretório /etc/dradis/ , então fiz o backup (não era necessário, mas é melhor prevenir isso) e destruí o bastardo:

mkdir backup-etc-dradis && rsync -avrX /etc/dradis backup-etc-dradis && rm --recursive  /etc/dradis/

Ainda há alguns traços residuais de dradis presos nas almofadas do sofá e outras coisas (por exemplo, usuário dradis), mas felizmente nosso gerenciador de pacotes tem uma 'aptidão' bem alta para 'pegar' esses tipos de problemas e lidar com eles ...;)

apt-get install kali-linux-full

Voilà. Pronto para rolar. Espero que isso funcione para você!

    
por 17.05.2017 / 06:24