-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] <title>[17:08:00] [ERROR] Unsupported package manager. Cannot detect Linux distribution. #61
Comments
I ran into the same issue. Easy to add zypper to the script manually, though. |
Could you please share your modifications please? I'm not as versed in script editing as I wish I was... |
I just downloaded the script again and the current version seems to have the correct test in it, to wit:
The "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. |
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 Detect the package manager and execute the appropriate installationelif command -v apt-get &>/dev/null; then 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. |
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.
|
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
The text was updated successfully, but these errors were encountered: