packaging conflict with bat (batcat)
KennethNielsen opened this issue · comments
Kenneth Nielsen commented
Dear hexyl authors
I'm on Ubuntu and wanted to test out this tool, which looks really cool, but when I try to install it via apt I get the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
hexyl
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 254 kB of archives.
After this operation, 697 kB of additional disk space will be used.
Get:1 http://dk.archive.ubuntu.com/ubuntu focal/universe amd64 hexyl amd64 0.6.0-2build1 [254 kB]
Fetched 254 kB in 0s (1,274 kB/s)
Selecting previously unselected package hexyl.
(Reading database ... 275097 files and directories currently installed.)
Preparing to unpack .../hexyl_0.6.0-2build1_amd64.deb ...
Unpacking hexyl (0.6.0-2build1) ...
dpkg: error processing archive /var/cache/apt/archives/hexyl_0.6.0-2build1_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/hexyl_0.6.0-2build1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
As you can see, it seems that your package wants to create a generally named named file /usr/.crates2.json
, which is also present in the bat (batcat) package. I suspect this is an artifact of both being written in and built from rust.
I will create a similar issue on bat (batcat) and cross link them.
Thanks for the tool and any help you may be able to provide.
Kenneth Nielsen commented
The corresponding bat issue is sharkdp/bat#2021
David Peter commented
see #146