gauge icon indicating copy to clipboard operation
gauge copied to clipboard

Cannot install in Ubuntu 22

Open Jabrwock opened this issue 1 year ago • 1 comments

Describe the bug Cannot install in Ubuntu 22, mktemp succeeds but directory is non-writable

To Reproduce Steps (or project) to reproduce the behavior:

  1. Follow installation instructions for Linux at https://docs.gauge.org/getting_started/installing-gauge.html?os=linux&language=python&ide=vscode
$ sudo curl -SsL https://downloads.gauge.org/stable | sh

Logs

Downloading binary from URL: https://github.com/getgauge/gauge/releases/download/v1.4.3/gauge-1.4.3-linux.x86_64.zip to /tmp/tmp.8LUXhdFX4o
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Warning: Failed to open the file ./gauge.zip: Permission denied
  0 8982k    0  8259    0     0  12107      0  0:12:39 --:--:--  0:12:39 12107
curl: (23) Failure writing output to destination
command failed: curl -L -o ./gauge.zip https://github.com/getgauge/gauge/releases/download/v1.4.3/gauge-1.4.3-linux.x86_64.zip

Expected behavior Gauge installer downloads to /tmp/ directory created by mktemp

  • OS Ubuntu 22.04.2 LTS

Additional context

Suspect Ubuntu protections for /tmp (introduced in Ubuntu 20) block the script from using that directory (even by sudo) to store temp files.

Jabrwock avatar Jun 13 '23 18:06 Jabrwock

I am on popOS (an ubuntu based distro) and here is what I see:

$ sudo curl -SsL https://downloads.gauge.org/stable | sh
[sudo] password for steam: 
Downloading binary from URL: https://github.com/getgauge/gauge/releases/download/v1.4.3/gauge-1.4.3-linux.x86_64.zip
  % 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 8982k  100 8982k    0     0  2524k      0  0:00:03  0:00:03 --:--:-- 4194k
You do not have write permision for /usr/local/bin. Trying with sudo.
Downloaded the binary to '/usr/local/bin'.
Make sure the above path is available in 'PATH' environment variable.
$ gauge -v
Gauge version: 1.4.3
Commit Hash: f98dd40

Plugins
-------
dotnet (0.5.0)
html-report (4.2.0)
java (0.9.1)
js (2.4.0)
json-report (0.3.7)
python (0.3.17)
screenshot (0.1.0)
spectacle (0.1.4)
ts (0.1.0)
steam@pop-os:~$ lsb
lsblk        lsb_release  
steam@pop-os:~$ lsb
lsblk        lsb_release  
$ lsb_release -a
LSB Version:	core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID:	Pop
Description:	Pop!_OS 22.04 LTS
Release:	22.04
Codename:	jammy

sriv avatar Jun 14 '23 04:06 sriv

I tried with raw Ubuntu 22.0.4 and can't replicate a problem here. Will close this. We can re-open if you can provide more specific replication instructions.

chadlwilson avatar Feb 20 '24 15:02 chadlwilson