https://pulumi.com logo
#general
Title
# general
c

cuddly-magician-97620

07/10/2023, 1:16 PM
Hello, Any ideas why Pulumi install script does not seem to work on Ubuntu 22.04 LTS?
Copy code
$ curl -sSL <https://get.pulumi.com> | sh
=== Upgrading Pulumi v3.73.0 to v3.74.0 ===
+ Downloading <https://get.pulumi.com/releases/sdk/pulumi-v3.74.0-linux-x64.tar.gz>...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  136M  100  136M    0     0  34.3M      0  0:00:03  0:00:03 --:--:-- 34.3M
+ Extracting to /home/lech/.pulumi/bin

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

We're sorry, but it looks like something might have gone wrong during installation.
If you need help, please join us on <https://slack.pulumi.com/>
Worse than that, once I have installed manually from backup (setting up new laptop), and then run the script to update, the script has wiped out my existing install...
Copy code
$ pulumi version
bash: /home/lech/.pulumi/bin/pulumi: No such file or directory
s

salmon-account-74572

07/10/2023, 2:44 PM
That sounds like a bug! Would you mind opening an issue on the Pulumi GitHub repo (pulumi/pulumi)?
Actually, before filing the issue can you try
curl -fsSL <https://get.pulumi.com> | sh
(add the
-f
parameter to your
curl
command)?
e

echoing-dinner-19531

07/10/2023, 2:58 PM
-f
just changes the fail mode, the worrying thing here is "gzip: stdin: unexpected end of file". This looks just like https://github.com/pulumi/pulumi/issues/9660. I suspect you have curl installed via snap, and that seems to have issues writing to /tmp which the install script uses.
s

salmon-account-74572

07/10/2023, 3:05 PM
Thanks @echoing-dinner-19531!
c

cuddly-magician-97620

07/10/2023, 4:50 PM
Yes, I have installed curl with snap, because it was showing later version than apt... 🙃 Thanks @echoing-dinner-19531!
2 Views