Ubuntu Pastebin

Paste from ogra at Tue, 7 Jul 2015 09:06:20 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -ex

if [ "$(dpkg --print-architecture)" = "amd64" ]; then
    echo "I: Enabling i386 multiarch support on amd64"
    dpkg --add-architecture i386

    apt-get -y update

    echo "I: Installing libc6:i386 in amd64 image"
    apt-get -y install libc6:i386

    echo "I: Removing /var/lib/apt/lists/*"
    find /var/lib/apt/lists/ -type f | xargs rm -f

    echo "I: Removing /var/cache/apt/*.bin"
    rm -f /var/cache/apt/*.bin
fi
Download as text