Closed suciokhan closed 2 years ago
@suciokhan That is strange, probably with sudo , environment variables may be overwritten. Can you try below ?
curl https://deb.packages.mattermost.com/repo-setup.sh -o repo-setup.sh
chmod +x repo-setup.sh
sudo -E ./repo-setup.sh
-or-
curl -o- https://deb.packages.mattermost.com/repo-setup.sh | sudo bash -E
@suciokhan We managed to replicate the case in one scenario. We will update script to handle that case. And meanwhile, Can you check your secure_path
variable in your /etc/sudoers
file? Most likely env_reset
is enabled and secure_path
variable does not contain location of curl
.
First step in the process listed here: https://docs.mattermost.com/install/installing-mattermost-omnibus.html results in an error for me on a fully up-to-date copy of Ubuntu 20.04. I recently removed a standard enterprise edition from my /opt directly via sudo rm -rf mattermost/, if that makes a difference.
I ran this command:
curl -o- https://deb.packages.mattermost.com/repo-setup.sh | sudo bash
and it seemed to not download anything. I tried it multiple times (showed no progress), and switched broke it into 2 steps:This downloaded the file, but when executing the repo-setup.sh script, I get this error:
bash: line 88: curl: command not found
Full execution printout:
Very odd, considering I just used curl to download the file :S
Hoping it was just a non-breaking glitch, I tried running the next step:
sudo apt install mattermost-omnibus
But this results in the following error:
E: Unable to locate package mattermost-omnibus
How do I address this curl command not found issue?