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

Bug #1899865 reported by Matthew Cole
This bug report is a duplicate of:  Bug #1868517: Stray /usr/.crates2.json file. Edit Remove
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rust-ripgrep (Ubuntu)
New
Undecided
Unassigned

Bug Description

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-48 linux-headers-5.4.0-48-generic
  linux-image-5.4.0-48-generic linux-modules-5.4.0-48-generic
  linux-modules-extra-5.4.0-48-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  ripgrep
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,228 kB of archives.
After this operation, 4,502 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 ripgrep amd64 11.0.2-1build1 [1,228 kB]
Fetched 1,228 kB in 0s (7,464 kB/s)
Selecting previously unselected package ripgrep.
(Reading database ... 219750 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)

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: ripgrep 11.0.2
ProcVersionSignature: Ubuntu 5.4.0-7642.46~1598628707~20.04~040157c~dev-generic 5.4.44
Uname: Linux 5.4.0-7642-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
AptOrdering:
 ripgrep:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Oct 14 22:40:38 2020
Dependencies:

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
DuplicateSignature:
 package:ripgrep:11.0.2
 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 2020-10-13 (1 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
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.2ubuntu0.1
SourcePackage: ripgrep
Title: package ripgrep 11.0.2 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
Matthew Cole (mcole8) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1868517, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

affects: ripgrep (Ubuntu) → rust-ripgrep (Ubuntu)
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.