나는 kali를 사용하여 최신 버전을 굴리고 있습니다. 공연 후sudo 적절한 업데이트, 다음을 수행하여 업그레이드를 시도했습니다.sudo apt dist-업그레이드그러나 그것은 다음을 보여줍니다드라디스실수. 이 문제를 해결할 방법이 있나요? 나는 또한 이것에 주어진 모든 답변을 따랐습니다.협회그러나 해결책이 없습니다. 제거하다드라디스삭제됩니다칼리리눅스완성, 그래서 시도하지 않았습니다.
$ 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
답변1
나는 같은 문제가 있었습니다...이렇게 해결했습니다.
먼저 문제의 패키지인 dradis(및 kali-linux-full)를 완전히 제거해야 한다고 생각했습니다.
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