This should work:
export ARCH=`dpkg --print-architecture` if [ $ARCH == 'armhf' ]; then ARCHIVE_SOURCE=http://ports.ubuntu.com/ubuntu-ports else ARCHIVE_SOURCE=http://archive.ubuntu.com/ubuntu/ fi
echo deb $ARCHIVE_SOURCE $DISTRIB_CODENAME universe >> /etc/apt/sources.list
This should work:
export ARCH=`dpkg --print- architecture` ports.ubuntu. com/ubuntu- ports archive. ubuntu. com/ubuntu/
if [ $ARCH == 'armhf' ]; then
ARCHIVE_SOURCE=http://
else
ARCHIVE_SOURCE=http://
fi
echo deb $ARCHIVE_SOURCE $DISTRIB_CODENAME universe >> /etc/apt/ sources. list