From owner-freebsd-questions@freebsd.org Mon Jun 8 06:36:48 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3D18D344A72 for ; Mon, 8 Jun 2020 06:36:48 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49gNnq6Z08z4g6H; Mon, 8 Jun 2020 06:36:47 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-il1-x136.google.com with SMTP id p5so15655951ile.6; Sun, 07 Jun 2020 23:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aZZHNZaEgxSb+uYZK4qwlq57CQCyGvf8ghj0xLjawpc=; b=dWCrSE48bLwKwCq2TrYoOVeZ+zjAgPitE/v+GGhtZT+/O0C8GtOE4E8ak2rMfV5y3z YfcbIjdExQSgIktBEfNiDLcaUA15m1O9bDexVeWNF2QNNjb3KVuaat5tWjzq00WARt9m AW08IxAbdE3vUarxKKBRo4niGj11DLi2tGI6U81ZcpehUJyd8iYV5EAzr5hW6jkSBEuQ 17fQS2lfNQpBugZHIrW/Lb5Hyo0S4bkMPZ4inezzdngvNAwkumMIA4ASpm31Q2X7zXmF UuBPDnvvEV4GIG/buGnVa6/MqVR7UhF9QhgAos/VBVYyxt8DMO7tg8SB3cyoksOYCxVm dIaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aZZHNZaEgxSb+uYZK4qwlq57CQCyGvf8ghj0xLjawpc=; b=WIX13oRz+hbXxqYmFmOoVBsnsRxcUK5xkYAcvUG/5Zh6/80V/xJTiRw9cyxVq4Z5TJ ea5ky+ma2mF8nWSb5ZTatIMOFuABMx1ghAK02L3+NAfagtbv+rCxmHAzXsLmo+ASWKg4 2dmk6slyXJnQmDFtkktV8YtejqZJrGSWaSSfFIEHxi8si0gFjo6F1ViUWMHrhYuPeluP 2DMBz3kehDtQ1CaREtCoL/fr3z0wxf/3o1HJHKdrUKmU2wsRihe3sfFJFy52FUrFbl5V Plx2xPBuBQJoeuR5uRuNhIpHLkz/bgi2Ecmta7iPsl5/eI002dl9T+cFYnIz2jgGn02o k5fA== X-Gm-Message-State: AOAM531fF2boBQPwAuzLEuIUgFPtXEfzZsgNxFK0LQCMO9YiC+wOd7BU 4mBzVl8sr3hfXbia4gRGx4KEMxIUanaSw3As1n+H8g== X-Google-Smtp-Source: ABdhPJyBPdIcTZlFNtj1MV82bKfPzlTFCrE9J3K0F9lUCc9eau7uHTUu0bF7vCNEGSb1SBJV8YELpkMNIRjRwSBeWqs= X-Received: by 2002:a92:c7c6:: with SMTP id g6mr21067446ilk.49.1591598206477; Sun, 07 Jun 2020 23:36:46 -0700 (PDT) MIME-Version: 1.0 References: <5d3cb5f2-94d0-b16f-763c-03ff4120ed2c@FreeBSD.org> In-Reply-To: <5d3cb5f2-94d0-b16f-763c-03ff4120ed2c@FreeBSD.org> From: Michael Schuster Date: Mon, 8 Jun 2020 08:36:34 +0200 Message-ID: Subject: Re: pkg update To: Matthew Seaman Cc: freeBSD Mailing List X-Rspamd-Queue-Id: 49gNnq6Z08z4g6H X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2020 06:36:48 -0000 On Mon, Jun 8, 2020, 08:25 Matthew Seaman wrote: > On 06/06/2020 08:55, Manish Jain wrote: > > This is a known problem with pkg, which sometimes happens for reasons I > > do not know. The following steps should resolve your issue : > > > > rm -rf /var/cache/pkg/* /var/db/pkg/repo-*.sqlite > > pkg bootstrap -f > > pkg update -f > > > > Doing this will really spoil your day. This (and a whole lot of other potential issues) is a good reason to use boot environments (which require ZFS). I've made it a habit to always - create and then mount a new BE - perform all pkg operations on this mounted BE, - temporarily active the new BE - reboot. In the worst case, booting the new BE will fail, but due to the temporary activation, next boot will be with previous one, and you'll be ready for another attempt. Regards Michael