sharkdp / hexyl

A command-line hex viewer
Apache License 2.0
8.92k stars 227 forks source link

Installation bug #146

Closed ardalanForoughipour closed 2 years ago

ardalanForoughipour commented 2 years ago

I was trying to install this package on Ubuntu at it was raising this error:

pkg: 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)

After removing bat, the installation was successful. The problem is both software try to create /usr/.crates2.json file. Perhaps writing to /usr/.hexyl/.crates2.json would be a better option. Same for bat

sharkdp commented 2 years ago

Please see https://github.com/sharkdp/bat/issues/938 and https://bugs.launchpad.net/ubuntu/+source/rust-bat/+bug/1868517

ardalanForoughipour commented 2 years ago

Thank you very much for the response and the wonderful tools you have created.