hashicorp / hc-install

Go module for downloading or locating HashiCorp binaries, verifying signatures and checksums, and asserting version constraints.

Home Page:https://pkg.go.dev/github.com/hashicorp/hc-install

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debian Bullseye package fails with glibc errors

sspans-sbp opened this issue · comments

Not sure if this should be reported here, but perhaps the correct people could be notified.

I tried to install hc-install on debian bullseye using the official apt repositories but the installed binary fails with GLIBC warnings.
Should be easy to reproduce by following the steps at https://www.hashicorp.com/official-packaging-guide

root@fd290df26c43:~# apt install hc-install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  hc-install
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 3334 kB of archives.
After this operation, 7524 kB of additional disk space will be used.
Get:1 https://apt.releases.hashicorp.com bullseye/main amd64 hc-install amd64 0.5.0-1 [3334 kB]
Fetched 3334 kB in 2s (1339 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package hc-install.
(Reading database ... 14331 files and directories currently installed.)
Preparing to unpack .../hc-install_0.5.0-1_amd64.deb ...
Unpacking hc-install (0.5.0-1) ...
Setting up hc-install (0.5.0-1) ...
root@fd290df26c43:~# hc-install terraform
hc-install: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by hc-install)
hc-install: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by hc-install)
root@fd290df26c43:~# cat /etc/debian_version
11.6
commented

Thanks, if this is still happening please could you do a quick test to see whether this happens with Terraform v1.4.2?

commented

hc-install -version 1.4.2 terraform

commented

We've just released a new version of hc-install - v0.5.1. I think this should fix the issue.

The version from releases.hashicorp.com does work now:

root@f3349715b1cc:~# curl -o bla.zip https://releases.hashicorp.com/hc-install/0.5.1/hc-install_0.5.1_linux_amd64.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3233k  100 3233k    0     0  1972k      0  0:00:01  0:00:01 --:--:-- 1971k
root@f3349715b1cc:~# unzip bla.zip
Archive:  bla.zip
  inflating: hc-install
root@f3349715b1cc:~# ./hc-install install --version 1.4.2  terraform
hc-install: will install terraform@1.4.2

But that version does not yet seem to be available via apt:

root@f3349715b1cc:~# apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://apt.releases.hashicorp.com bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@f3349715b1cc:~# apt install hc-install=0.5.1-1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Version '0.5.1-1' for 'hc-install' was not found
root@f3349715b1cc:~# apt-cache show hc-install
Package: hc-install
Version: 0.5.0-1
Section:
Priority: optional
Architecture: amd64
Maintainer: HashiCorp
Installed-Size: 7348
Depends: openssl
Homepage: https://github.com/hashicorp/hc-install
Description: hc-install CLI allows installing multiple versions of HashiCorp products in automation
Description-md5: 73df9a1c359cce8f34721cb79241bd76
Filename: pool/amd64/main/hc-install_0.5.0-1_amd64.deb
SHA1: 0462e4edbcd85e2ebaf07e504562e508494d41e4
SHA256: a75445a53f51d6ec46d506821ffd909013eba5d448e7717744ad0e372d20e9de
Size: 3334464
commented

Thanks. It should reach apt in the next hour or so, if not already.

Works for me now, thank you!