Hi all, ich have trouble getting MySQL updated/installed. Emerge runs fine almost until the end but then: usr/lib64/mysql/libmysqlclient.a usr/lib64/mysql/libmysys.a usr/lib64/mysql/libmyisam.a usr/lib64/mysql/libmystrings.a usr/lib64/mysql/libmyisammrg.a usr/lib64/mysql/libvio.a usr/lib64/mysql/libdbug.a portage: CONTENTS line 8 corrupt! portage: CONTENTS line 10 corrupt! portage: CONTENTS line 12 corrupt! portage: CONTENTS line 14 corrupt! portage: CONTENTS line 15 corrupt! portage: CONTENTS line 17 corrupt! portage: CONTENTS line 18 corrupt! portage: CONTENTS line 20 corrupt! portage: CONTENTS line 21 corrupt! portage: CONTENTS line 23 corrupt! portage: CONTENTS line 24 corrupt! portage: CONTENTS line 26 corrupt! >>> Merging dev-db/mysql-5.0.38 to / --- /etc/ --- /etc/mysql/ portage: CONTENTS line 8 corrupt! portage: CONTENTS line 10 corrupt! portage: CONTENTS line 12 corrupt! portage: CONTENTS line 14 corrupt! portage: CONTENTS line 15 corrupt! portage: CONTENTS line 17 corrupt! portage: CONTENTS line 18 corrupt! portage: CONTENTS line 20 corrupt! portage: CONTENTS line 21 corrupt! portage: CONTENTS line 23 corrupt! portage: CONTENTS line 24 corrupt! portage: CONTENTS line 26 corrupt! Traceback (most recent call last): File "/usr/bin/emerge", line 5481, in ? retval = emerge_main() File "/usr/bin/emerge", line 5476, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/bin/emerge", line 4943, in action_build retval = mergetask.merge(pkglist, favorites, mtimedb) File "/usr/bin/emerge", line 3123, in merge prev_mtimes=ldpath_mtimes) File "/usr/lib/portage/pym/portage.py", line 3731, in doebuild vartree=vartree, prev_mtimes=prev_mtimes) File "/usr/lib/portage/pym/portage.py", line 3939, in merge mydbapi=mydbapi, prev_mtimes=prev_mtimes) File "/usr/lib/portage/pym/portage.py", line 7834, in merge cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes) File "/usr/lib/portage/pym/portage.py", line 7430, in treewalk if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime): File "/usr/lib/portage/pym/portage.py", line 7706, in mergeme join(offset, x), cfgfiledict, thismtime): File "/usr/lib/portage/pym/portage.py", line 7706, in mergeme join(offset, x), cfgfiledict, thismtime): File "/usr/lib/portage/pym/portage.py", line 7727, in mergeme if self.isprotected(mydest): File "/usr/lib/portage/pym/portage.py", line 7182, in isprotected mydata = self._installed_instance.getcontents().get(filename, None) AttributeError: 'NoneType' object has no attribute 'get' I looked into CONTENTS and there are very strange entries. I don't know where the come from. Snip from CONTENTS: dir /etc dir /etc/mysql obj /etc/mysql/mysqlaccess.conf 1c49cbdee0aa247b06da56bb02e94e94 1177411870 obj /etc/mysql/my.cnf d41d8cd98f00b204e9800998ecf8427e 1177411870 dir /var dir /var/lib dir /var/lib/mysql dir /var/lib/mysql /var dir /var/lib/mysql /var/lib dir /var/lib/mysql /var/lib/run-mysqld6 dir /var/lib/mysql /var/lib/run-mysqld6 /var dir /var/lib/mysql /var/lib/run-mysqld6 /var/lib dir /var/lib/mysql /var/lib/run-mysqld6 /var/lib/run-mysqld4 obj /var/lib/mysql /var/lib/run-mysqld6 /var/lib/run-mysqld4/.keep_dev-db_mysql-0 d41d8cd98f00b204e9800998ecf8427e 1177411870 dir /var/log dir /var/log/mysql obj /var/log/mysql/.keep_dev-db_mysql-0 d41d8cd98f00b204e9800998ecf8427e 1177411870 dir /var/run dir /var/run/mysqld obj /var/run/mysqld/.keep_dev-db_mysql-0 d41d8cd98f00b204e9800998ecf8427e 1177411870 dir /usr dir /usr/bin obj /usr/bin/mysql_secure_installation 540ef91785bec93508ca155588a8d09c 1177411870 The installation is aborted so i dont have MySQL anymore. Please help me fix this issue. Thanks Daniel Reproducible: Always Steps to Reproduce: 1. emerge mysql 2. look how it fails 3. Actual Results: No MySQL is installed. Expected Results: MySQL should be installed Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5-BackEnd-Build x86_64) ================================================================= System uname: 2.6.19-gentoo-r5-BackEnd-Build x86_64 Intel(R) Xeon(R) CPU 5120 @ 1.86GHz Gentoo Base System release 1.12.9 Timestamp of tree: Wed, 09 May 2007 13:30:09 +0000 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=opteron -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FEATURES="ccache confcache distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo" LINGUAS="en" MAKEOPTS="-j8" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap libg++ midi mysql ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session snmp spl ssl tcpd truetype-fonts type1-fonts unicode xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Not really our fault that your CONTENTS file got corrupt, sorry.
But how could this happen? I never changed the file manually. Currently i'm unable to reinstall mysql. I'm looking for a solution. So what can i do to fix this?
Either move the file away and re-emerge mysql, or fix it (stick dir prefix before dirs which are missing it etc).