mirror of
/repos/baseimage-docker.git
synced 2025-12-30 08:01:31 +01:00
Better way to enable universe and multiverse
Instead of copying over a hardcoded file we just uncomment the correct lines via two simple sed commands. Conflicts: image/sources.list
This commit is contained in:
parent
9f369b5ed7
commit
90262a0460
@ -14,7 +14,8 @@ mkdir -p /etc/container_environment
|
||||
echo -n no > /etc/container_environment/INITRD
|
||||
|
||||
## Enable Ubuntu Universe and Multiverse.
|
||||
cp /build/sources.list /etc/apt/sources.list
|
||||
sed -i 's/^#\s*\(deb.*universe\)$/\1/g' /etc/apt/sources.list
|
||||
sed -i 's/^#\s*\(deb.*multiverse\)$/\1/g' /etc/apt/sources.list
|
||||
apt-get update
|
||||
|
||||
## Fix some issues with APT packages.
|
||||
|
||||
@ -1,25 +0,0 @@
|
||||
deb http://archive.ubuntu.com/ubuntu precise main restricted
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise main restricted
|
||||
|
||||
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted
|
||||
|
||||
deb http://archive.ubuntu.com/ubuntu precise universe
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise universe
|
||||
deb http://archive.ubuntu.com/ubuntu precise-updates universe
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise-updates universe
|
||||
|
||||
deb http://archive.ubuntu.com/ubuntu precise multiverse
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise multiverse
|
||||
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise-updates multiverse
|
||||
|
||||
deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
|
||||
|
||||
deb http://archive.ubuntu.com/ubuntu precise-security main restricted
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted
|
||||
deb http://archive.ubuntu.com/ubuntu precise-security universe
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise-security universe
|
||||
deb http://archive.ubuntu.com/ubuntu precise-security multiverse
|
||||
deb-src http://archive.ubuntu.com/ubuntu precise-security multiverse
|
||||
Loading…
x
Reference in New Issue
Block a user