Skip to content
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

Fix Ubuntu Installation #99

Closed
wants to merge 13 commits into from

Conversation

Lulalaby
Copy link

@Lulalaby Lulalaby commented Oct 5, 2022

Closes: #97
Closes: #91
Closes: #82
Closes: #81

Follow-up of #98, by request of @mxschmitt

Added additional install of `python-is-python3` when using debian
As per talk with flyth, we don't need it anymore, due to removal of the license system
Raise debian version to 10+
Raise ubuntu version to 18.04+
Fix casing for brand name TeamSpeak
@Lulalaby
Copy link
Author

Lulalaby commented Oct 5, 2022

Merge #100 before this

commit f4f8bc8
Author: Lala Sabathil <[email protected]>
Date:   Thu Oct 6 10:33:35 2022 +0200

    Update test

commit 3df4402
Author: Lala Sabathil <[email protected]>
Date:   Thu Oct 6 09:27:54 2022 +0200

    Rework startup_test

commit fd2f750
Author: Lala Sabathil <[email protected]>
Date:   Wed Oct 5 19:33:01 2022 +0200

    [ci skip] apply code review

commit cbd3af4
Author: Lala Sabathil <[email protected]>
Date:   Wed Oct 5 19:30:53 2022 +0200

    Apply suggestions from code review

    Co-authored-by: Max Schmitt <[email protected]>

commit 8bdb446
Author: Lala Sabathil <[email protected]>
Date:   Wed Oct 5 19:11:38 2022 +0200

    chore: update ci badge

commit 7e47dd8
Author: Lala Sabathil <[email protected]>
Date:   Wed Oct 5 18:58:34 2022 +0200

    devops: Imrpove testing

    chore: add discord test
    chore: despawn instances after test
@Lulalaby
Copy link
Author

Lulalaby commented Oct 6, 2022

We need to ensure the discord bot token isn't used at the same time.
This increases time, but is safer
@adiantek
Copy link

adiantek commented Nov 9, 2022

Still doesn't work on Ubuntu 22.04 (image from http://download.proxmox.com/images/system/ubuntu-22.04-standard_22.04-1_amd64.tar.zst, OpenVZ):

Downloading YT-DL now...
Download successful!
/usr/bin/env: ‘python’: No such file or directory
Command which failed was: "      greenMessage "config.ini created successfully."". Please try to execute it manually and attach the output to the bug report in the forum thread.
If it still doesn't work report this to the author at https://forum.sinusbot.com/threads/sinusbot-installer-script.1200/ only. Not a PN or a bad review, cause this is an error of your system not of the installer script. Line 896.

I need to apt install python-is-python3


Another error:


lis 09 01:12:05 sinusbot sinusbot[154]: 2022/11/09 01:12:05 9a5794a5 444b63eb DEBUG  TS>/opt/sinusbot/teamspeak3-client/ts3client_linux_amd64: error while loading shared libraries: libXdamage.so.1: cannot open shared object file: No such file or directory
lis 09 01:12:05 sinusbot sinusbot[154]: 2022/11/09 01:12:05 9a5794a5 444b63eb DEBUG  Closed.
lis 09 01:12:05 sinusbot sinusbot[154]: 2022/11/09 01:12:05 9a5794a5 444b63eb INFO   TSClient quit. LogLevel has been increased, please try to connect again to see more details.

apt install libxdamage1 solved it.

Comment on lines +617 to +619
if [[ $(cat /etc/*release | grep "PRETTY_NAME=" | sed 's/PRETTY_NAME=//g') =~ "Debian" ]]; then
apt-get install -y -qq --no-install-recommends python-is-python3
fi
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ $(cat /etc/*release | grep "PRETTY_NAME=" | sed 's/PRETTY_NAME=//g') =~ "Debian" ]]; then
apt-get install -y -qq --no-install-recommends python-is-python3
fi
if [[ $(cat /etc/*release | grep "PRETTY_NAME=" | sed 's/PRETTY_NAME=//g') =~ "Debian" ]]; then
apt-get install -y -qq --no-install-recommends python-is-python3
fi
if [[ $(cat /etc/*release | grep "PRETTY_NAME=" | sed 's/PRETTY_NAME=//g') =~ "Ubuntu" ]]; then
apt-get install -y -qq --no-install-recommends python-is-python3
fi

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mhh have to filter for old ubuntu version

sinusbot_installer.sh Outdated Show resolved Hide resolved
@Lulalaby
Copy link
Author

tbh I don't think i can fix this. Sorry

@Lulalaby Lulalaby closed this Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants