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 #1903405 reported by Zachariah Hayes
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
ripgrep (Ubuntu)
New
Undecided
Unassigned

Bug Description

Dupe of https://bugs.launchpad.net/ubuntu/+source/rust-bat/+bug/1868517

$ date
Sun 11 Oct 2020 01:38:28 PM PDT

$ sudo apt update
...
Fetched 1,404 kB in 1s (1,056 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get install ripgrep
[sudo] password for zachariah:
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 ... 445348 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)

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

$ apt --version
apt 2.0.2ubuntu0.1 (amd64)

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: ripgrep 11.0.2
ProcVersionSignature: Ubuntu 5.4.0-52.57-generic 5.4.65
Uname: Linux 5.4.0-52-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.10
AptOrdering:
 ripgrep:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: skip
Date: Sat Nov 7 06:03:17 2020
Dependencies:

DpkgTerminalLog:
 Preparing to unpack .../ripgrep_11.0.2-1build1_amd64.deb ...
 Unpacking ripgrep (11.0.2-1build1) over (11.0.2) ...
 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) over (11.0.2) ...
 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-08-09 (90 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
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
Zachariah Hayes (zhayes) wrote :
tags: removed: need-duplicate-check
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.