From owner-freebsd-questions@freebsd.org Thu Apr 7 06:59:01 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15266B07F69 for ; Thu, 7 Apr 2016 06:59:01 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8516D1AE6 for ; Thu, 7 Apr 2016 06:59:00 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 04DDFA6B8 for ; Thu, 7 Apr 2016 06:58:45 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/04DDFA6B8; dkim=none; dkim-atps=neutral Subject: Re: Recovering from X "upgrade" disaster - now what? To: freebsd-questions@freebsd.org References: From: Matthew Seaman Message-ID: <5706051A.9080703@FreeBSD.org> Date: Thu, 7 Apr 2016 07:58:34 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sv0HLMTxX4N3rLQRJeAgntrRVHDVWxTAW" X-Virus-Scanned: clamav-milter 0.99.1 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2016 06:59:01 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sv0HLMTxX4N3rLQRJeAgntrRVHDVWxTAW Content-Type: multipart/mixed; boundary="lfwghjLEeRFvpCijLPBrFbtB3VDcwaE4n" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <5706051A.9080703@FreeBSD.org> Subject: Re: Recovering from X "upgrade" disaster - now what? References: In-Reply-To: --lfwghjLEeRFvpCijLPBrFbtB3VDcwaE4n Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 07/04/2016 04:51, Warren Block wrote: > On Wed, 6 Apr 2016, Will Parsons wrote: >=20 >> Thank you for the suggestions, even if they failed to solve the >> problem. >> >> Happily, I have now got X working again, but to do so I had to restore= >> the entire contents of /usr/local from a backup I had made about 6 >> months ago. I think what this means is that my pkg database is out of= >> sync with the actual contents of /usr/local. What does this mean as >> far as further updating? I'd just as soon try to resolve the real >> problem, but am understandably reluctant to leave my system crippled >> again. >=20 > First, make a full backup of the system as it is. >=20 > The easy way to fix the package database is the same thing that might > resolve the problem. Reinstall all the packages, either as binaries or= > from ports. There is a procedure for ports at the end of the portmaste= r > man page. For packages, I want to say it would be 'pkg install -af', > but I have not tested it. How comprehensive was that 6-month old backup? If it also happened to include /var/backup then you should also have a dump of the pkg DB from the same time. Cheers, Matthew --lfwghjLEeRFvpCijLPBrFbtB3VDcwaE4n-- --sv0HLMTxX4N3rLQRJeAgntrRVHDVWxTAW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJXBgUgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATWBEP/RrYX+UP9BjTOJ2VGTeYym8i DPwxuttY5cMQdZMWw62zYnIXk+axoyH0nRKcOiRJo5+R2ajuI2asLnA5KrunMSXJ ldVZmQns9fjJBT28j8iWD6Ui97FEVMH0HcG/9oZTyL83MbOoy6H3N7iP83ZVyk1e 0NR2lDV8T3MxNVUy/JHqjGVVqXw9WnfILlg8PidXgNYYd05uR2KVNPJOyJ/MB8Jc RnP8v3aiQUPdnIbfuN8U6Yj/SfC7xVdGoTMl8JYkT5WKpiKPM4I3lJ/6eydzpjwa k9GEtFePFg5/HTJuj9KmZQoG6dwWmLRx0KOQ7d9mAoP5fN+w9zKkQ2H/Ysu5qYgK t2daH1K8jGYfsvNJBsYaFAjnoVwcRuEdaNkG8PoHUeMtKDNCmQMZ5dAB7n7JZ+tQ 7AZgsJi6DmKQIgWxmEK/OYgmFYPgsoD/drqqFHONVazq8GF/EsNJVkqUOxkYKWvW QjKs84EZvMLaqzE8+E3Ofb6TkpT7oQ6rGPDkpPAV2XhFHaq6jst9F8Zoxgw88agJ OdGC9Mgmro1GqUhQZuzB4CJDO7xo5YxB7WGgU22RWtaMEfoX7a3OdyV1IoBL14If dq6I4qI64vaz5iKA7WS5ZqWNY0Pxqcog9g6YreWTIrM3T5mE2lB+d5Deff572mYQ ET+d4FIKUNz6XZ+ugFQB =3sXB -----END PGP SIGNATURE----- --sv0HLMTxX4N3rLQRJeAgntrRVHDVWxTAW--