[Android Q&A, Help & Troubleshooting] memphian:
I'm trying to setup my build enviroment. I have mint linux 14 64bit. when following the guide on http://xda-university.com/as-a-developer/getting-started-building-android-from-source, i seem to be getting errors. the lines it says to use in terminal are

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386

Here is the printout of result.

sudo apt-get install git-core gnupg flex bison gperf build-essential \
> zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
> libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
> libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
> python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
gnupg is already the newest version.
libc6-dev is already the newest version.
zip is already the newest version.
The following extra packages will be installed:
g++-4.7-multilib gcc-4.7-base:i386 gcc-4.7-multilib gcc-multilib
icedtea-6-jre-cacao icedtea-6-jre-jamvm lib32gcc1 lib32gomp1 lib32itm1
lib32quadmath0 lib32stdc++6 libX11-dev libbison-dev libc6:i386
libc6-dev:i386 libc6-dev-i386 libc6-i386 libdrm-dev libdrm-intel1:i386
libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libexpat1:i386
libffi6:i386 libfl-dev libgcc1:i386 libgl1-mesa-dri:i386 libglapi-mesa:i386
libgpm2:i386 libice-dev libllvm3.1:i386 libncurses5:i386 libpciaccess0:i386
libpthread-stubs0 libpthread-stubs0:i386 libpthread-stubs0-dev
libpthread-stubs0-dev:i386 libreadline6:i386 libsm-dev libstdc++6:i386
libtinfo-dev:i386 libtinfo5:i386 libtxc-dxtn-s2tc0:i386 libx11-6:i386
libx11-doc libx11-xcb-dev libx11-xcb1:i386 libxau-dev libxau-dev:i386
libxau6:i386 libxcb-glx0:i386 libxcb-glx0-dev libxcb1:i386 libxcb1-dev
libxcb1-dev:i386 libxdamage-dev libxdamage1:i386 libxdmcp-dev
libxdmcp-dev:i386 libxdmcp6:i386 libxext-dev libxext6:i386 libxfixes-dev
libxfixes3:i386 libxt-dev libxxf86vm-dev libxxf86vm1:i386 lintian
linux-libc-dev linux-libc-dev:i386 m4 mesa-common-dev mingw32-binutils
mingw32-runtime openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
python-pygments x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev
x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev
x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev zlib1g:i386
Suggested packages:
bison-doc lib32stdc++6-4.7-dbg lib32mudflap0 glibc-doc:i386 locales:i386
manpages-dev:i386 libglide3:i386 gpm:i386 libice-doc ncurses-doc:i386
libsm-doc libxcb-doc libxcb-doc:i386 libxext-doc libxt-doc
binutils-multiarch libhtml-parser-perl libperlio-gzip-perl
libtext-template-perl gcc-doc cpp-doc openjdk-6-demo openjdk-6-source
visualvm sun-java6-fonts fonts-ipafont-gothic fonts-ipafont-mincho
ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
python-markdown-doc ttf-bitstream-vera
Recommended packages:
libx11-doc:i386 gcc:i386 c-compiler:i386
The following NEW packages will be installed:
bison curl flex g++-4.7-multilib g++-multilib gcc-4.7-base:i386
gcc-4.7-multilib gcc-multilib git-core gperf icedtea-6-jre-cacao
icedtea-6-jre-jamvm lib32gcc1 lib32gomp1 lib32itm1 lib32quadmath0
lib32stdc++6 libX11-dev libX11-dev:i386 libbison-dev libc6:i386
libc6-dev:i386 libc6-dev-i386 libc6-i386 libdrm-dev libdrm-intel1:i386
libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libexpat1:i386
libffi6:i386 libfl-dev libgcc1:i386 libgl1-mesa-dev libgl1-mesa-dri:i386
libgl1-mesa-glx:i386 libglapi-mesa:i386 libgpm2:i386 libice-dev
libllvm3.1:i386 libncurses5:i386 libncurses5-dev:i386 libpciaccess0:i386
libpthread-stubs0 libpthread-stubs0:i386 libpthread-stubs0-dev
libpthread-stubs0-dev:i386 libreadline6:i386 libreadline6-dev:i386 libsm-dev
libstdc++6:i386 libtinfo-dev:i386 libtinfo5:i386 libtxc-dxtn-s2tc0:i386
libx11-6:i386 libx11-doc libx11-xcb-dev libx11-xcb1:i386 libxau-dev
libxau-dev:i386 libxau6:i386 libxcb-glx0:i386 libxcb-glx0-dev libxcb1:i386
libxcb1-dev libxcb1-dev:i386 libxdamage-dev libxdamage1:i386 libxdmcp-dev
libxdmcp-dev:i386 libxdmcp6:i386 libxext-dev libxext6:i386 libxfixes-dev
libxfixes3:i386 libxml2-utils libxt-dev libxxf86vm-dev libxxf86vm1:i386
linux-libc-dev:i386 m4 mesa-common-dev mingw32 mingw32-binutils
mingw32-runtime openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless
openjdk-6-jre-lib python-markdown python-pygments tofrodos x11proto-core-dev
x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev
x11proto-input-dev x11proto-kb-dev x11proto-xext-dev
x11proto-xf86vidmode-dev xorg-sgml-doctools xsltproc xtrans-dev zlib1g:i386
zlib1g-dev:i386
The following packages will be upgraded:
lintian linux-libc-dev
2 upgraded, 106 newly installed, 0 to remove and 120 not upgraded.
Need to get 45.6 MB/125 MB of archives.
After this operation, 487 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main linux-libc-dev amd64 3.5.0-18.29
404 Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/universe openjdk-6-jre-lib all 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main linux-libc-dev i386 3.5.0-18.29
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre-lib all 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre-headless amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe icedtea-6-jre-cacao amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe icedtea-6-jre-jamvm amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jdk amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.5.0-18.29_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre-lib_6b24-1.11.5-0ubuntu1~12.10.1_all.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre-headless_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.5.0-18.29_i386.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/icedtea-6-jre-cacao_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/icedtea-6-jre-jamvm_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jdk_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Can anyone make heads or tails of this?