Я использую последнюю версию kali Rolling. После выполнения sudo apt update я попытался выполнить обновление, выполнив sudo apt dist-upgrade , но он показывает следующую ошибку dradis . Есть способы решить эту проблему? Я также следил за всеми ответами, приведенными в этой ссылке , но не решил. Удаление dradis приведет к удалению kali-linux-full , поэтому я не пробовал.
$ 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 `'
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 `'
SQLite3::SQLException: table "nodes" already exists
bin/rails:4:in `require'
bin/rails:4:in `'
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
Во-первых, я решил полностью удалить dradis (и kali-linux-full), проблемный пакет( s):
apt-get purge dradis
Это не удаляет каталог /etc/dradis/
, поэтому я сделал его резервную копию (не было необходимости, но лучше перестраховаться, извините) и уничтожил маленького ублюдка:
mkdir backup-etc-dradis && rsync -avrX /etc/dradis backup-etc-dradis && rm --recursive /etc/dradis/
Все еще есть некоторые остаточные следы dradis, застрявшие в подушках дивана, и еще что-то (например, пользователь «dradis»), но, к счастью, наш менеджер пакетов имеет довольно высокую «способность» «получать» такого рода проблемы и решать их. .. ;)
apt-get install kali-linux-full