From owner-freebsd-questions@FreeBSD.ORG Sat Jul 13 13:02:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ACA23B08 for ; Sat, 13 Jul 2013 13:02:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 406021FAE for ; Sat, 13 Jul 2013 13:02:59 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r6DD2iHc097105 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 13 Jul 2013 14:02:51 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r6DD2iHc097105 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1373720571; bh=e7GfXG6a2229ZrqGbXhzW2+kWEcmvNKLRHWSyKRwRvQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; z=Date:=20Sat,=2013=20Jul=202013=2014:02:37=20+0100|From:=20Matthew =20Seaman=20|To:=20Leslie=20Jense n=20|CC:=20FreeBSD=20Questions=20|Subject:=20Re:=20pkg:=20Unable=20to=20open=20ports= 20directory=20/usr/ports:=20No=20such=20file=0D=0A=20or=20director y|References:=20<51DFE7A6.70505@eskk.nu>=20<51E1292F.7070005@eskk. nu>|In-Reply-To:=20<51E1292F.7070005@eskk.nu>; b=DR/BBPMoTecdg+XjixF6cR6c1KEEM6y0x/JKQvXH0eU3ePe+H9hmf90YYOQpdsZ2z G6/JLksbdqkdPI461J4/ka4X1jWCocXQ+AmhC3coQO7snOolUQeLZ1W2/6AgWaBv1A adlZqo2vXPabkamxfnCdMv6ciifjrHIwlZ7naTk4= Message-ID: <51E14FED.9030708@infracaninophile.co.uk> Date: Sat, 13 Jul 2013 14:02:37 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Leslie Jensen Subject: Re: pkg: Unable to open ports directory /usr/ports: No such file or directory References: <51DFE7A6.70505@eskk.nu> <51E1292F.7070005@eskk.nu> In-Reply-To: <51E1292F.7070005@eskk.nu> X-Enigmail-Version: 1.5.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2CWVBTHRKHRKUUEWKTGIE" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL,SPF_HELO_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2013 13:02:59 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2CWVBTHRKHRKUUEWKTGIE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 13/07/2013 11:17, Leslie Jensen wrote: > 2013-07-12 13:25, Leslie Jensen skrev: >> >> When I run >> >> portsnap fetch update >> >> pkg version -vIL=3D >> >> >> It returns >> >> pkg: Unable to open ports directory /usr/ports: No such file or direct= ory >> >> >> The directory is there and I can list the contents. >> >> What's going on? >=20 > I get this as well >=20 > gunzip: can't stat: > files/30173a70f7852dc247fda74d2d4babaae21067417fc17e67dc388c9ec85a8e8a.= gz: > No such file or directory > gunzip: can't stat: > /var/db/portsnap/files/845df3602aa1742b771872ffbe945ee60e0c834ae1540ba0= dab02f224cce56f5.gz: > No such file or directory > pkg: Unable to open ports directory /usr/ports: No such file or directo= ry >=20 > I'm a bit lost. Do I have to remove something for this command to succe= ed? Let's look at the command line you're using: pkg version -vIL=3D That -I means it's going to try and read the ports INDEX specifically -- ie. /usr/ports/INDEX Does that file exist? Does it have sensible contents? Now, given your further comments, it seems something relatively significant is wrong. There's on obvious (but fairly easy to fix) thing it might be. Have you run out of space on any of your partitions? What goes 'df -h' report? Any real partition reporting 100% full is a problem. (Don't worry about synthetic filesystems like devfs reporting 100% usage: that's normal.) If some filesystem is full, then you need to either delete stuff, or move it onto a filesystem with more space. You also seem to be having problems with portsnap(8) -- be aware there was a problem reported recently. See the thread on freebsd-ports@... subject 'Latest snapshot' starting with this message: http://lists.freebsd.org/pipermail/freebsd-ports/2013-July/084833.html but to summarize several people saw the problem, and the cure was to delete the files portsnap was using by 'rm -Rf /var/db/portsnap/files' and then re-run 'portsnap fetch' and 'portsnap extract' -- warning: this will wipe out everything you have in /usr/ports and download a complete set of replacements. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk ------enig2CWVBTHRKHRKUUEWKTGIE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlHhT/QACgkQ8Mjk52CukIxPXQCfXWA8uhFb+t990q/gxINgeoeo nI8Ani0wtsu/XCUDa0Ou3bg2NocI7w0l =HLfl -----END PGP SIGNATURE----- ------enig2CWVBTHRKHRKUUEWKTGIE--