#!/bin/sh if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1 fi wget http://ubuntu-x2e/PublicKey wget http://ubuntu/sources.list apt-key add PublicKey cp sources.list /etc/apt/ apt-get update