Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL: Ubuntu 20.04: Broken install for git 2.45.2.vfs.0.2 - missing libc dependency on clean install #672

Open
1 task done
kyle-rader-msft opened this issue Jul 11, 2024 · 6 comments

Comments

@kyle-rader-msft
Copy link

Setup

From following the Ubuntu install direction from the README:

❯ curl -s https://api.github.com/repos/microsoft/git/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
| xargs -I 'url' curl -L -o msft-git.deb 'url'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 65.4M  100 65.4M    0     0  35.7M      0  0:00:01  0:00:01 --:--:-- 67.7M

~ took 2s
❯ debsig-verify msft-git.deb
debsig: Verified package from 'Microsoft Git public key' (Microsoft Git)

~
❯ sudo dpkg -i msft-git.deb
(Reading database ... 49467 files and directories currently installed.)
Preparing to unpack msft-git.deb ...
Unpacking microsoft-git (2.45.2.vfs.0.2) over (2.40.1.vfs.0.2) ...
Setting up microsoft-git (2.45.2.vfs.0.2) ...
Processing triggers for man-db (2.9.1-1) ...

~ took 8s
❯ which git
/usr/local/bin/git

~
❯ git --version
git: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by git)
git: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by git)
git: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by git)
$ git --version --build-options

** Same errror **

Are you using Scalar or VFS for Git?

No - I want to scalar clone, for sparse-checkout ad background maintenance.

If VFS for Git, then what version?

$ gvfs version

** NA **
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

** Microsoft Windows [Version 10.0.22631.3880] **

❯ uname -a
Linux *** 5.15.153.1-microsoft-standard-WSL2 *** x86_64 x86_64 x86_64 GNU/Linux

Details

  • Windows Terminal > WSL2 > Ubuntu 20.04
@kyle-rader-msft
Copy link
Author

From some perusing, this problem is rooted in the fact that the latest git was likely compiled on Ubuntu or 22.04 against the newer glibc 2.32-2.34, and therfore won't run on Ubuntu 20.04 which doesn't have those newer glibc libraries by default nor are they installable via apt.

If the git build were to build against the older version, I think it would still be easy to use on Ubuntu 20.04.

@kyle-rader-msft
Copy link
Author

If Ubuntu 20.04 is considered an "Older distibution" at this point, it would be helpful to note that up front in the install docs.

@derrickstolee
Copy link

If Ubuntu 20.04 is considered an "Older distibution" at this point, it would be helpful to note that up front in the install docs.

This should in fact be updated in the install docs. I believe that Ubuntu 20.04 is approaching end-of-life as far as GitHub Actions is concerned. The ubuntu-latest image is on 22.04 (we use this image), though I can't track down when it switched.

@mjcheetham
Copy link
Member

mjcheetham commented Jul 11, 2024

though I can't track down when it switched.

ubuntu-latest, according to the public docs, switched to ubuntu-22.04 in actions/runner-images@9c544f4 (2022-15-15)

Part of actions/runner-images#6399. Not sure when the actual image switch happened.

@kyle-rader-msft
Copy link
Author

Thanks for the confirmation, I can open a PR today!

@dscho
Copy link
Member

dscho commented Jul 15, 2024

According to https://endoflife.date/ubuntu, Ubuntu 20.04 has only 8 more months of maintenance releases. So yes, I agree that we should upgrade the requirements to 22.04.

dscho added a commit that referenced this issue Jul 16, 2024
Address #672 

This updates the docs to move forward the "older" version of Ubuntu to
20.04.

Reading the `INSTALL` file from the git source does cover dependencies
in detail but it doesn't call out the actual libs for those on a
specific distro.

I've added a shortlist of `apt` libraries that are likely needed to
build Git from source on Ubuntu 20.04, sourced originally from
https://www.digitalocean.com/community/tutorials/how-to-install-git-from-source-on-ubuntu-20-04-quickstart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants