Menu

Installation Instructions for ASTAP on Arch Linux

2026-03-11
2026-03-27
1 2 > >> (Page 1 of 2)
  • James Thornton

    James Thornton - 2026-03-11

    I'm trying to install ASTAP on a Stellarmate Pro OS 2.0 so that Mount Wizzard 4 v3 can plate solve. i have used the debian dowloads in the past, but with the latest SMPro OS 2.0, I have been advised debian will not work on Arch Linux. Does anyone have links to alternative ASTAP app and database and some instructions on how to load via a terminal command prompt on Arch Linux?
    Best regards,
    Jim

     
  • James Thornton

    James Thornton - 2026-03-13

    Han - Mount Wizard 4 does not seem to be working with ASTAP using the tar.gz file. here is the MW4 log. What i need are clear instructions with the command istructions you suggest to install this ising a terminal (bash -Konsole) in SMPro OS 2.0. i have sent this to Michel Worian (MW4) and Jasem Mutlaq (SMPro). Appreciate any help you can give us.

     
  • han.k

    han.k - 2026-03-13

    This indicates ASTAP is installed:

    [2026-03-13 01:47:58.434][I][ astap.py][ 262] ASTAP OK, app: [/home/stellarmate/astap/opt/astap/astap], index: [/home/stellarmate/astap/opt/astap]
    [2026-03-13 01:47:58.435][I][ astap.py][ 263] ASTAP Index G17:False, G18:False, H17:False, H18:False
    [2026-03-13 01:47:58.436][I][ astap.py][ 264] ASTAP Index D80:True, D50:True, D20:False, D05:False
    [2026-03-13 01:47:58.444][U][ mainApp.py][ 371] Message window: [Driver - Device connected - plateSolve]
    [2026-03-13 01:47:58.444][U][ mainApp.py][ 371] Message window: [System - Plate Solver found - ASTAP]
    [2026-03-13 01:47:58.445][U][ mainApp.py][ 371] Message window: [Driver - ASTAP enabled - plateSolve]

    See below. It looks like the executable is wrong. What kind of processor are your running Intel AMD or something else. For standard PC's you will need the AMD64 executable. Can you test it by running from the cmd prompt this:
    /opt/astap/astap
    What is the message you get?
    For a normal PC you will need this version:
    https://sourceforge.net/projects/astap-program/files/linux_installer/astap_amd64.tar.gz/download
    Place the astap file in /opt/astap and try again the above command.

    On possbility is that the GTK2 widget is not available in Arch Linux. Try this ASTAP QT5 widget version:
    https://sourceforge.net/projects/astap-program/files/linux_installer/astap_amd64.tar.gz/download

    Han

    [2026-03-13 02:02:04.908][U][ mainApp.py][ 371] Message window: [Image - Solving - 2026-03-13-02-01-40-exposure.fits]
    [2026-03-13 02:02:04.922][C][ astap.py][ 119] error: [Errno 8] Exec format error: '/home/stellarmate/astap/opt/astap/astap' happened
    [2026-03-13 02:02:04.923][W][ astap.py][ 176] ASTAP error [Exception during solving] in [/home/stellarmate/mw4/image/2026-03-13-02-01-40-exposure.fits]
    [2026-03-13 02:02:04.925][U][ mainApp.py][ 371] Message window: [Image - Solving error - ASTAP error: [Exception during solving]]
    [2026-03-13 02:02:22.978][U][ loader.py][ 164] Click Button : [solve]
    [2026-03-13 02:02:23.205][U][ mainApp.py][ 371] Message window: [Image - Solving - 2026-03-13-02-01-40-exposure.fits]
    [2026-03-13 02:02:23.219][C][ astap.py][ 119] error: [Errno 8] Exec format error: '/home/stellarmate/astap/opt/astap/astap' happened
    [2026-03-13 02:02:23.220][W][ astap.py][ 176] ASTAP error [Exception during solving] in [/home/stellarmate/mw4/image/2026-03-13-02-01-40-exposure.fits]

     
  • han.k

    han.k - 2026-03-14

    If it is a RPi then it is most likely a wrong architecture problem. The RPi runs on an ARM64 (aarch64) processor. Put the executable for the RPi 64 inside the following tar.gz file at location /opt/astap

    https://sourceforge.net/projects/astap-program/files/linux_installer/astap_aarch64.tar.gz/download

    That should most likely fix the problem. If not tell me what happen if you run ASTAP directly by command: /opt/astap/astap

    Han

     
  • James Thornton

    James Thornton - 2026-03-14

    This is what I get. Maybe im using the wrong commands?

     
  • han.k

    han.k - 2026-03-14

    Strange.

    I have setup an virtual machine for Arch linux for the amd64 processor. The command:
    sudo pacman -U astap_amd64.pkg.tar.zst
    installs it.

    So for your RPI
    sudo pacman -U astap_aarch64.pkg.tar.zst
    should work.
    Your log indicates something is locked. Can you try a reboot first?
    If that doesn't work I have to check more tomorrow.

     
  • han.k

    han.k - 2026-03-14

    Can you copy the full log as text to your next post? I can feed it to AI to see if it has a solution.

     
  • James Thornton

    James Thornton - 2026-03-15

    stellarmate@stellarmate:~$ cd astap
    stellarmate@stellarmate:~/astap$ unzip astap_aarch64.pkg.tar.zst
    Archive: astap_aarch64.pkg.tar.zst
    End-of-central-directory signature not found. Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive. In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
    unzip: cannot find zipfile directory in one of astap_aarch64.pkg.tar.zst or
    astap_aarch64.pkg.tar.zst.zip, and cannot find astap_aarch64.pkg.tar.zst.ZIP, period.
    stellarmate@stellarmate:~/astap$ zstd -d astap_aarch64.pkg.tar.zst
    astap_aarch64.pkg.tar.zst: 20039680 bytes
    stellarmate@stellarmate:~/astap$ tar -xf astap_aarch64.pkg.tar.zst
    tar: astap_aarch64.pkg.tar.zst: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    stellarmate@stellarmate:~/astap$ zstd -d astap_aarch64.pkg.tar.zst
    zstd: can't stat astap_aarch64.pkg.tar.zst : No such file or directory -- ignored
    stellarmate@stellarmate:~/astap$ sudo pacman -U astap_aarch64.pkg.tar.zst
    error: failed to init transaction (unable to lock database)
    error: could not lock database: File exists
    if you're sure a package manager is not already
    running, you can remove /var/lib/pacman/db.lck
    stellarmate@stellarmate:~/astap$ ^C
    stellarmate@stellarmate:~/astap$ sudo remove /var/lib/pacman/db.lck
    sudo: remove: command not found
    stellarmate@stellarmate:~/astap$ sudo remove /var/lib/pacman/db.lck
    sudo: remove: command not found
    stellarmate@stellarmate:~/astap$

     
  • James Thornton

    James Thornton - 2026-03-15

    After a fresh reboot.

    stellarmate@stellarmate:~$ sudo pacman -U astap_aarch64.pkg.tar.zst
    error: failed to init transaction (unable to lock database)
    error: could not lock database: File exists
    if you're sure a package manager is not already
    running, you can remove /var/lib/pacman/db.lck
    stellarmate@stellarmate:~$ sudo remove /var/lib/pacman/db.lck
    sudo: remove: command not found
    stellarmate@stellarmate:~$

     

    Last edit: James Thornton 2026-03-15
  • James Thornton

    James Thornton - 2026-03-15

    In parallel I have asked Jasem Mutlaq (Stellarmate) for advice as well. He asked me to try the command sudo remove ....

     
  • han.k

    han.k - 2026-03-15

    Yes removal could help.

    I assume the file at /opt/astap/astap is broken or somehow locked. Try to remove it by:
    sudo rm /opt/astap/astap

    I have corrected the .pkg.tar.zst file for a warning of the directories and I'm confident that the old or new version will work. So you could download or use the old one:

    https://sourceforge.net/projects/astap-program/files/linux_installer/astap_aarch64.tar.gz/download
    Install:
    sudo pacman -U astap_amd64.pkg.tar.zst

    I have also created an Arch package for the D50 database:
    https://sourceforge.net/projects/astap-program/files/star_databases/d50_star_database.pkg.tar.zst/download
    I haven't tested it since Sourceforce downloading seems unreliable and it stops when I try to download it in Arch Linux.

    Install:
    sudo pacman -U d50_star_database.pkg.tar.zst

    Tell me if this works for you
    Han

     

    Last edit: han.k 2026-03-15
  • han.k

    han.k - 2026-03-15

    The new D50 package for Arch Linux work correctly.

     
  • James Thornton

    James Thornton - 2026-03-15

    i think everything downloaded fine to /opt/astap after i followed Jasem's advice to sudo rm (not "remove") a .lck file. This has something to do with atomic updates and someone will be checking how to handle this going forward. Also, when i try to launch astap from a file manager Dolphin, it does not show any kind of GUI, so i think i have to test using MW4. The initial setup of MW4 seems to recognize the locations for the app and database location in the root directory where everything installed (/opt/astap). Currently i have cloudy skies, but will test maybe Tuesday and let you know the results. Thank you very much for your help!

     

    Last edit: James Thornton 2026-03-15
  • han.k

    han.k - 2026-03-15

    Also, when i try to launch astap from a file manager Dolphin, it does not show any kind of GUI, so i think i have to test using MW4.

    That is not good. It should show the GUI.

    Lets bypass pacman.
    Try to download the tar.gz file:
    https://sourceforge.net/projects/astap-program/files/linux_installer/astap_aarch64.tar.gz/download
    Extract it at your desktop or in Downloads. With file manager start this new astap executable in Downloads/opt/astap or where it is located. If it runs fine and you see the GUI, then copy this astap executable with sudo to /opt/astap. So something like
    sudo cp ./astap /opt/astap

    Han

     
  • James Thornton

    James Thornton - 2026-03-16

    When i launch from dolphin, there is no GUI.

     
  • han.k

    han.k - 2026-03-16

    It is possible that the GUI is not working in your Arch Linux version. This requires a widget GTK2.

    You could test it with a command line instruction but probably easier to test it with MW4.

    Copy the new astap with the cp command to /opt/astap. So something like
    sudo cp ./astap /opt/astap

    If it still doesn't work let's try the pure command line version of ASTAP called astap_cli. You could just rename astap_cli to astap and put it in the same place /opt/astap. astap_cli gives only command line mesages but is for solving fully compatible.

    https://sourceforge.net/projects/astap-program/files/linux_installer/astap_command-line_version_Linux_aarch64.zip/download

    Han

     
  • James Thornton

    James Thornton - 2026-03-16

    Han,
    i am planning to try the .zst files you gave me above. i think the root directory may be locked since i was unable to add the D80 files. However, the .zst files seem to have loaded in /opt/astap.

    I dont think i will be able to download into the root directory without a .zst file.

    Jasem seems to be working on something, i just dont understand exactly what it is and whether it will help the program work. it may be related to something to keep the program in the root direct while an atomic update is applied.

     
  • han.k

    han.k - 2026-03-16

    Okay keep me updated if you make progress. If there is no progress, we could try the alternatives.

    cs, Han

     
  • James Thornton

    James Thornton - 2026-03-18

    Han - i downloaded the .cli version an ran it from the /Downloads directory using bash Konsole command. Here are the results.

    I think the OS is running in 64bit - see pic of AI response.

     
  • han.k

    han.k - 2026-03-18

    Good astap_cli is working. Tomorrow I will test the standard astap version with GUI on my RPI just to be sure.

    aarch64 and arm64 are equivalent.

    If the normal astap is not working, we could rename astap_cli to astap and just copy it with sudo to /opt/astap to get your system working.

     
  • James Thornton

    James Thornton - 2026-03-18

    Let me know the proper command to do this. i was having issues trying to copy and paste a d80 data file using dolphin file manager so i used the d50 .zst file which worked fine. or maybe let me know the commands in bash Konsole to do this.

    i do have some clear skies forecasted tonight and maybe tomorrow for testing...

    Thank you Han!

     

    Last edit: James Thornton 2026-03-18
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB