Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Cleaning /var/lib/portage/packages -- a big mistake?
Date: Sun, 27 May 2007 19:36:10
Message-Id: 9acccfe50705271227i4dbaf9banb00aee6fb9c6f777@mail.gmail.com
In Reply to: [gentoo-user] Cleaning /var/lib/portage/packages -- a big mistake? by Kevin O'Gorman
1 Another oops: make that directory /usr/portage/packages.
2
3 ++ kevin
4
5 On 5/27/07, I wrote:
6 > I'm trying to clean up my hard drive to make it feasible to back up
7 > the root partition. I cleaned out /usr/portage/disfiles (10 GB) with
8 > no problem. But...
9 >
10 > I also cleaned out /usr/portage/packages (10 GB) but now emerge --sync
11 > is complaining about a large number of them, and apparently cannot
12 > update its cache. I just moved them to another partition, they're not
13 > really gone, but I'd like to not be carrying around so many of them.
14 >
15 > I've been running with FEATURES="buildpkg" on in /etc/make.conf, so
16 > I've accumulated a lot of
17 > these things. How do I now clean up my act? If there's a way, I'd
18 > like to keep building them, but be able to manage them without ruining
19 > portage.
20 >
21 > Most of the messages said the package "should be deleted". This
22 > mystifies my as in effect
23 > that's what I already did. What does it want me to do?
24 >
25 > The emerge --sync died eventually. Maybe one or more of the packages
26 > is more vital than most. So there may be packages I should not
27 > manage. Here's the tail end of the output:
28 >
29 >
30 > !!! Invalid binary package: '/usr/portage/packages/All/less-394.tbz2'
31 > !!! This binary package is not recoverable and should be deleted.
32 > !!! Invalid binary package: '/usr/portage/packages/All/pycrypto-2.0.1-r5.tbz2'
33 > !!! This binary package is not recoverable and should be deleted.
34 > !!! Invalid binary package: '/usr/portage/packages/All/lsof-4.76.tbz2'
35 > !!! This binary package is not recoverable and should be deleted.
36 > !!! Invalid binary package: '/usr/portage/packages/All/rsync-2.6.8-r2.tbz2'
37 > !!! This binary package is not recoverable and should be deleted.
38 > !!! Invalid binary package: '/usr/portage/packages/All/man-pages-2.31.tbz2'
39 > !!! This binary package is not recoverable and should be deleted.
40 > Traceback (most recent call last):
41 > File "/usr/bin/emerge", line 5530, in ?
42 > retval = emerge_main()
43 > File "/usr/bin/emerge", line 5487, in emerge_main
44 > action_sync(settings, trees, mtimedb, myopts, myaction)
45 > File "/usr/bin/emerge", line 4207, in action_sync
46 > if portage.global_updates(settings, trees, mtimedb["updates"]):
47 > File "/usr/lib/portage/pym/portage.py", line 8163, in global_updates
48 > trees["/"]["bintree"].move_slot_ent(update_cmd)
49 > File "/usr/lib/portage/pym/portage.py", line 6413, in move_slot_ent
50 > self.populate()
51 > File "/usr/lib/portage/pym/portage.py", line 6570, in populate
52 > mycat = mytbz2.getfile("CATEGORY")
53 > File "/usr/lib/portage/pym/xpak.py", line 345, in getfile
54 > a=open(self.file,"r")
55 > IOError: [Errno 2] No such file or directory:
56 > '/usr/portage/packages/All/perl-cleaner-1.03.tbz2'
57 >
58 > portage #
59 >
60 > Pointers, please...
61 >
62 > ++ kevin
63
64 --
65 Kevin O'Gorman, PhD
66 --
67 gentoo-user@g.o mailing list