exa icon indicating copy to clipboard operation
exa copied to clipboard

exa on ubuntu 21.10 (v0.10.1) has git support disabled

Open pjroth opened this issue 2 years ago • 23 comments

When I upgraded from ubuntu from 21.04 to 21.10 and exa --git stopped working. I now get the following error:

$ exa --git
exa: Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa

OS: Ubuntu 21.10 Version:

$ exa --version
exa - list files on the command-line
v0.10.1 [-git]
https://the.exa.website/

Thank you for this great tool!

pjroth avatar Nov 16 '21 03:11 pjroth

Perhaps same issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993768

pjroth avatar Nov 16 '21 04:11 pjroth

Still not resolved ?

DanBrown47 avatar Jan 09 '22 14:01 DanBrown47

nope!

DexterHaxxor avatar Feb 08 '22 14:02 DexterHaxxor

Right now I'm using "exa" 0.9 version. Installed by cargo and added by PATH variable for bin-files (export PATH="/home/username/.cargo/bin:$PATH"):

sudo apt  install cargo
cargo install --vers 0.9.0 exa

Maybe next version (over 0.10.1) will build with git support, I'm using exa only for this.

JSchatten avatar Feb 08 '22 23:02 JSchatten

Interestingly enough I installed latest version with cargo instead of apt and everything works fine

Antonio-Bennett avatar Feb 15 '22 22:02 Antonio-Bennett

Yeah Ubuntu builds exa with git support disabled because of some problem they had (or at least it was the case before, not sure if it’s still the case). I’m not gonna close this right away, so that people can see this issue until it’s solved upstream, but really you need to check if it’s fixed on recent versions of Ubuntu, then complain to Ubuntu if it’s still the case, because it’s an Ubuntu issue which I know nothing about (though it would be useful if I had more info about why it was disabled in the first place…).

Anyways just install exa in another way, see e.g. here: https://github.com/ogham/exa/issues/917#issuecomment-886219637

ariasuni avatar Mar 17 '22 19:03 ariasuni

Still an issue on Ubuntu 22.04 FYI.

Crocmagnon avatar Jul 10 '22 07:07 Crocmagnon

Same with Ubuntu 22.04.1 LTS ...

seebi avatar Sep 27 '22 14:09 seebi

I've clone git repo of exa (master branch), build by cargo and git function is enable by default ($exa -Glh --git). It's all fine. upd: johann:~$ exa --version exa - list files on the command-line v0.10.1 [+git]

JSchatten avatar Sep 28 '22 17:09 JSchatten

Same problem with --git & --git-ignore on wsl2 (kernel: Ubuntu 22.04.1 LTS). When I run the command on zsh terminal, it prints out:

$ ~ which exa && exa --version
/usr/bin/exa
exa - list files on the command-line
v0.10.1 [-git]
https://the.exa.website/

I have install exa from Ubuntu apt store via sudo apt install --upgrade exa.

TruongNhanNguyen avatar Sep 29 '22 09:09 TruongNhanNguyen

This also happened on my PopOS.

tea0112 avatar Oct 20 '22 06:10 tea0112

Issue on Pop_Os!

tdelam avatar Oct 26 '22 13:10 tdelam

I had the same issue and solved it by using cargo to install exa instead, somehow cargo will always re-build the binary before installing it, so the Git integration will be added during the build. I am using WSL2 with ubuntu 22.04 btw.

xidameng avatar Oct 29 '22 02:10 xidameng

This isn’t very useful to post here information we already have (that exa on Ubuntu has git support disabled on 22.04).

This is a Debian problem (because, in short, Ubuntu uses the Debian package), I’m reposting the link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993768

Please send a nice message there, or to Ubuntu, if you want to let them know this is a issue you care about (I don’t really have the time, personally).

Also, I wrote about instructions to install exa from other sources (with git enabled): https://github.com/ogham/exa/issues/978#issuecomment-1071315254

ariasuni avatar Nov 07 '22 15:11 ariasuni

hi, i got the same problem, i use sudo apt install exa and i have just remove it and install it with brew. it working now (just for someone who have the same problem)

ryannewcomer avatar Jan 03 '23 15:01 ryannewcomer

@ariasuni the debian issue you linked to seems to be fixed with 0.10.1-3, but on Ubuntu 22.04.1 there's still 0.10.1-2.

Do we wait for ubuntu to catch up, or do we need to do something to make the bump happen?

shalak avatar Jan 22 '23 21:01 shalak

If anyone is still facing this issue, just pull the repo locally, and install it from there.

cargo install --path . --all-features

bayou-brogrammer avatar Feb 26 '23 01:02 bayou-brogrammer

@shalak I don’t know and don’t have the time (at least right now) to learn how Ubuntu works. exa is probably in the category of packages which never gets upgraded after release, except if it’s a security issue.

ariasuni avatar Feb 28 '23 10:02 ariasuni

Ubuntu is not ArchLinux. It doesn't have rolling upgrades. So someone has to green light it. While it's possible to ping someone to remind them to include it in the next release, it probably take the time at least to the next release.

Here is the official package link for 22.10: https://packages.ubuntu.com/kinetic/exa

Robert-Ernst avatar Mar 05 '23 14:03 Robert-Ernst

If you're like me and really want exa --git in Ubuntu, just install Rust and its package manager. The Rust installation is pretty straightforward, defaults are good, no headache.

# Uninstall the APT package if present
sudo apt remove exa

# Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Install exa
cargo install exa

pabloqpacin avatar Apr 14 '23 14:04 pabloqpacin

I believe that this issue is more specifically with Ubuntu's upstream Debian. I had the same issue with Armbian OS which to my knowledge is based on Debian specifically.

$ exa --version
exa - list files on the command-line
v0.10.1 [-git]
https://the.exa.website/
$ uname -a
Linux orangepi3-lts 5.15.93-sunxi64 #23.02.2 SMP Fri Feb 17 23:48:38 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Uninstalling through Apt and installing through cargo worked for me.

Thanks @pabloqpacin for the guide!

Trevo525 avatar May 23 '23 19:05 Trevo525

Well, I think this topic should be closed because the solution to the problem is all given.

TruongNhanNguyen avatar Jun 01 '23 03:06 TruongNhanNguyen

On Ubuntu 22.04.2 LTS (and probably others), cargo can also be installed using apt or apt-get normally. E.g.,

apt-get install cargo

mhucka avatar Jun 03 '23 02:06 mhucka