Ripgrep: Ubuntu 20.04 conflict with bat (apt)

Created on 27 Apr 2020  Â·  3Comments  Â·  Source: BurntSushi/ripgrep

How did you install ripgrep?

Ubuntu apt

What operating system are you using ripgrep on?

Ubuntu 20.04

Describe your bug.

Ripgrep has a conflict with bat (https://github.com/sharkdp/bat) while installing from apt reposotiry.

What are the steps to reproduce the behavior?

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)
invalid

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

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andschwa picture andschwa  Â·  3Comments

davidtwco picture davidtwco  Â·  3Comments

kenorb picture kenorb  Â·  3Comments

crumblingstatue picture crumblingstatue  Â·  3Comments

bastienbc picture bastienbc  Â·  3Comments