From owner-freebsd-questions@FreeBSD.ORG Sun Mar 13 19:10:40 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B46016A4CE for ; Sun, 13 Mar 2005 19:10:40 +0000 (GMT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id E165143D60 for ; Sun, 13 Mar 2005 19:10:39 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32])0.04 <0IDB0052819Q6EI1@vms042.mailsrvcs.net> for freebsd-questions@freebsd.org; Sun, 13 Mar 2005 13:10:38 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id E2D872CE75B; Sun, 13 Mar 2005 11:10:37 -0800 (PST) Date: Sun, 13 Mar 2005 11:10:36 -0800 From: "Michael C. Shultz" In-reply-to: <1110740463l.16115l.1l@BARTON> To: freebsd-questions@freebsd.org Message-id: <200503131110.37271.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <20050313170924.3D1504BE6D@ws1-1.us4.outblaze.com> <1110740463l.16115l.1l@BARTON> User-Agent: KMail/1.7.2 Subject: Re: portsdb -uU error (I also need some tips) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 19:10:40 -0000 On Sunday 13 March 2005 11:01 am, Jason Henson wrote: > On 03/13/05 12:09:24, Fafa Diliha Romanova wrote: > > Hello! > > > > There's been a lot of mess in my ports lately. > > I want to get rid of this: > > > > pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded > > pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded > > > > Which pops up every time I install/deinstall a port or package. > > I have done a 'pkgdb -F' which seemed to work. > > > > Upon 'portsdb -uU' I get: > > It looks like a problem with /var/db/pkg. You have time to wipe > /var/db/pkg and remove all ports? Try portmanager before you wipe > your ports and db. > > Have you cd /usr/ports && mkae fetchindex? > > > Stop in /usr/ports. > > No such file or directory - /tmp/INDEX8274.0 > > portsdb: index chmod error > > chmod error? Are you root or what? > > > ######################### > > > > So what is this? > > > > Also, can anybody tell me if these commands are all I need to > > do a full cleanup and upgrade of my ports? > > > > This is my /root/make.PORTS: > > > > ######################### > > > > cvsup -g -L 2 /etc/cvsupfile && pkgdb -F && portupgrade -ra && > > portsdb > > -uU && portupgrade -ra && pkgdb -F > > Don't do pkgdb unattended, you may need to answer questions. You > could skip all this index stuff if you use portmanager. But you need > /var/db/pkg in good condition to use pormanager, I think? > portmanager doesn't use /var/db/pkg/pkgdb.db, I think that is what you are refering to. It should be able to fix this person's problem like you suggested though. -Mike