AccentuSoft / LinkScope_Client

Repository for the LinkScope Client software.
GNU Affero General Public License v3.0
279 stars 22 forks source link

LinuxInstaller.sh doesn't doesn't download .7z package (on ubuntu) #32

Closed KrzysiekGL closed 8 months ago

KrzysiekGL commented 8 months ago

curl in LinuxInstaller.sh doesn't extrac any data from the URL

LinkScope_Client/Installer$ echo $(curl -sL https://github.com/AccentuSoft/LinkScope_Client/releases/latest | grep 'Ubuntu-x64.7z' -m 1 | cut -d '"' -f 2 | tr -d ' ') 
<empty line...>

In result the linuxURL remains empty and what is in fact stored in the /tmp/LinkScope.7z is just garbage and not a 7z archive.

$ file /tmp/LinkScope.7z
/tmp/LinkScope.7z: HTML document, Unicode text, UTF-8 text, with very long lines (1849)

Dump for the LinixInstaller.sh:

LinkScope_Client/Installer$ ./LinuxInstaller.sh install 
Sudo permission check
Sudo permissions available
Installing Software
Updating Packages
Hit:1 http://pl.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://pl.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                    
Hit:3 http://pl.archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                                  
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease                                                                                       
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                        
Hit:6 http://lenovo.archive.canonical.com jammy InRelease                             
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
Installing New Packages
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libopengl0 is already the newest version (1.4.0-1).
graphviz is already the newest version (2.42.2-6).
p7zip-full is already the newest version (16.02+dfsg-8).
curl is already the newest version (7.81.0-1ubuntu1.15).
libmagic1 is already the newest version (1:5.41-3ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Downloading latest version of LinkScope client...
LinuxURL: 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  217k    0  217k    0     0   640k      0 --:--:-- --:--:-- --:--:--  639k

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs 13th Gen Intel(R) Core(TM) i5-1335U (B06A3),ASM,AES-NI)

Scanning the drive for archives:

ERROR: No more files
/tmp/LinkScope.7z

System ERROR:
Unknown error -2147024872
Something went wrong during the download or extraction.
Please check that /tmp/LinkScope.7z exists, and that it is an archive containing the latest version of the LinkScope Client software.

My system:

$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
$ uanme -a
6.1.0-1035-oem #35-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 21 10:58:23 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
AccentuSoft commented 8 months ago

Hello, LinuxInstaller.sh is the legacy installation script, and should not be used. Please instead use the installer executable for your platform.

Currently, that would be the LinkScope_Installer.Installer file packaged in the 1.6 release.