• 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

Ironeer

New Member
Code:
apt-get purge ca-certificates && apt-get install ca-certificates && update-ca-certificates
root@vmd12916:~# apt-get purge ca-certificates && apt-get install ca-certificates && update-ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apg apturl-common avahi-utils bubblewrap cups-pk-helper five-or-more flatpak
fonts-dejavu-extra four-in-a-row gir1.2-grilo-0.3 gir1.2-gspell-1
gir1.2-mediaart-2.0 gnome-chess gnome-clocks gnome-control-center-data
gnome-dictionary gnome-games gnome-klotski gnome-nibbles gnome-robots
gnome-software-common gnome-sound-recorder gnome-taquin gnome-tetravex
hitori hoichess iagno ippusbxd java-common libatk-wrapper-java
libatk-wrapper-java-jni libcaribou-gtk-module libcaribou-gtk3-module
libfile-listing-perl libflatpak0 libfont-afm-perl libgdict-1.0-10
libgdict-common libgsound0 libhtml-form-perl libhtml-format-perl
libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
libhttp-negotiate-perl libmission-control-plugins0 libnet-http-perl
libnss-myhostname libostree-1-1 librygel-core-2.6-2 librygel-db-2.6-2
librygel-renderer-2.6-2 librygel-renderer-gst-2.6-2 librygel-server-2.6-2
libsnapd-glib1 libtie-ixhash-perl libwww-robotrules-perl
libxml-xpathengine-perl lightsoff polari python3-cffi-backend python3-crypto
python3-cryptography python3-cups python3-idna python3-keyring
python3-keyrings.alt python3-lazr.uri python3-oauth python3-pyasn1
python3-secretstorage python3-simplejson python3-software-properties
python3-urllib3 python3-wadllib python3-zope.interface quadrapassel rygel
rygel-playbin rygel-tracker snapd-login-service swell-foop tali
telepathy-idle telepathy-logger telepathy-mission-control-5
ubuntu-system-service unattended-upgrades unity-control-center-faces
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
ca-certificates*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 436 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 265912 files and directories currently installed.)
Removing ca-certificates (20170717~17.04.1) ...
Removing dangling symlinks from /etc/ssl/certs... done.
Processing triggers for man-db (2.7.6.1-2) ...
(Reading database ... 265739 files and directories currently installed.)
Removing ca-certificates (20170717~17.04.1) ...
Purging configuration files for ca-certificates (20170717~17.04.1) ...
Removing dangling symlinks from /etc/ssl/certs... done.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apg apturl-common avahi-utils bubblewrap cups-pk-helper five-or-more flatpak
fonts-dejavu-extra four-in-a-row gir1.2-grilo-0.3 gir1.2-gspell-1
gir1.2-mediaart-2.0 gnome-chess gnome-clocks gnome-control-center-data
gnome-dictionary gnome-games gnome-klotski gnome-nibbles gnome-robots
gnome-software-common gnome-sound-recorder gnome-taquin gnome-tetravex
hitori hoichess iagno ippusbxd java-common libatk-wrapper-java
libatk-wrapper-java-jni libcaribou-gtk-module libcaribou-gtk3-module
libfile-listing-perl libflatpak0 libfont-afm-perl libgdict-1.0-10
libgdict-common libgsound0 libhtml-form-perl libhtml-format-perl
libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
libhttp-negotiate-perl libmission-control-plugins0 libnet-http-perl
libnss-myhostname libostree-1-1 librygel-core-2.6-2 librygel-db-2.6-2
librygel-renderer-2.6-2 librygel-renderer-gst-2.6-2 librygel-server-2.6-2
libsnapd-glib1 libtie-ixhash-perl libwww-robotrules-perl
libxml-xpathengine-perl lightsoff polari python3-cffi-backend python3-crypto
python3-cryptography python3-cups python3-idna python3-keyring
python3-keyrings.alt python3-lazr.uri python3-oauth python3-pyasn1
python3-secretstorage python3-simplejson python3-software-properties
python3-urllib3 python3-wadllib python3-zope.interface quadrapassel rygel
rygel-playbin rygel-tracker snapd-login-service swell-foop tali
telepathy-idle telepathy-logger telepathy-mission-control-5
ubuntu-system-service unattended-upgrades unity-control-center-faces
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
ca-certificates
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/167 kB of archives.
After this operation, 436 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package ca-certificates.
(Reading database ... 265740 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20170717~17.04.1_all.deb ...
Unpacking ca-certificates (20170717~17.04.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up ca-certificates (20170717~17.04.1) ...
/var/lib/dpkg/info/ca-certificates.postinst: 147: /var/lib/dpkg/info/ca-certificates.postinst: update-ca-certificates: not found
dpkg: error processing package ca-certificates (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
ca-certificates
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vmd12916:~# bash <(wget --no-check-certificate -O - 'https://sinusbot-installer.de/download.php?s=7975dc44508a44a86a419537e8a6c07f&t=1514332709')
--2017-12-27 00:48:37-- https://sinusbot-installer.de/download.php?s=7975dc44508a44a86a419537e8a6c07f&t=1514332709
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.
WARNING: cannot verify sinusbot-installer.de's certificate, issued by 'CN=Let\'s Encrypt Authority X3,O=Let\'s Encrypt,C=US':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 34270 (33K) [application/octet-stream]
Saving to: 'STDOUT'

- 100%[===================>] 33.47K --.-KB/s in 0s

2017-12-27 00:48:37 (394 MB/s) - written to stdout [34270/34270]

Checking for the latest latest installer version
Setting up ca-certificates (20170717~17.04.1) ...
/var/lib/dpkg/info/ca-certificates.postinst: 147: /var/lib/dpkg/info/ca-certificates.postinst: update-ca-certificates: not found
dpkg: error processing package ca-certificates (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
ca-certificates
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error on line 66. 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: "". Please try to execute it manually and attach the output to the bug report in the forum thread.
 

KosmicReeds

Donor
is awesome!
@Ironeer

Hmmm,

You can give this a go again (bit different) for the ca-certificates issue;

Code:
sudo apt-get --purge remove ca-certificates

sudo apt-get install -f ca-certificates

//then test it

update-ca-certificates

//can also try

update-ca-certificates --fresh
Code:
//edit - easier | If you want to do it all in one hit, up to you.

sudo apt-get --purge remove ca-certificates && sudo apt-get install -f ca-certificates && update-ca-certificates

update-ca-certificates --fresh

You can try this;

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f

See if this changes anything.

Also, can you go check: /var/lib/dpkg/info/ca-certificates.postinst : and rightclick+edit, then see if it has something similar to the following;
Code:
# This file lists certificates that you wish to use or to ignore to be
# installed in /etc/ssl/certs.
# update-ca-certificates(8) will update /etc/ssl/certs by reading this file.
#
# This is autogenerated by dpkg-reconfigure ca-certificates.
# Certificates should be installed under /usr/share/ca-certificates
# and files with extension '.crt' is recognized as available certs.
#
# line begins with # is comment.
# line begins with ! is certificate filename to be deselected.
#
EOF
      (echo $CERTS_ENABLED | tr ',' '\n'; \
       echo $CERTS_AVAILABLE | tr ',' '\n') | \
        sed -e 's/^[[:space:]]*//' | \
        sort | uniq -c | \
        sed -e 's/^[[:space:]]*2[[:space:]]*//' \
            -e 's/^[[:space:]]*1[[:space:]]*/!/' \
        >> /etc/ca-certificates.conf
    fi
    # update /etc/ssl/certs without running the hooks
    # fix bogus symlink to ca-certificates.crt on upgrades; see
    # Debian #643667; drop after wheezy
    if dpkg --compare-versions "$2" lt-nl 20111025; then
        update-ca-certificates --hooksdir "" --fresh
    else
        update-ca-certificates --hooksdir ""
    fi
    # deferred update of /etc/ssl/certs including running the hooks
    dpkg-trigger --no-await update-ca-certificates
    ;;

    triggered)
    for trigger in $2; do
        case "$trigger" in
        update-ca-certificates)
            update-ca-certificates
            ;;
        update-ca-certificates-fresh)
            update-ca-certificates --fresh
            ;;
        *)
            echo "postinst called with unknown trigger \`$2'">&2
            exit 1
            ;;
        esac;
    done;
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0

--

@HiitSayZ

Hi!

Your error is when it attempts to install yt-dl, so copy and try the following command to install it yourself then re-run the Bot install;

curl -L -s http://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

// or if above does not work try;

wget -q -O /usr/local/bin/youtube-dl http://yt-dl.org/downloads/latest/youtube-dl

--

See how you both go with these.

Regards.
 
Last edited:

Ironeer

New Member
@Ironeer

Hmmm,

You can give this a go again (bit different) for the ca-certificates issue;

Code:
sudo apt-get --purge remove ca-certificates

sudo apt-get install -f ca-certificates

//then test it

update-ca-certificates

//can also try

update-ca-certificates --fresh
Code:
//edit - easier | If you want to do it all in one hit, up to you.

sudo apt-get --purge remove ca-certificates && sudo apt-get install -f ca-certificates && update-ca-certificates

update-ca-certificates --fresh

You can try this;

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f

See if this changes anything.

Also, can you go check: /var/lib/dpkg/info/ca-certificates.postinst : and rightclick+edit, then see if it has something similar to the following;
Code:
# This file lists certificates that you wish to use or to ignore to be
# installed in /etc/ssl/certs.
# update-ca-certificates(8) will update /etc/ssl/certs by reading this file.
#
# This is autogenerated by dpkg-reconfigure ca-certificates.
# Certificates should be installed under /usr/share/ca-certificates
# and files with extension '.crt' is recognized as available certs.
#
# line begins with # is comment.
# line begins with ! is certificate filename to be deselected.
#
EOF
      (echo $CERTS_ENABLED | tr ',' '\n'; \
       echo $CERTS_AVAILABLE | tr ',' '\n') | \
        sed -e 's/^[[:space:]]*//' | \
        sort | uniq -c | \
        sed -e 's/^[[:space:]]*2[[:space:]]*//' \
            -e 's/^[[:space:]]*1[[:space:]]*/!/' \
        >> /etc/ca-certificates.conf
    fi
    # update /etc/ssl/certs without running the hooks
    # fix bogus symlink to ca-certificates.crt on upgrades; see
    # Debian #643667; drop after wheezy
    if dpkg --compare-versions "$2" lt-nl 20111025; then
        update-ca-certificates --hooksdir "" --fresh
    else
        update-ca-certificates --hooksdir ""
    fi
    # deferred update of /etc/ssl/certs including running the hooks
    dpkg-trigger --no-await update-ca-certificates
    ;;

    triggered)
    for trigger in $2; do
        case "$trigger" in
        update-ca-certificates)
            update-ca-certificates
            ;;
        update-ca-certificates-fresh)
            update-ca-certificates --fresh
            ;;
        *)
            echo "postinst called with unknown trigger \`$2'">&2
            exit 1
            ;;
        esac;
    done;
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0

--

@HiitSayZ

Hi!

Your error is when it attempts to install yt-dl, so copy and try the following command to install it yourself then re-run the Bot install;

curl -L -s http://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

// or if above does not work try;

wget -q -O /usr/local/bin/youtube-dl http://yt-dl.org/downloads/latest/youtube-dl

--

See how you both go with these.

Regards.

The first did no change anything, this is the file you asked for, looks a bit different to me

#! /bin/sh
# postinst script for ca-certificates
#
# see: dh_installdeb(1)

# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see /usr/share/doc/packaging-manual/
#
# quoting from the policy:
# Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.

set -e

each_value() {
echo "$1" |tr ',' '\n' | sed -e 's/^[[:space:]]*//'
}

memberp() {
m="$1"
l="$2"
each_value "$l" | grep -q "^$m\$"
}

delca() {
m="$1"
l="$2"
echo "$l" |sed -e 's|'"$m"', ||' -e 's|'"$m"'$||' -e 's/,[[:space:]]*,/, /' -e 's/^[[:space:]]*//' -e 's/,[[:space:]]*$//'
}

case "$1" in
configure)
if [ ! -e /usr/local/share/ca-certificates ]; then
if mkdir -m $(stat -c %a /usr/local) /usr/local/share/ca-certificates 2>/dev/null; then
chgrp $(stat -c %g /usr/local) /usr/local/share/ca-certificates
fi
# Handle upgrades and allow local admin to override:
# e.g. dpkg-statoverride --add root staff 2775 /usr/local/share/ca-certificates
elif ! dpkg-statoverride --list /usr/local/share/ca-certificates >/dev/null; then
chmod $(stat -c %a /usr/local) /usr/local/share/ca-certificates || true
chown $(stat -c %u /usr/local):$(stat -c %g /usr/local) /usr/local/share/ca-certificates || true
fi

. /usr/share/debconf/confmodule
db_version 2.0
db_capb multiselect
db_metaget ca-certificates/enable_crts choices
CERTS_AVAILABLE="$RET"
db_get ca-certificates/enable_crts
CERTS_ENABLED="$RET"
# XXX unmark seen for next configuration
db_fset ca-certificates/new_crts seen false
db_stop || true
if test -f /etc/ca-certificates.conf; then
# XXX: while in subshell?
while read line
do
if echo "$line" | grep -q '^#'; then
echo "$line"
else
case "$line" in
!*) ca=$(echo "$line" | sed -e 's/^!//');;
*) ca="$line";;
esac
if memberp "$ca" "$CERTS_ENABLED"; then
echo "$ca"
# CERTS_ENABLED=$(delca "$ca" "$CERTS_ENABLED")
elif memberp "$ca" "$CERTS_AVAILABLE" ||
echo "$line" | grep -q '^!'; then
echo "!$ca"
elif [ -f /usr/share/ca-certificates/"$ca" ] || \
[ -f /usr/local/share/ca-certificates/"$ca" ]; then
echo "$ca"
else
echo "!$ca"
fi
# CERTS_AVAILABLE=$(delca "$ca" "$CERTS_AVAILABLE")
fi
done < /etc/ca-certificates.conf > /etc/ca-certificates.conf.dpkg-new
if echo "$CERTS_ENABLED" | egrep -q "^([[:space:]]*,)*[[:space:]]*$"; then
:
else
each_value "$CERTS_ENABLED" | while read ca
do
if grep -q "^$ca" /etc/ca-certificates.conf.dpkg-new; then
:
else
echo "$ca" >> /etc/ca-certificates.conf.dpkg-new
fi
done
fi
each_value "$CERTS_AVAILABLE" | while read ca
do
if memberp "$ca" "$CERTS_ENABLED"; then
:
elif grep -q "^!$ca" /etc/ca-certificates.conf.dpkg-new; then
:
else
echo "!$ca" >> /etc/ca-certificates.conf.dpkg-new
fi
done
if cmp -s /etc/ca-certificates.conf /etc/ca-certificates.conf.dpkg-new; then
rm -f /etc/ca-certificates.conf.dpkg-new
else
mv -f /etc/ca-certificates.conf /etc/ca-certificates.conf.dpkg-old
mv /etc/ca-certificates.conf.dpkg-new /etc/ca-certificates.conf
fi
else
# new file
cat > /etc/ca-certificates.conf <<EOF
# This file lists certificates that you wish to use or to ignore to be
# installed in /etc/ssl/certs.
# update-ca-certificates(8) will update /etc/ssl/certs by reading this file.
#
# This is autogenerated by dpkg-reconfigure ca-certificates.
# Certificates should be installed under /usr/share/ca-certificates
# and files with extension '.crt' is recognized as available certs.
#
# line begins with # is comment.
# line begins with ! is certificate filename to be deselected.
#
EOF
(echo $CERTS_ENABLED | tr ',' '\n'; \
echo $CERTS_AVAILABLE | tr ',' '\n') | \
sed -e 's/^[[:space:]]*//' | \
sort | uniq -c | \
sed -e 's/^[[:space:]]*2[[:space:]]*//' \
-e 's/^[[:space:]]*1[[:space:]]*/!/' \
>> /etc/ca-certificates.conf
fi
# update /etc/ssl/certs without running the hooks
# fix bogus symlink to ca-certificates.crt on upgrades; see
# Debian #643667; drop after wheezy
if dpkg --compare-versions "$2" lt-nl 20111025; then
update-ca-certificates --hooksdir "" --fresh
else
update-ca-certificates --hooksdir ""
fi
# deferred update of /etc/ssl/certs including running the hooks
dpkg-trigger --no-await update-ca-certificates
;;

triggered)
for trigger in $2; do
case "$trigger" in
update-ca-certificates)
update-ca-certificates
;;
update-ca-certificates-fresh)
update-ca-certificates --fresh
;;
*)
echo "postinst called with unknown trigger \`$2'">&2
exit 1
;;
esac;
done;
;;

abort-upgrade|abort-remove|abort-deconfigure)

;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0
 

KosmicReeds

Donor
is awesome!
Hey,

Alright did you try the;
Code:
sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f

If not then do that check, if nothing try the first ca-certs commands again then re-try.

Also, Yeah I only copy pasted the 'update-cs-certificates' section, just wanted to make sure you had that there.
 
Last edited:

Ironeer

New Member
Hey,
yeah I tried it, also double checked and combined it with the first commands. Unfortunately, it didn't change anything.
 

HiitSayZ

Member
Hey, for me it worked, but now, I got this error:

Error on line 254. Report this to the author at https://forum.sinusbot.com/threa ds/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.
/dev/fd/63: line 54: [[ apt-get -qq update: command not found
Command which failed was: " apt-get -qq update". Please try to execute it m anually and attach the output to the bug report in the forum thread.
 

KosmicReeds

Donor
is awesome!
@Ironeer

Try;
Code:
sudo apt-get update –fix-missing

sudo dpkg -configure -a

sudo apt-get install -f

//edit - also run this if it will let you;

sudo apt-get check

//check for any errors (Should of got you to run this ages ago...)
 
Last edited:
Top