mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-11-05 00:27:39 +00:00
[GH-ISSUE #61] [BUG] <title>[17:08:00] [ERROR] Unsupported package manager. Cannot detect Linux distribution. #23
Labels
No labels
🚏 Awaiting User Response
🐛Bug
🐛Bug
🐛Bug
🦄 Feature Request
✅ Fixed
✅ Fixed
👩💻 Good First Issue
‼️ High Priority
🧑💻 In Progress
🐧 Linux
🐧 Linux
💤 Low Priority
🍎 Mac
❕ Medium Priority
pull-request
🪟 Windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Launcher#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @richardstevenhack on GitHub (Jul 9, 2024).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/61
Environment
🐧 Linux
System
openSUSE Tumbleweed latest
Version
Current version run by Linux setup script
Desktop Information
Node: v22.3.0
Operating System: openSUSE Tumbleweed 20240704
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-1-default (64-bit)
Graphics Platform: X11
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 125.7 GiB of RAM
Graphics Processor: AMD Radeon RX 550 Series
Describe the problem
rhack@localhost:/Data7/Artificial Intelligence Tools/SillyTavern GUI/SillyTavern-Launcher> chmod +x launcher.sh && ./launcher.sh [17:08:00] [ERROR] Unsupported package manager. Cannot detect Linux distribution.Additional info
No response
Please tick the boxes
@Asherathe commented on GitHub (Sep 28, 2024):
I ran into the same issue. Easy to add zypper to the script manually, though.
@AlienTux commented on GitHub (Feb 14, 2025):
Could you please share your modifications please? I'm not as versed in script editing as I wish I was...
@richardstevenhack commented on GitHub (Feb 14, 2025):
I just downloaded the script again and the current version seems to have the correct test in it, to wit:
elif command -v zypper &>/dev/null; then log_message "INFO" "${blue_fg_strong}Detected openSUSE system.${reset}" # openSUSE install_git install_nodejs_npm install_miniconda installerThe "command -v zypper" returns the path to the zypper executable and suppresses the output to the console. I didn't run the script to see if it actually works, but it should. I did test the command part and that does return the path to the executable - /usr/bin/zypper - so the whole code block should work.
Again, the current version of the script should work as it does test properly for the presence of zypper.
@richardstevenhack commented on GitHub (Feb 14, 2025):
HOWEVER, I just looked at "launcher.sh" - and it does NOT have the test for openSUSE in it. This is the relevant code:
`# Detect the package manager and execute the appropriate installation
if [ -n "$IS_MACOS" ]; then
log_message "INFO" "${blue_fg_strong}Detected macOS system.${reset}"
# macOS
install_git
install_nodejs
home
Detect the package manager and execute the appropriate installation
elif command -v apt-get &>/dev/null; then
log_message "INFO" "Detected Debian/Ubuntu-based system.${reset}"
# Debian/Ubuntu
install_git
install_nodejs
home
elif command -v yum &>/dev/null; then
log_message "INFO" "Detected Red Hat/Fedora-based system.${reset}"
# Red Hat/Fedora
install_git
install_nodejs
home
elif command -v apk &>/dev/null; then
log_message "INFO" "Detected Alpine Linux-based system.${reset}"
# Alpine Linux
install_git
install_nodejs
home
elif command -v pacman &>/dev/null; then
log_message "INFO" "Detected Arch Linux-based system.${reset}"
# Arch Linux
install_git
install_nodejs
home
elif command -v emerge &>/dev/null; then
log_message "INFO" "Detected Gentoo Linux-based system. Now you are the real CHAD${reset}"
# Gentoo Linux
install_git
install_nodejs
home
else
log_message "ERROR" "${red_fg_strong}Unsupported package manager. Cannot detect Linux distribution.${reset}"
exit 1
fi
This is not the same code as the "install.sh" which I listed in the previous comment.
So I suggest the problem is that the necessary modification was made to only one of those scripts, but not the other.
@Asherathe commented on GitHub (Feb 15, 2025):
There are several places where zypper needs to be added in the launcher script in order to install or uninstall packages. Also, the function that's supposed to detect your terminal emulator doesn't work on Tumbleweed, at least for me, so it can't open new windows.
I'm not sure the launcher is needed after a successful install. I run start.sh directly, and git pull to update, and never had any problems. But for anyone who wants it, this adds the zypper commands to launcher.sh and adds detection for a couple extra terminal programs. Change line 250, where it says x-terminal-emulator, to the name of your own terminal program if windows don't open. x-terminal-emulator opens the default terminal program on Debian-based systems, I think, but not on openSUSE.
@deffcolony commented on GitHub (Feb 24, 2025):
This problem should now be fixed at
github.com/SillyTavern/SillyTavern-Launcher@240badb9c9 (diff-070e0054c9)Please update the launcher and let me know if it works
@richardstevenhack commented on GitHub (Feb 24, 2025):
Works fine. I have done the install and am testing various models. Unfortunately, I no longer wish to use SillyTavern as I've settled on MSTY (https://msty.app/) as my preferred AI GUI front end.
Good work fixing the install, though. That should help anyone on openSUSE Tumbleweed wishing to use SillyTavern.