peter portage # emerge --info Performing Global Updates: /usr/portage/profiles/updates/3Q-2006 (Could take a couple of minutes if you have a lot of binary packages.) .='update pass' *='binary update' @='/var/db move' s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*' ............... Performing Global Updates: /usr/portage/profiles/updates/4Q-2006 (Could take a couple of minutes if you have a lot of binary packages.) .='update pass' *='binary update' @='/var/db move' s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*' . pTraceback (most recent call last): File "/usr/bin/emerge", line 4049, in ? emerge_main() File "/usr/bin/emerge", line 3770, in emerge_main portage.global_updates(settings, trees, mtimedb["updates"]) File "/usr/lib/portage/pym/portage.py", line 6656, in global_updates myupd) File "/usr/lib/portage/pym/portage_update.py", line 198, in update_config_files write_atomic(updating_file, "".join(file_contents[x])) File "/usr/lib/portage/pym/portage_util.py", line 728, in write_atomic f.close() File "/usr/lib/portage/pym/portage_util.py", line 696, in close os.rename(self.name, self._real_name) OSError: [Errno 16] Device or resource busy portage is ver 2.1.1 on a mostly stable x86 (my development laptop). this error started happening after yesterday's update. I should probably mention that my world file was full of zeroes today, but the cause of this is unknown (no system instability but somewhat unclean filesystem (xfs_repair did repair a few entries)). I fixed the fs, recreated the world file and installed a portage package compiled on a different machine, but the problem persists. the relevant strace part is this: 9854 lstat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 9854 open("/.9854", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3 9854 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 9854 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 9854 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75ed000 9854 write(3, "\n# misc system\nsys-fs/unionfs\nsys-process/daemontools-scripts\nnet-misc/openvpn\nnet-misc/open ssh\nnet-firewall/ipsec-tools\napp-admin/authprogs\nnet-ftp/vsftpd\nnet-dns/resolvconf-gentoo\n\nnet-wireless/wir eless-tools\nnet-wireless/kismet\nnet-wireless/aircrack-ng"..., 1439) = 1439 9854 close(3) = 0 9854 munmap(0xb75ed000, 4096) = 0 9854 stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 9854 stat64("/.9854", {st_mode=S_IFREG|0644, st_size=1439, ...}) = 0 9854 futex(0x804a460, FUTEX_WAKE, 1) = 0 9854 chmod("/.9854", 0755) = 0 9854 rename("/.9854", "/") = -1 EBUSY (Device or resource busy) 9854 unlink("/.9854") = 0 9854 write(2, "Traceback (most recent call last):\n", 35) = 35 upon further investigation, I have in my /etc/portage/package.keywords: net-misc/yate (but yate is no longer installed) and when portage tries to do the quarterly update (4Q2006 contains "move net-misc/yate net-voip/yate"), it breaks with that error. if I remove net-misc/yate from package.keywords everything is ok: peter portage # emerge --info Performing Global Updates: /usr/portage/profiles/updates/4Q-2006 (Could take a couple of minutes if you have a lot of binary packages.) .='update pass' *='binary update' @='/var/db move' s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*' .. ** Skipping packages. Run 'fixpackages' or set it in FEATURES to fix the tbz2's in the packages directory. Note: This can take a very long time. Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.18-l030 i686) ================================================================= System uname: 2.6.18-l030 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.12.5 Last Sync: Tue, 24 Oct 2006 06:20:01 +0000 ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 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-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig collision-protect cvs distlocks metadata-transfer sandbox sfperms sign strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="ro" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/spool" PORTDIR="/usr/portage" SYNC="rsync://mirrors.bu.avira.com/gentoo-portage" USE="X acpi alsa apm berkdb bzip2 caps crypt crypto cups curl dri dvd elibc_glibc gdbm gif gps gtk gtk2 imap input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 jpeg jpeg2k kernel_linux linguas_ro lirc lirc_devices_sir mmx ncurses nptl ogg opengl oss pam png readline sdl slang sse sse2 ssl threads tiff truetype unicode usb userland_GNU video_cards_radeon x86 xinerama xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY bug? filesystem corruption?
*** This bug has been marked as a duplicate of 147010 ***