package ripgrep (not installed) failed to install/upgrade: trying to overwrite '/usr/.crates2.json', which is also in package bat 0.12.1-1build1

Bug #1932004 reported by Reinis Danne
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
rust-ripgrep (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

It might be related to bug #1868517

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: ripgrep (not installed)
ProcVersionSignature: Ubuntu 5.8.0-55.62~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-55-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.18
AptOrdering:
 ripgrep:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Jun 15 13:32:40 2021
DpkgTerminalLog:
 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
ErrorMessage: trying to overwrite '/usr/.crates2.json', which is also in package bat 0.12.1-1build1
InstallationDate: Installed on 2021-06-07 (7 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.5
SourcePackage: rust-ripgrep
Title: package ripgrep (not installed) failed to install/upgrade: trying to overwrite '/usr/.crates2.json', which is also in package bat 0.12.1-1build1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Reinis Danne (readan2) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in rust-ripgrep (Ubuntu):
status: New → Confirmed
Revision history for this message
Götz Christ (g-christ) wrote :

This is already fixed in Hirsute:
https://packages.ubuntu.com/hirsute/amd64/ripgrep/filelist

Can the fix be backported into the Focal? Which is a LTS version.

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.