rust-bat won't install alongside ripgrep due to file conflict

Bug #1888482 reported by Howard Houzuo Guo
This bug report is a duplicate of:  Bug #1868517: Stray /usr/.crates2.json file. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rust-bat (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello! I'm trying to use rust-bat together with ripgrep, but both of them cannot be installed altogether, this happens:

Preparing to unpack .../bat_0.12.1-1build1_amd64.deb ...
Unpacking bat (0.12.1-1build1) ...
dpkg: error processing archive /var/cache/apt/archives/bat_0.12.1-1build1_amd64.deb (--unpack):
 trying to overwrite '/usr/.crates2.json', which is also in package ripgrep 11.0.2-1build1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/bat_0.12.1-1build1_amd64.deb

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: bat (not installed)
ProcVersionSignature: Microsoft 4.4.0-18362.836-Microsoft 4.4.35
Uname: Linux 4.4.0-18362-Microsoft x86_64
ApportVersion: 2.20.11-0ubuntu27.4
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Jul 22 12:48:44 2020
ProcEnviron:
 LANGUAGE=en_GB.UTF-8
 TERM=tmux-256color
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/usr/bin/fish
SourcePackage: rust-bat
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Howard Houzuo Guo (guohouzuo) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rust-bat (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.