0
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
Errors were encountered while processing:
 /var/cache/apt/archives/ruby-progressbar_1.10.1-1_all.deb
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)
spickermann
  • 100,941
  • 9
  • 101
  • 131
KDR9666
  • 3
  • 1
  • 5

1 Answers1

2

Try the below:

dpkg -i --force-overwrite /var/cache/apt/archives/ruby-progressbar_1.10.1-1_all.deb
apt --fix-broken -f install
Abhirajsinh Thakore
  • 1,806
  • 2
  • 13
  • 23