The first thing you should install is apt-listbugs
apt-get install apt-listbugs
This is specially important on a Testing or Unstable system. It warns you about know bugs for any package you install using apt.
If you get the following message at the end of anapt-get update
:
E: Dynamic MMap ran out of room
Then just add:
APT::Cache-Limit 12582912;
to
/etc/apt/apt.conf
(You probably will have to create the file) or use the following command:
echo "APT::Cache-Limit 12582912;" >> /etc/apt/apt.conf
And rerun apt-get update
You should not need the non-US archive unless you are using a version of Debian from before Debian 3.1(Woody and older).
# # Security # deb http://security.debian.org stable/updates main contrib non-free deb http://security.debian.org testing/updates main contrib non-free # # Debian Main Server # deb http://non-us.debian.org/debian-non-US/ unstable/non-US main contrib non-free deb http://non-us.debian.org/debian-non-US/ dists/proposed-updates/ deb http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free deb http://non-us.debian.org/debian-non-US/ testing/non-US main contrib non-free deb http://ftp.debian.org/debian stable main contrib non-free deb http://ftp.debian.org/debian testing main contrib non-free deb http://ftp.debian.org/debian dists/proposed-updates/ deb http://ftp.debian.org/debian experimental main #
# # Debian Main Server - Sources # deb-src http://non-us.debian.org/debian-non-US/ unstable/non-US main contrib non-free deb-src http://non-us.debian.org/debian-non-US/ dists/proposed-updates/ deb-src http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free deb-src http://non-us.debian.org/debian-non-US/ testing/non-US main contrib non-free deb-src http://pandora.debian.org/debian-security stable/updates main contrib deb-src http://pandora.debian.org/debian-security stable/updates non-free deb-src http://ftp.debian.org/debian stable main contrib non-free deb-src http://ftp.debian.org/debian testing main contrib non-free deb-src http://ftp.debian.org/debian unstable main contrib non-free deb-src http://ftp.debian.org/debian dists/proposed-updates/ #
# # UA Debian Mirror # deb http://ftp.ua.pt/arch/debian stable main contrib non-free deb http://ftp.ua.pt/arch/debian testing main contrib non-free deb http://ftp.ua.pt/arch/debian unstable main contrib non-free deb http://ftp.ua.pt/arch/debian-non-US stable/non-US main contrib non-free deb http://ftp.ua.pt/arch/debian-non-US testing/non-US main contrib non-free deb http://ftp.ua.pt/arch/debian-non-US unstable/non-US main contrib non-free deb http://ftp.ua.pt/arch/debian experimental main # # # Darkstar Debian Mirror # deb http://darkstar.ist.utl.pt/debian/ stable main contrib non-free deb http://darkstar.ist.utl.pt/debian/ testing main contrib non-free deb http://darkstar.ist.utl.pt/debian/ unstable main contrib non-free deb http://darkstar.ist.utl.pt/debian/ experimental main #
# # UEvora Debian Mirror # deb http://ftp.uevora.pt/pub/debian stable main contrib non-free deb http://ftp.uevora.pt/pub/debian testing main contrib non-free deb http://ftp.uevora.pt/pub/debian unstable main contrib non-free deb http://ftp.uevora.pt/pub/debian dists/proposed-updates/ deb http://ftp.uevora.pt/pub/linux/debian-non-US stable/non-US main contrib non-free deb http://ftp.uevora.pt/pub/linux/debian-non-US testing/non-US main contrib non-free deb http://ftp.uevora.pt/pub/linux/debian-non-US unstable/non-US main contrib non-free deb http://ftp.uevora.pt/pub/linux/debian dists/woody-proposed-updates/ #
# # UCoimbra Debian Mirror # deb http://ftp.eq.uc.pt/software/unix/Linux/debian stable main contrib non-free deb http://ftp.eq.uc.pt/software/unix/Linux/debian testing main contrib non-free deb http://ftp.eq.uc.pt/software/unix/Linux/debian unstable main contrib non-free deb http://ftp.eq.uc.pt/software/unix/Linux/debian-security stable/updates main contrib non-free deb http://ftp.eq.uc.pt/software/unix/Linux/debian-non-US stable/non-US main contrib non-free deb http://ftp.eq.uc.pt/software/unix/Linux/debian-non-US testing/non-US main contrib non-free deb http://ftp.eq.uc.pt/software/unix/Linux/debian-non-US unstable/non-US main contrib non-free #
# # CPRM Debian Mirror # Actualmente o CPRM não tem repositorio de Debian... não sei se voltara a ter. # deb http://tux.cprm.net/debian/non-US/ stable/non-US main contrib non-free deb http://tux.cprm.net/debian/non-US/ testing/non-US main contrib non-free deb http://tux.cprm.net/debian/non-US/ unstable/non-US main contrib non-free deb http://tux.cprm.net/debian stable main contrib non-free deb http://tux.cprm.net/debian testing main contrib non-free deb http://tux.cprm.net/debian unstable main contrib non-free deb http://tux.cprm.net/debian experimental main #
# # Telepac Debian Mirror # deb ftp://ftp.telepac.pt/pub/debian-non-US/ stable/non-US main contrib non-free deb ftp://ftp.telepac.pt/pub/debian-non-US/ testing/non-US main contrib non-free deb ftp://ftp.telepac.pt/pub/debian-non-US/ unstable/non-US main contrib non-free deb ftp://ftp.telepac.pt/pub/debian stable main contrib non-free deb ftp://ftp.telepac.pt/pub/debian testing main contrib non-free deb ftp://ftp.telepac.pt/pub/debian unstable main contrib non-free deb ftp://ftp.telepac.pt/pub/debian experimental main #
# # UEvora Debian Mirror # deb http://ftp.uevora.pt/pub/debian stable main contrib non-free deb http://ftp.uevora.pt/pub/debian testing main contrib non-free deb http://ftp.uevora.pt/pub/debian unstable main contrib non-free deb http://ftp.uevora.pt/pub/debian dists/proposed-updates/ deb http://ftp.uevora.pt/pub/linux/debian-non-US stable/non-US main contrib non-free deb http://ftp.uevora.pt/pub/linux/debian-non-US testing/non-US main contrib non-free deb http://ftp.uevora.pt/pub/linux/debian-non-US unstable/non-US main contrib non-free deb http://ftp.uevora.pt/pub/linux/debian dists/woody-proposed-updates/ #
# # Experimental Gnome Packages # deb http://pkg-gnome.alioth.debian.org/debian/ unstable main deb http://pkg-gnome.alioth.debian.org/debian/ experimental main #
For java i use java-package to build a debian package from the official Sun packages in http://java.sun.com. Check it, it‘s quite simple to use.
# # Blackdown Java # deb ftp://ftp.nluug.nl/pub/os/Linux/java/jdk/debian woody non-free deb http://www.tux.org/pub/java/debian unstable main non-free deb http://ftp.tux.org/pub/java/debian unstable main non-free deb ftp://ftp.easynet.be/blackdown/debian/ unstable main non-free #
# # DVD/mplayer packages # deb http://www.debian-multimedia.org stable main deb http://www.debian-multimedia.org testing main deb http://www.debian-multimedia.org unstable main deb http://www.debian-multimedia.org experimental main #
# # The X Strike Force (XFree86) # deb http://people.debian.org/~branden/packages/ sid/$(ARCH)/ #