pyenv / pyenv-installer

This tool is used to install `pyenv` and friends.
MIT License
3.96k stars 428 forks source link

Failed to git clone https://github.com/pyenv/pyenv-installer.git #130

Closed ddobrinskiy-bc closed 11 months ago

ddobrinskiy-bc commented 2 years ago

Hi, I'm running the install script on my remote Debian 9.9 (stretch) server

when I run curl https://pyenv.run | bash, pyenv-doctor gets installed, but pyenv-installer fails:

user@remote_server:~$ curl https://pyenv.run | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   270  100   270    0     0    688      0 --:--:-- --:--:-- --:--:--   687
Cloning into '/home/ddobrinskiy/.pyenv'...
remote: Enumerating objects: 916, done.
remote: Counting objects: 100% (916/916), done.
remote: Compressing objects: 100% (458/458), done.
remote: Total 916 (delta 521), reused 590 (delta 351), pack-reused 0
Receiving objects: 100% (916/916), 474.92 KiB | 0 bytes/s, done.
Resolving deltas: 100% (521/521), done.
Checking out files: 100% (898/898), done.
Cloning into '/home/ddobrinskiy/.pyenv/plugins/pyenv-doctor'...
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 11 (delta 1), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
Cloning into '/home/ddobrinskiy/.pyenv/plugins/pyenv-installer'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 16 (delta 1), reused 8 (delta 0), pack-reused 0
Unpacking objects: 100% (16/16), done.
fatal: missing blob object '03cc13c3e36ac727eef4d3ffd3c8ed608735f1f3'
fatal: remote did not send all necessary objects
Failed to git clone https://github.com/pyenv/pyenv-installer.git

I suspect this is related by a missing object in git, not sure how to debug though

fatal: missing blob object '03cc13c3e36ac727eef4d3ffd3c8ed608735f1f3'

IMXENON commented 1 year ago

Hi, I also encountered this problem. Have you already known its solution?

aryan-bhokare commented 11 months ago

curl pyenv.run | bash this command creates an issue in installation.

native-api commented 11 months ago

http://pyenv.run works as expected:

$ curl pyenv.run
#!/bin/bash
#
# Usage: curl https://pyenv.run | bash
#
# For more info, visit: https://github.com/pyenv/pyenv-installer
#
index_main() {
    set -e
    curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
}

index_main