升級後 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

相關內容