Gentoo Archives: gentoo-user

From: Jean-Baptiste Mestelan <mestelan@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Damaged file in portage cache
Date: Thu, 14 Jun 2007 00:55:09
Message-Id: eaa71e3e0706131749y330bba13l648aa8913a018ed4@mail.gmail.com
1 Hello.
2
3 I cannot emerge --sync my system anymore, as this brings out the
4 following error :
5 >>> Updating Portage cache: Traceback (most recent call last):
6 File "/usr/bin/emerge", line 5530, in ?
7 retval = emerge_main()
8 File "/usr/bin/emerge", line 5489, in emerge_main
9 action_metadata(settings, portdb, myopts)
10 File "/usr/bin/emerge", line 4300, in action_metadata
11 eclass_cache=ec, verbose_instance=noise_maker)
12 File "/usr/lib/portage/pym/cache/util.py", line 22, in mirror_cache
13 dead_nodes = dict.fromkeys(trg_cache.keys())
14 File "/usr/lib/portage/pym/cache/template.py", line 95, in keys
15 return tuple(self.iterkeys())
16 File "/usr/lib/portage/pym/cache/flat_hash.py", line 122, in iterkeys
17 st = os.lstat(p)
18 OSError: [Errno 2] No such file or directory:
19 '/var/cache/edb/dep/usr/portage/net-misc/vmpsd-1.3-r\x12'
20
21
22 So, it looks like the problem is with the content of the directory
23 /var/cache/edb/dep/usr/portage/net-misc/
24
25 localhost net-misc # cd /var/cache/edb/dep/usr/portage/net-misc/
26 localhost net-misc # ls ./ (TAB PRESSED)
27 asterisk-chan_capi-0.4.^P_pre1 netprofiles)ims-0.1.0134 stuNnel-4.15
28 htbinit^I0.8.5 netstat)nat-1.4.7
29 suite3230-3.3.2_p1
30 icaclient-9^N0-r1 networkianager-0.6.4_pre20061028
31 tightvnc-1.^R.9-r4
32 iputils)20060512 sipsak-0.9.^Q
33 vmpsd-1.3-r^R
34 linUx-identd-1.3-r1 stoje-2.2e
35 vnc-4.1^N2-r1
36 lksctp-Pools-1.0.4 stone-2^N2c
37 memcached-1^N1.13-r1 streamtuner-0.9^Y.99
38
39 This shows that the offending file somehow exists (?); but these files
40 cannot be accessed, as the ls command shows :
41 localhost net-misc # ls
42 ls: cannot access vmpsd-1.3-r: No such file or directory
43 ls: cannot access streamtuner-0.9.99: No such file or directory
44 ls: cannot access vnc-4.12-⎼1: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
45 ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎻⎼⎺°␋┌␊⎽)␋└⎽-0.1.0134: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
46 ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ ┼␊├⎽├▒├)┼▒├-1.4.7: N⎺ ⎽┤␌␤ °␋┌␊ ⎺⎼ ␍␋⎼␊␌├⎺⎼≤
47 <+ more garbage >
48
49 Is my filesystem damaged ?
50 rm -rf /var/cache/edb/dep/usr/portage/net-misc has no effect on these
51 problematic files ; I have executed fsck.ext2 on the filesystem, and
52 this reported no error.
53
54 Many thanks for your helpful suggestions.

Replies

Subject Author
Re: [gentoo-user] Damaged file in portage cache Philip Webb <purslow@×××××××××.ca>
Re: [gentoo-user] Damaged file in portage cache Rudmer van Dijk <rudmer.van.dijk@××××××.nl>