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)
Asked
Active
Viewed 2,554 times
0

spickermann
- 100,941
- 9
- 101
- 131

KDR9666
- 3
- 1
- 5
-
Where is the above error coming from? A log file or the command line? What command did you run? – spickermann Feb 25 '20 at 10:27
-
sudo apt --fix-broken install – KDR9666 Feb 26 '20 at 08:11
-
I would try to deinstall the `ruby-progressbar` gem and reinstall it before running the command you actually want to run. – spickermann Feb 26 '20 at 08:17
-
could you please tell me steps – KDR9666 Feb 26 '20 at 10:01
1 Answers
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

codemonster
- 21
- 1