View previous topic :: View next topic |
Author |
Message |
count Apprentice
Joined: 28 May 2002 Posts: 242 Location: Dalton, MA
|
Posted: Tue Nov 28, 2006 4:54 pm Post subject: emerge --sync failing on cache update [SOLVED] |
|
|
I've got an old Gentoo system that hasn't been updated in over a year and am trying to bring it back up to date. the --sync's were working fine at first, but after updating about half of the ~400 packages, emerge --sync keeps breaking when performing the cache update.
Here is the output Code: | Number of files: 147322
Number of files transferred: 2328
Total file size: 157757441 bytes
Total transferred file size: 6236365 bytes
Literal data: 6236365 bytes
Matched data: 0 bytes
File list size: 3459215
File list generation time: 5.696 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 57519
Total bytes received: 9811873
sent 57519 bytes received 9811873 bytes 44759.15 bytes/sec
total size is 157757441 speedup is 15.98
>>> Updating Portage cache: Traceback (most recent call last):
File "/usr/bin/emerge", line 4049, in ?
emerge_main()
File "/usr/bin/emerge", line 4006, in emerge_main
action_sync(settings, trees, mtimedb, myopts, myaction)
File "/usr/bin/emerge", line 2924, in action_sync
action_metadata(settings, portdb, myopts)
File "/usr/bin/emerge", line 3019, in action_metadata
eclass_cache=ec, verbose_instance=noise_maker)
File "/usr/lib/portage/pym/cache/util.py", line 47, in mirror_cache
if trg and not write_it:
File "/usr/lib/python2.4/UserDict.py", line 170, in __len__
return len(self.keys())
File "/usr/lib/portage/pym/cache/mappings.py", line 54, in keys
return list(self.__iter__())
File "/usr/lib/portage/pym/cache/mappings.py", line 48, in __iter__
for k in self.orig.iterkeys():
File "/usr/lib/python2.4/UserDict.py", line 103, in iterkeys
return self.__iter__()
File "/usr/lib/portage/pym/cache/mappings.py", line 83, in __iter__
return iter(self.keys())
File "/usr/lib/portage/pym/cache/mappings.py", line 87, in keys
self.d.update(self.pull())
File "/usr/lib/portage/pym/cache/flat_hash.py", line 29, in callit
return args[0](*args[1:]+args2)
File "/usr/lib/portage/pym/cache/flat_hash.py", line 47, in _pull
raise cache_errors.CacheCorruption(cpv, e)
cache.cache_errors.CacheCorruption: app-accessibility/SphinxTrain-0.9.1-r1 is corrupt: dictionary update sequence element #0 has length 1; 2 is required
thud ~ # |
Could it be because some of my packages aren't up to date, or some need to be re-built? Or does my cache need to be cleared? Any suggestions? Need any more information? _________________ - Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/
Last edited by count on Tue Nov 28, 2006 8:54 pm; edited 1 time in total |
|
Back to top |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Tue Nov 28, 2006 5:14 pm Post subject: Re: emerge --sync failing on cache update |
|
|
Try:
Sveikinu
Arfrever |
|
Back to top |
|
|
count Apprentice
Joined: 28 May 2002 Posts: 242 Location: Dalton, MA
|
Posted: Tue Nov 28, 2006 5:48 pm Post subject: Re: emerge --sync failing on cache update |
|
|
Tried that, sync still fails _________________ - Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/ |
|
Back to top |
|
|
x22 Apprentice
Joined: 24 Apr 2006 Posts: 208
|
Posted: Tue Nov 28, 2006 7:51 pm Post subject: |
|
|
If you have current stable version of portage it is possible to delete the cache (/var/cache/edb/dep) and recreate it (with emerge --sync or emerge --metadata). |
|
Back to top |
|
|
count Apprentice
Joined: 28 May 2002 Posts: 242 Location: Dalton, MA
|
Posted: Tue Nov 28, 2006 8:53 pm Post subject: |
|
|
Thanks x22, deleting the cache did it! _________________ - Joseph Monti
_________________
This message is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more info visit http://joemonti.org/ |
|
Back to top |
|
|
tam Guru
Joined: 04 Mar 2003 Posts: 569
|
Posted: Mon Dec 04, 2006 4:14 pm Post subject: |
|
|
count wrote: | Thanks x22, deleting the cache did it! |
Same here. Thanks. _________________ http://tam.belchenstuermer.de/ |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Sat Feb 10, 2007 11:27 am Post subject: |
|
|
Moved from Portage & Programming to Duplicate Threads in favour of topic 466613. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
|
|
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
|
|