• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.
Sinusbot Installer Script

EN Sinusbot Installer Script 1.5

No permission to download

Knoxxar

Member
Hi guys,

i have the follow error when i try to update the bot:

Code:
cp: cannot create regular file './package_inst': Text file busy
Error on line 778. 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.
Command which failed was: "  cp -R ./TeamSpeak3-Client-linux_$ARCH/* ./". Please try to execute it manually and attach the output to the bug report in the forum thread.

System: Debian 4.9.82-1+deb9u3

Havy anybody n idea to fix this problem?
Grz Knoxxar
 

Qhiliqq

Donor
is awesome!
Contributor
Insider
Licensed Partner
i have debian-9.0-x86_64
Retry it...
Runs on oracle vm and on my own vps with debian 9 64bits...

Code:
Error on line 722. Report this to the author at https://forum.sinusbot.com/threds/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. Command which failed was: "$GROUPADD $SINUSBOTUSER". Please try to execute it manually and attach the output to the bug report in the forum thread.

Code:
Usage: groupadd [options] GROUP

Options:
  -f, --force                   exit successfully if the group already exists,
                                and cancel -g if the GID is already used
  -g, --gid GID                 use GID for the new group
  -h, --help                    display this help message and exit
  -K, --key KEY=VALUE           override /etc/login.defs defaults
  -o, --non-unique              allow to create groups with duplicate
                                (non-unique) GID
  -p, --password PASSWORD       use this encrypted password for the new group
  -r, --system                  create a system account
  -R, --root CHROOT_DIR         directory to chroot into

Can you help me? What should I do to continue installing?
debian 9
Haven't any problem with debian 9...

Error on line 778.
Command which failed was: " cp -R ./TeamSpeak3-Client-linux_$ARCH/* ./". Please try to execute it manually and attach the output to the bug report in the forum thread.


How can i resolve it?
Which OS?

Try the command listed in your error without iproute2 and check your dpkg...
 

Sebastieng

New Member

ZerefGG

Member
@Qhiliqq You should set up the installer to disable Network time after installing ntp
Code:
systemctl disable systemd-timesyncd
otherwise people will get "Unexpected origin timestamp messages"
 

ZerefGG

Member
Hi @Qhiliqq

This script needs some tweaks, I tweaked the one I downloaded for future installations but I think, you should also tweak yours and update it :

1. check if ntp is already installed and running, instead of forcing Installation and ruining the config
Code:
...
689      timedatectl set-ntp yes
why?
setting this to yes means that you want to use timesyncd "see my post above for the error that this causes when enabled with ntp"

2. systemd / init.d
Code:
95    if [[ $(command -v systemctl) == "" ]]; then
96     USE_SYSTEMD=false
97    fi
wouldn't it be weise to ask what startup method to choose even if systemd is available? since you set up USE_SYSTEMD=true in line 9 it will be the default one.

3. Cron
918 echo "0 0 * * * $SINUSBOTUSER $LOCATION/sinusbot -update >/dev/null" >>/etc/cron.d/sinusbot
There is no flag such as -uptade and > /dev/null 2>&1 would be a proper redirection.

930 echo "0 0 * * * $SINUSBOTUSER youtube-dl -U --restrict-filename >/dev/null" >>/etc/cron.d/ytdl
same issue with redirection and this will return a youtube-dl: command not found "absolute path". Cron clears the whole environment, so there is 2 options:
a. using PATH=/usr/local/bin/ because youtube-dl is in this directory
930 echo "PATH=/usr/bin/local\n0 0 * * * $SINUSBOTUSER youtube-dl -U --restrict-filename > /dev/null 2>&1" >>/etc/cron.d/ytdl
or
930 echo "SHELL=/bin/sh\nPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n0 0 * * * $SINUSBOTUSER youtube-dl -U --restrict-filename > /dev/null 2>&1" >>/etc/cron.d/ytdl

b. as in sinusbot cron
"echo 0 0 * * * $SINUSBOTUSER /usr/local/bin/youtube-dl -U --restrict-filename > /dev/null 2>&1" >>/etc/cron.d/ytdl

Regards
 

ZerefGG

Member
@felixgrundmann apparently the user (which runs the script has no permission to edit the file config.ini
Either you fix permissions and try again or go to /opt/sinusbot/config.ini
And add thr following line:
YoutubeDLPath = "/usr/local/bin/youtube-dl"
 

notJoker

New Member
Code:
Resolving sinusbot-installer.de (sinusbot-installer.de)... 31.172.90.14
Connecting to sinusbot-installer.de (sinusbot-installer.de)|31.172.90.14|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32196 (31K) [application/octet-stream]
Saving to: 'STDOUT'

-                   100%[===================>]  31.44K  --.-KB/s    in 0.01s

2018-06-09 21:42:45 (2.21 MB/s) - written to stdout [32196/32196]

Checking for the latest latest installer version
Your installer is up-to-date.
This is the automatic installer for latest SinusBot. USE AT YOUR OWN RISK!
You can choose between installing, upgrading and removing the SinusBot.
Installer by Philipp Esswein | DAThosting.eu - Your game-/voiceserver hoster (only german).
1Please rate this script at: https://forum.sinusbot.com/resources/sinusbot-installer-script.58/
You're using Installer 1.5
What should the Installer do?
1) Install
2) Update
3) Remove
4) PW Reset
5) Quit
#? 1
Invalid option.
#? 1
Check if lsb-release and debconf-utils is installed...
W: http://archive.canonical.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: The repository 'http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release' does not have a Release file.
W: GPG error: http://extras.ubuntu.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: The repository 'http://extras.ubuntu.com/ubuntu precise Release' is not signed.
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-security/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
E: Failed to fetch http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error on line 266. 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.
Command which failed was: "    apt-get update". Please try to execute it manually and attach the output to the bug report in the forum thread.

HELP ME!

apt-get update results

Code:
oot@autoapi:~# apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release
Ign:3 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial InRelease
Ign:4 http://archive.canonical.com/ubuntu precise InRelease
Ign:5 http://extras.ubuntu.com/ubuntu precise InRelease
Hit:7 http://archive.canonical.com/ubuntu precise Release
Hit:8 http://extras.ubuntu.com/ubuntu precise Release
Hit:9 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial InRelease
Get:11 http://extras.ubuntu.com/ubuntu precise Release.gpg [72 B]
Ign:12 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release
Ign:13 http://us.archive.ubuntu.com/ubuntu precise InRelease
Ign:11 http://extras.ubuntu.com/ubuntu precise Release.gpg
Ign:14 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Hit:15 http://us.archive.ubuntu.com/ubuntu precise-security InRelease
Ign:16 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Hit:18 http://us.archive.ubuntu.com/ubuntu precise-updates InRelease
Ign:14 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:16 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Hit:19 http://us.archive.ubuntu.com/ubuntu precise-backports InRelease
Ign:17 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Hit:20 http://us.archive.ubuntu.com/ubuntu precise Release
Ign:14 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:16 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:16 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:14 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:16 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Err:14 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
  404  Not Found
Ign:16 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:17 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Fetched 72 B in 1s (49 B/s)
Reading package lists... Done
W: http://archive.canonical.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: The repository 'http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://extras.ubuntu.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: The repository 'http://extras.ubuntu.com/ubuntu precise Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-security/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
E: Failed to fetch http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

HELP THX
 

notJoker

New Member
Code:
Checking for the latest latest installer version
E: Malformed entry 7 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
E: Malformed entry 7 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.
Error on line 83. 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.
Command which failed was: "  apt-get install wget -y". Please try to execute it manually and attach the output to the bug report in the forum thread.
root@autoapi:~#

I haye myself
 

ZerefGG

Member
I'm using VPS Ubuntu 14.04.4
If you just bought the vps consider upgrading to 16+ or switch debian 9
The problem is not from the installer script but from your vps
cat /etc/apt/sources.list
And paste here what's in the file if you want to stick with ubuntu 14
 

notJoker

New Member
Code:
root@autoapi:~# apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Ign:5 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release
Ign:7 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:8 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:7 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:8 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:7 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:8 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:7 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:8 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:7 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:8 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Err:7 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
  404  Not Found
Ign:8 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@autoapi:~#

Help?
 

Runningcore

Well-Known Member
Contributor
@notJoker

Dude, please just learn to read.., this is a issue which is caused by your machine and has not even a minimum relation to the sinusbot.

W: The repository 'http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.


If you are not able to see and fix an error which is caused by your own running system then please stop using linux.
 
Top