#!/bin/bash sysarch=$(ls /var/cache/apt/archives|rev|cut -d\. -f2|cut -d_ -f1|rev|grep -v "all"|uniq -c|sort -nr|head -n 1|awk '{print $2}') export DEBIAN_FRONTEND=noninteractive apt update --allow-unauthenticated --allow-insecure-repositories apt install --allow-unauthenticated -y debian-ports-archive-keyring apt update apt install --fix-broken -y test -z "$(which curl)"&&apt-get install -y curl test -z "$(which wget)"&&apt-get install -y wget test -z "$(which grep)"&&apt-get install -y grep test -z "$(which tail)"&&apt-get install -y coreutils test -z "$(which apt-add-repository)"&&apt-get install -y software-properties-common test -z "$(which debconf-set-selections)"&&apt-get install -y debconf test -z "$(which debconf-get-selections)"&&apt-get install -y debconf-utils test -z "$(which sudo)"&&apt-get install -y sudo test -e "/usr/share/doc/gnupg"||apt-get install -y gnupg test -z "$(which apt-file)"&&apt-get install -y apt-file pushd /tmp > /dev/null wget http://debian.amalgampc.com/debian/arcturus.gpg.key apt-key add arcturus.gpg.key rm arcturus.gpg.key wget http://debian.amalgampc.com/debian/apt-lib cat > /usr/local/bin/arcturus-pkg-lib << EOF source /tmp/apt-lib EOF source ./apt-lib pkg-set-selections apt-prime-debootstrap-system pkg-force-sync rm ./apt-lib rm /usr/local/bin/arcturus-pkg-lib popd > /dev/null pushd /tmp apt install -y arcturus-base apt-mark showmanual|grep arcturus-base >/dev/null||exit #We've now installed the arcturus-base package. Promise. mv /etc/apt/sources.list /etc/apt/sources.list.old apt update source /usr/bin/arcturus-pkg-lib update-system yes|apt-mark auto $(apt-mark showmanual) apt-mark manual arcturus-base popd