When I emerge glibc-2.4-r2, I get the following: !!! Digest verification Failed: !!! /usr/portage/sys-libs/glibc/files/nsswitch.conf !!! Reason: Failed on SHA256 verification !!! Got: 21c07e3c3a6ed59c6bfca84b6e4a4931a82c745fd4d1ce136c69a6c03418b11c !!! Expected: 6c38b8642d5da884327ad678d0351d57be3621562253bd9711394bad87e45e2d I tried to resync, but it did not solve the problem. emerge --info: Portage 2.1_pre7-r5 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r5 x86_64) ================================================================= System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre17 dev-lang/python: 2.4.2-r1 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/ http://213.186.33.37/gentoo-distfiles/ http://213.186.33.38/gentoo-distfiles/ ftp://213.186.33.37/gentoo-distfiles/ http://85.25.128.62" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 aac acpi alsa asf avi bash-completion berkdb bidi bitmap-fonts bzip2 cli crypt cups dri dvd eds emboss encode ffmpeg foomaticdb fortran gif gmp gpm gstreamer hal imagemagick imlib isdnlog jpeg jpeg2k kde kdeenablefinal lzw lzw-tiff mad mp3 mpeg ncurses nls nptl nptlonly nvidia opengl pam pcre pdf pdflib perl pic png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd tetex truetype-fonts type1-fonts unicode usb xcomposite xine xorg xpm xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Upgrade pycrypto if you don't have the latest one. *** This bug has been marked as a duplicate of 131396 ***
It comes out that the problem is my pycrypto. I updated it, and now everything is fine.