升级后 kali linux 上的 kali 主题和 ruby​​ 进度条错误

升级后 kali linux 上的 kali 主题和 ruby​​ 进度条错误

当我尝试将 kali linux 升级到 2020 版本时,它总是返回错误代码:

dpkg: error processing archive /var/cache/apt/archives/kali-themes_2020.2.1_all.deb (--unpack):
dpkg: error processing archive /var/cache/apt/archives/ruby-progressbar_1.10.1-1_all.deb (--unpack): 
trying to overwrite '/usr/lib/ruby/vendor_ruby/ruby-progressbar/base.rb' which is also in package ruby-ruby-progressbar 1.6.0-0kali1
E: Sub-process /usr/bin/dpgk returned with error code (1)

当我完成 sudo dpkg --configure -a 时,它说:

**dpkg**: dependency problems prevent configuration of ruby-cms-scanner:
ruby-cms-scanner depends on ruby-progressbar (>=1.9.0); however:
pacakge ruby-progressbar is not installed

**dpkg**: error processing package ruby-cms-scanner(--configure):
dependency problems - leaving unconfigured

**dpkg**: dependency problems prevent configuration of gnome-theme-kali:
gnome-theme-kali depends on kali-themes; however:
package kali-themes is not installed.

**dpkg**: error processing package gnome-theme-kali (--configure):
dependency problems - leaving unconfigured

**dpkg**: dependency problems prevent configuration of wpscan:
wpscan depends on ruby-cms-scanner; however:
package ruby-cms-scanner is not configured yet.

**dpkg**: error processing package wpscan (--configure):
dependency problem - leaving unconfigured

    errors were encountered while processing:
    ruby-cms-scanner
    gnome-theme-kali
    wpscan

我尝试过: sudo apt-get install -f sudo apt-get autoclean sudo apt-get install aptitude(不知何故我无法安装它) sudo apt-get -u dist-upgrade

我什至无法清除或删除主题

我应该怎么办?我也使用 Virtual Box 来运行我的 Kali。请逐步告诉我如何解决此错误。

答案1

我有完全相同的事情,运行:

sudo dpkg -P ruby-ruby-progressbar

然后继续安装:

sudo apt --fix-broken install -y

相关内容