Joplin version: NA
Platform: Linux (Mint 19.3 Cinnamon)
OS specifics: bash
Result:
Prints
_ _ _
| | ___ _ __ | (_)_ __
_ | |/ _ \| '_ \| | | '_ \
| |_| | (_) | |_) | | | | | |
\___/ \___/| .__/|_|_|_| |_|
|_|
Linux Installer and Updater
but nothing else happens
Should proceed with installation.
Have you tried in this way as written in forum
https://discourse.joplinapp.org/t/cannot-install-in-linux-mint-19-1-mate/1753
Guess the issue is the following command (line 72) ends up with the empty string:
RELEASE_VERSION=$(wget -qO - "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_nam e": "v\K.*?(?=")')
Have you tried in this way as written in forum
https://discourse.joplinapp.org/t/cannot-install-in-linux-mint-19-1-mate/1753
Hi @rajprakash00! As I understand the situation on the discourse, the installer did most of its job but failed to create a desktop icon. My case is a complete failure - nothing is done at all :fearful:
Guess the issue is the following command (line 72) ends up with the empty string:
RELEASE_VERSION=$(wget -qO - "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_nam e": "v\K.*?(?=")')
Hi @xmiti! What do you suggest? Editing the file is no problem for me, just have to know what to do. First of all, I cannot see an empty string.
Hello @banan314, very interesting. Have tried that several times and indeed, sometimes the tag_name (1.0.195) is displayed, sometimes not:
$ date; wget -qO - "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")'
Fri 27 Mar 2020 12:36:14 PM CET
```text
$ date; wget -qO - "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")'
Fri 27 Mar 2020 12:36:25 PM CET
1.0.195
Might be an issue related to the JSON formatting. Using the `jq` could be a dirty fix:
```text
$ date; wget -qO - "https://api.github.com/repos/laurent22/joplin/releases/latest" | jq '.' | grep -Po '"tag_name": "v\K.*?(?=")'
Fri 27 Mar 2020 12:41:41 PM CET
1.0.195
On Ubuntu, I had to download the script to a file and run bash on it. I'm seeing a download progress bar, maybe this doesn't work when running the installer script in piped mode?
On the forums one user wase able to get around this by removing the architecture check block. Can anyone confirm this? And if so, what is the output of uname -a on your system.
Update: I ran Linux mint 19.3 in a virtual machine and could not duplicate this issue.
For anyone experiencing this issue can you please try the below command?
wget -O - https://raw.githubusercontent.com/CalebJohn/joplin/arch-check/Joplin_install_and_update.sh | bash
And copy/paste the output
I'm having trouble reliably duplicating the issue
The issue was (at least for me on Kubuntu) the regex to determine the current version:
Joplin_install_and_update.sh:105
RELEASE_VERSION=$(wget -qO - "... | grep -Po '"tag_name": "v\K.*?(?=")')
^
|
delete this space
I also met with this problem. The installation fails silently.
Just for your information, I'm unable to connect to api.github.com in my case. It seems blocked by the firewall of my internet provider. If you are in China, you might have the same issue.
$ wget -O - "https://api.github.com/repos/laurent22/joplin/releases/latest"
--2020-03-29 12:21:18-- https://api.github.com/repos/laurent22/joplin/releases/latest
Resolving api.github.com (api.github.com)... 13.250.168.23
Connecting to api.github.com (api.github.com)|13.250.168.23|:443... connected.
Unable to establish SSL connection.
Also, I can not access this URL in my browser.
BTW, it would be great if the installer can reminder the user about the failed connection, e.g., by checking if $RELEASE_VERSION is empty.
Hello,
I confirm the same problem here on Fedora 31
@CalebJohn for the output of your command:
_ _ _
| | ___ _ __ | (_)_ __
_ | |/ _ \| '_ \| | | '_ \
| |_| | (_) | |_) | | | | | |
\___/ \___/| .__/|_|_|_| |_|
|_|
Linux Installer and Updater
Checking architecture...
Checking latest version...
No more output, give up the shell silently after the "Checking latest version"
I was unable to have the json version working even relaunching multiple time, but the trick from @mpern works!
Downloading the script without piping and removing the space :
RELEASE_VERSION=$(wget -qO - "... | grep -Po '"tag_name": "v\K.*?(?=")')
^
|
delete this space
After that the script get the version correctly and upgrade Joplin.
I guess github should have changed something in the API :thinking:
Thanks for the trick! (And for Joplin :hugs: )
Thanks everyone for the replies, the fix is on the way!
fixed by #2913
Most helpful comment
fixed by #2913