Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Cant update world; x11-misc/xkbdata-1.0.1 is corrupt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
BugenhagenX3
n00b
n00b


Joined: 14 Mar 2008
Posts: 3

PostPosted: Fri Mar 14, 2008 3:22 pm    Post subject: [SOLVED]Cant update world; x11-misc/xkbdata-1.0.1 is corrupt Reply with quote

I tried to update world and got the following error message:

Code:

Vimes ~ # emerge -uavDN world

These are the packages that would be merged, in order:

Calculating world dependencies \Traceback (most recent call last):
  File "/usr/bin/emerge", line 6971, in <module>
    retval = emerge_main()
  File "/usr/bin/emerge", line 6965, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 6221, in action_build
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 3032, in xcreate
    self.target_root, mydep, raise_on_missing=True, arg=mydep):
  File "/usr/bin/emerge", line 2437, in select_dep
    metadata=selected_pkg[1], rev_dep=rev_deps, arg=arg):
  File "/usr/bin/emerge", line 1871, in create
    parent_arg=arg):
  File "/usr/bin/emerge", line 2430, in select_dep
    rev_dep=rev_deps, arg=arg):
  File "/usr/bin/emerge", line 1871, in create
    parent_arg=arg):
  File "/usr/bin/emerge", line 2430, in select_dep
    rev_dep=rev_deps, arg=arg):
  File "/usr/bin/emerge", line 1871, in create
    parent_arg=arg):
  File "/usr/bin/emerge", line 2227, in select_dep
    myroot=myroot, trees=self.trees)
  File "/usr/lib/portage/pym/portage.py", line 5440, in dep_check
    use_binaries=use_binaries, trees=trees)
  File "/usr/lib/portage/pym/portage.py", line 5202, in dep_zapdeps
    use_binaries=use_binaries, trees=trees)
  File "/usr/lib/portage/pym/portage.py", line 5248, in dep_zapdeps
    avail_pkg = best(mydbapi.match(atom))
  File "/usr/lib/portage/pym/portage.py", line 7466, in match
    return self.xmatch("match-visible",mydep)
  File "/usr/lib/portage/pym/portage.py", line 7438, in xmatch
    self.xmatch("list-visible", mykey, mydep=mykey, mykey=mykey))
  File "/usr/lib/portage/pym/portage.py", line 7372, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 7481, in visible
    metadata = dict(izip(db_keys, self.aux_get(cpv, db_keys)))
  File "/usr/lib/portage/pym/portage.py", line 7126, in aux_get
    self.auxdb[mylocation][mycpv] = mydata
  File "/usr/lib/portage/pym/cache/template.py", line 63, in __setitem__
    self._setitem(cpv, d)
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 87, in _setitem
    raise cache_errors.CacheCorruption(cpv, e)
cache.cache_errors.CacheCorruption: x11-misc/xkbdata-1.0.1 is corrupt: [Errno 1] Operation not permitted


I noticed the last line mentioned xkbdata, so I figured I could just unmerge that and go ahead, but emerge -C xkbdata says it's not installed.

I tried to emerge it, thinking it may help, somehow and got the following:

Code:

Vimes ~ # emerge -av xkbdata

These are the packages that would be merged, in order:

Calculating dependencies /

!!! Problem in 'x11-misc/xkbdata' dependencies.
!!! x11-misc/xkbdata-1.0.1 is corrupt: [Errno 1] Operation not permitted cache.cache_errors
Traceback (most recent call last):
  File "/usr/bin/emerge", line 6971, in <module>
    retval = emerge_main()
  File "/usr/bin/emerge", line 6965, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 6232, in action_build
    retval, favorites = mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 2078, in select_files
    self.mysd = self.select_dep(myroot, myatom, arg=myarg)
  File "/usr/bin/emerge", line 2264, in select_dep
    myeb_matches = portdb.xmatch("match-visible", x)
  File "/usr/lib/portage/pym/portage.py", line 7438, in xmatch
    self.xmatch("list-visible", mykey, mydep=mykey, mykey=mykey))
  File "/usr/lib/portage/pym/portage.py", line 7372, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 7481, in visible
    metadata = dict(izip(db_keys, self.aux_get(cpv, db_keys)))
  File "/usr/lib/portage/pym/portage.py", line 7126, in aux_get
    self.auxdb[mylocation][mycpv] = mydata
  File "/usr/lib/portage/pym/cache/template.py", line 63, in __setitem__
    self._setitem(cpv, d)
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 87, in _setitem
    raise cache_errors.CacheCorruption(cpv, e)
cache.cache_errors.CacheCorruption: x11-misc/xkbdata-1.0.1 is corrupt: [Errno 1] Operation not permitted


I've tried re-syncing, nothing. I've tried masking >=x11-misc/xkbdata-1.0.1, still nothing.

Although I'd consider myself at least an intermediate Linux user, I don't know that much about portage and stuff, so I'm not sure if this is a bug or something that just went wrong on my box. I'm pretty much at a loss as to how to fix this.

Just in case you may need it, emerge --info:

Code:

Vimes ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.25-rc4 i686)
=================================================================
System uname: 2.6.25-rc4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Fri, 14 Mar 2008 14:45:03 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mpd"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac acl alsa avahi bash-completion berkdb big-tables bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread dvi emacs encode ffmpeg firefox flac fortran gdbm gif gnome gpm gtk hal iconv id3tag ipv6 isdnlog java jpeg latex mad midi mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python readline reflection session spl ssl svg symlink tcpd theora threads unicode vim-syntax vorbis x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Last edited by BugenhagenX3 on Sat Mar 15, 2008 9:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
mjf55
Guru
Guru


Joined: 25 Aug 2007
Posts: 372

PostPosted: Fri Mar 14, 2008 4:35 pm    Post subject: Reply with quote

look to see if xkbdata-1.0.1 is in /usr/portage/distfiles. If it is, erase (rm) it.
do a new emerge --sync
do emerge -av kbdata
if it all works, then go mack to emerge -uvDN world
let us know what happens.
_________________
Mark
No longer a n00b, but still a 'Kool Kid' wannabe
Back to top
View user's profile Send private message
BugenhagenX3
n00b
n00b


Joined: 14 Mar 2008
Posts: 3

PostPosted: Fri Mar 14, 2008 5:33 pm    Post subject: Reply with quote

xkbdtat-1.0.1 wasn't in /usr/portage/distfiles. There were a couple other files that started with xkb, I deleted them and tried again. Same error occured.
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Fri Mar 14, 2008 7:06 pm    Post subject: Reply with quote

Seems like you're running an unstable system (ACCEPT_KEYWORDS="x86 ~x86"), so this may be as well a bug in portage. But since the offending entry is just one, try to remove manually every evidence of it from the system. From root run:
Code:
rm -Rf /usr/portage/x11-misc/xkbdata
rm -Rf /usr/portage/distfiles/xkbdata*
rm /usr/portage/licenses/xkbdata
rm /usr/portage/metadata/cache/x11-misc/xkbdata*
rm /var/cache/edb/dep/usr/portage/x11-misc/xkbdata*

Then resync portage. If that fails you could also try to entirely rebuild metadata cache:
Code:
rm -Rf /var/cache/edb
emerge --metadata

Hope this works :)
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
BugenhagenX3
n00b
n00b


Joined: 14 Mar 2008
Posts: 3

PostPosted: Sat Mar 15, 2008 9:48 pm    Post subject: Reply with quote

Neo2 wrote:

Code:
rm -Rf /var/cache/edb
emerge --metadata



That worked perfectly, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum