Bat: executable not found after upgrading to ubuntu 20.04

Created on 5 Apr 2020  Â·  4Comments  Â·  Source: sharkdp/bat

What version of bat are you using?
[paste the output of bat --version here]
currently none. before upgrade 0.12

Describe the bug you encountered:
...After upgrading to ubuntu 20.04 bat executable disappeared and this output is generated after running bat
Command 'bat' not found, but can be installed with:

sudo apt install bacula-console-qt

Describe what you expected to happen?
...bat to run without any problem

How did you install bat?
apt-get, homebrew, GitHub release, etc.

---apt-get

[paste the output of info.sh here]

system

$ uname -srm
Linux 5.4.0-21-generic x86_64

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Focal Fossa (development branch)
Release: 20.04
Codename: focal

bat

$ bat --version
./info.sh: line 101: bat: command not found

$ env

bat_config

./info.sh: line 45: bat: command not found

bat_wrapper

No wrapper script.

bat_wrapper_function

No wrapper function.

tool

$ less --version
less 551 (GNU regular expressions)

documentation

Most helpful comment

Just a note, at least in Ubuntu 20.04, the new executable is 'batcat', not 'batbat' as mentioned in the README above. A small typo :)

All 4 comments

Yeah, unfortunately they had to rename the bat binary.

This is documented in the Ubuntu ChangeLog, the package description, the list of files and the README.Debian file:

bat for Debian
==============

In this package the executable and its manpage have been
renamed from ‘bat’ to ‘batcat’ because of a file name clash
with another Debian paclage.

Related issues on the Debian tracker:

Just a note, at least in Ubuntu 20.04, the new executable is 'batcat', not 'batbat' as mentioned in the README above. A small typo :)

uh, yes. that has to be fixed in the Debian package.

@sharkdp , can you edit your first comment? It would save people the "try and error" until they read eugeneromero's comment with the right name.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

issmirnov picture issmirnov  Â·  3Comments

sharkdp picture sharkdp  Â·  3Comments

yum-feng picture yum-feng  Â·  3Comments

jkaan picture jkaan  Â·  3Comments

tbsvttr picture tbsvttr  Â·  3Comments