Enable universe for any Ubuntu

by angelbob
1 deployments · 1 still active · last rev. 6 years ago

Compatible with: No distros currently supported
						#!/bin/bash

export CODENAME=`lsb_release -sc`

# New sources.list
cat > /etc/apt/sources.list << EOF
## main & restricted repositories

deb http://us.archive.ubuntu.com/ubuntu/ $CODENAME main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ $CODENAME main restricted

deb http://security.ubuntu.com/ubuntu $CODENAME-security main restricted
deb-src http://security.ubuntu.com/ubuntu $CODENAME-security main restricted

## universe repositories
deb http://us.archive.ubuntu.com/ubuntu/ $CODENAME universe
deb-src http://us.archive.ubuntu.com/ubuntu/ $CODENAME universe
deb http://us.archive.ubuntu.com/ubuntu/ $CODENAME-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ $CODENAME-updates universe

deb http://security.ubuntu.com/ubuntu $CODENAME-security universe
deb-src http://security.ubuntu.com/ubuntu $CODENAME-security universe
EOF
apt-get -y update