Ubuntu apt
Ubuntu 20.04
Ripgrep has a conflict with bat (https://github.com/sharkdp/bat) while installing from apt reposotiry.
sudo apt install ripgrep
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ripgrep
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1 228 kB of archives.
After this operation, 4 502 kB of additional disk space will be used.
(Reading database ... 156191 files and directories currently installed.)
Preparing to unpack .../ripgrep_11.0.2-1build1_amd64.deb ...
Unpacking ripgrep (11.0.2-1build1) ...
dpkg: error processing archive /var/cache/apt/archives/ripgrep_11.0.2-1build1_amd64.deb (--unpack):
trying to overwrite '/usr/.crates2.json', which is also in package bat 0.12.1-1build1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/ripgrep_11.0.2-1build1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks for reporting this, but you need to report it with the package maintainers downstream. I do not maintain the Ubuntu packages.
For reference and people, like me, arriving here. The packager is dealing with this bug here: https://bugs.launchpad.net/ubuntu/+source/rust-bat/+bug/1868517
If someone still sees this after upgrading to 20.04, you can try the workaround suggested here:
https://bugs.launchpad.net/ubuntu/+source/rust-bat/+bug/1868517/comments/32
Most helpful comment
If someone still sees this after upgrading to 20.04, you can try the workaround suggested here:
https://bugs.launchpad.net/ubuntu/+source/rust-bat/+bug/1868517/comments/32