One issue is that the second half of the piped command, sudo bash only work if the shell is already authorized for shell. So if you did a sudo apt update (or any other sudo command) before, it will work, if not it will stall, the sudo password request might not be immediately obvious.
Once this hurdle has been overcome, you will still get an error,
Err:15 https://deb.packages.mattermost.com stable InRelease
The following signatures were invalid: EXPKEYSIG F8F2C31744774B28 Mattermost Build <dev-ops@mattermost.com>
According to this forum post It seems the command is truncated and actually it should be curl -o- https://deb.packages.mattermost.com/repo-setup.sh | sudo bash -s mattermost but this fails for 24.04 with the ERROR: Unsupported ubuntu release: "noble"
Will the invalid signature be fixed and will there be an release for 24.04 LTS anytime soon?
Hello @mxa ! I can confirm our repository doesn’t support Ubuntu 24.04 yet, but we plan to work on it very soon.
Regarding the signing key, it has been renewed recently. The setup script should’ve downloaded the new one automatically on a supported OS, but since it was run on Ubuntu 24.04 that step was skipped. I’ll let you know as soon as we add support for Ubuntu Noble.
edit: clarified that it’s only the repository that’s not working, not the desktop app itself
Hello @mxa, thank you for all the feedback! I had a chance to test the Desktop installation instructions, and I’ve verified that they actually work on Ubuntu 24.04 already.
The reason it didn’t work for you is because you used the https://deb.packages.mattermost.com/repo-setup.sh script, which sets up the repo for the Mattermost Server (this repo indeed doesn’t support Ubuntu Noble as of today).
The Desktop client setup instructions run the https://deb.packages.mattermost.com/setup-repo.sh script instead, notice that setup and repo are swapped.
This actually confused me as well as I didn’t notice at first when reading your post, it’s definitely something we’ll improve in the near future as we work on other repository changes
As for the sudo command seemingly hanging if not run before in the same shell: as you mention it’s actually waiting for you to input the password, but it’s not visible due to curl’s output messing with the password prompt. We have updated the installation docs to improve on this, so that curl is silent unless there’s an error.
Hi @mvitale1989 thansk a lot for reviewing the issue. Sadly it still doesn’t work for me.
$ curl -fsS -o- https://deb.packages.mattermost.com/setup-repo.sh | sudo bash
Err:21 https://deb.packages.mattermost.com stable InRelease
The following signatures were invalid: EXPKEYSIG F8F2C31744774B28 Mattermost Build <dev-ops@mattermost.com>
$ sudo apt install mattermost-desktop
Package mattermost-desktop is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mattermost-desktop' has no installation candidate
Hello @mxa ,
running the setup-repo.sh in a clean ubuntu:24.04 container works (given that dependencies sudo, gpg and curl are installed), so I suspect your system still has the old expired key.
To trigger the key download again, you can use the UPDATE_GPG_KEY=yes envirnoment variable. E.g. you can run the script as follows:
Can you confirm that the above command works for you? If it does, i’ll add a note in the Desktop installation docs about this, if anybody else runs into it.
I can also confirm I can reproduce the issue with the binary tarball on Ubuntu Noble, thanks for reporting! I’ll create an internal ticket to address this.