This HowTo will explain how i managed to update the gentoo build environment Before you update, install the buildroot as described here: http://www.nas-2000.org/mwiki/index.php?title=Compile_Programs_on_the_NAS Note: Unpacking the "stage3-armv4l-2005.1.tar.bz2" seems not to be possible on the NAS. I used a Live Linux CD with the NAS connected via USB. This is also a good idea if you want to backup the environment: #tar -cjpvf gentoo_buildenv_`date +%Y%m%d`.tbz2 ./gentoo BTW: Without updating the build environment it seems not to be possible to install "vim". Installing "ccache" worked for me. Please be aware updating will take a long time, so i installed "screen" (see below). Now i can close the ssh connection, shutdown my computer and reconnect the next morning ;-) after i installed the buildroot i got this message: # emerge --sync * An update to portage is available. It is _highly_ recommended * that you update portage now, before any other packages are updated. * Please do so and then update ALL of your configuration files. i tried to update portage: # emerge sys-apps/portage Calculating dependencies \!!! Cannot resolve a virtual package name to an ebuild. !!! This is a bug, please report it. (virtual/libiconv-0) i found: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml here is a short version: # wget -P /usr/portage/distfiles http://distfiles.gentoo.org/distfiles/portage-2.1.1.tar.bz2 # cd /root # mkdir portage-recover # cd portage-recover # tar xfj /usr/portage/distfiles/portage-2.1.1.tar.bz2 # cd /root/portage-recover/portage-2.1.1 # cp -R pym bin /usr/lib/portage/ # rm -f /usr/lib/portage/bin/sed # emerge --metadata !!! Problem with sandbox binary. Disabling... !!! Problem with sandbox binary. Disabling... >>> Updating Portage cache: 100% to fix the sandbox error i tried: # emerge -av sandbox success :-) # emerge -av sys-apps/portage These are the packages that would be merged, in order: Calculating dependencies... done! [blocks B ]