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

Unable to update / install ddev 1.23.0 alpha on Ubuntu 20.04 #6046

Closed
1 task done
nlighteneddesign opened this issue Apr 4, 2024 · 13 comments
Closed
1 task done

Unable to update / install ddev 1.23.0 alpha on Ubuntu 20.04 #6046

nlighteneddesign opened this issue Apr 4, 2024 · 13 comments
Milestone

Comments

@nlighteneddesign
Copy link

nlighteneddesign commented Apr 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Output of ddev debug test

Expand `ddev debug test` diagnostic information
[COPY-PASTE HERE THE OUTPUT OF `ddev debug test`]

Expected Behavior

I should be able to install or update ddev. ( I had previously been using ddev, but needed to update it to support php 8.3

I tried manually installing the latest and using the .deb

Actual Behavior

ddev --version
ddev: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by ddev) ddev: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by ddev)

Steps To Reproduce

I am on Ubuntu 20.04

Anything else?

No response

@nlighteneddesign nlighteneddesign changed the title Unable to update / install ddev on Ubuntu 22.04 Unable to update / install ddev 1.23.0 alpha on Ubuntu 22.04 Apr 4, 2024
@nlighteneddesign
Copy link
Author

1.22.7 installs just fine on my machine.

@rfay
Copy link
Member

rfay commented Apr 4, 2024

Could you please say how you are installing it? Did you download the .deb ?

@rfay
Copy link
Member

rfay commented Apr 4, 2024

I was able to install using the deb on Gitpod (Ubuntu 22.04, amd64):

gitpod /workspace/xhprof (master) $ sudo dpkg -i ./ddev_1.23.0-alpha1_linux_amd64.deb 
(Reading database ... 51156 files and directories currently installed.)
Preparing to unpack .../ddev_1.23.0-alpha1_linux_amd64.deb ...
Unpacking ddev (1.23.0~alpha1) over (1.23.0~alpha1) ...
Setting up ddev (1.23.0~alpha1) ...
gitpod /workspace/xhprof (master) $ which ddev
/usr/bin/ddev
gitpod /workspace/xhprof (master) $ ddev --version
ddev version v1.23.0-alpha1
gitpod /workspace/xhprof (master) $ 

I was also able to install the binary (tarball):

$ curl -LO https://github.com/ddev/ddev/releases/download/v1.23.0-alpha1/ddev_linux-amd64.v1.23.0-alpha1.tar.gz
  % 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 13.3M  100 13.3M    0     0  18.5M      0 --:--:-- --:--:-- --:--:-- 18.5M
gitpod /workspace/xhprof (master) $ tar -zxf ddev_linux-amd64.v1.23.0-alpha1.tar.gz 
gitpod /workspace/xhprof (master) $ ./ddev --version
ddev version v1.23.0-alpha1

Please let me know exactly what you did. Is it possible you installed the arm64 version of DDEV on an amd64 computer (most are amd64)?

@nlighteneddesign
Copy link
Author

nlighteneddesign commented Apr 4, 2024

The first thing I did was download this release: ddev_linux-amd64.v1.23.0-alpha1 (AMD not ARM)
Then I extracted it
Then I copied the ddev file to /usr/local/bin/ddev

Then I tried running ddev --version and received the error I posted

I then tried installing it with the .deb, that threw the same error.
I uninstalled the .deb version then downloaded 1.22.7 from releases, extracted it and moved ddev to /usr/local/bin/ddev and ddev works.

@nlighteneddesign
Copy link
Author

Actually I apologize, I just realized my laptop is actually on ubuntu 20.04, not 22.04

@nlighteneddesign nlighteneddesign changed the title Unable to update / install ddev 1.23.0 alpha on Ubuntu 22.04 Unable to update / install ddev 1.23.0 alpha on Ubuntu 20.04 Apr 4, 2024
@rfay
Copy link
Member

rfay commented Apr 4, 2024

I will take a look at Ubuntu 20.04.

@rfay
Copy link
Member

rfay commented Apr 4, 2024

Thank you very much @nlighteneddesign , I'm able to recreate this on Ubuntu 20.04. It's a critical failure in the build I guess (CGO_ENABLED must be being set to 1)

The ddev binary should not have any dependencies anywhere, and apparently this build got dependencies, which is only supposed to happen when we're checking for races.

If I just do a make on Ubuntu 20.04, I get a binary that runs, but if I download the one from the release, it fails as you show.

@rfay rfay added this to the v1.23.0 milestone Apr 4, 2024
@rfay
Copy link
Member

rfay commented Apr 4, 2024

And thanks for testing!

@rfay
Copy link
Member

rfay commented Apr 4, 2024

Here's one way we can detect and test after build whether CGO was inappropriately enabled:

@rfay
Copy link
Member

rfay commented Apr 4, 2024

The build shows it having been done with CGO_ENABLED=0, https://github.com/ddev/ddev/actions/runs/8437362553/job/23106996344#step:7:26

@rfay
Copy link
Member

rfay commented Apr 4, 2024

Thanks so much for reporting this @nlighteneddesign - it saved us a lot of heartache.

And thanks for testing the pre-releases!

Please test the assets in https://github.com/ddev/ddev/releases/tag/v1.23.0-beta1 and let us know how it goes.

@rfay
Copy link
Member

rfay commented Apr 4, 2024

Oh, didn't realize you were really @nicxvan, HI!

@nlighteneddesign
Copy link
Author

Yep, that's me, HI!

This is my business account so most Github issues get filed under this account.
I've tested and confirmed that the beta works on Ubuntu 20.04 now.
Now I need to update my laptop since 20.04 is getting a bit old!

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

2 participants