From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Recovering from broken Guix due to GC'd derivations Date: Sun, 10 Jun 2018 18:45:19 +0200 Message-ID: <878t7mh9pc.fsf@gnu.org> References: <87vaarfli2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS3T5-00008z-Vg for help-guix@gnu.org; Sun, 10 Jun 2018 12:45:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fS3T5-0008GK-2x for help-guix@gnu.org; Sun, 10 Jun 2018 12:45:27 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS3T5-0008GC-09 for help-guix@gnu.org; Sun, 10 Jun 2018 12:45:27 -0400 In-Reply-To: <87vaarfli2.fsf@gnu.org> (Mike Gerwitz's message of "Sat, 09 Jun 2018 22:01:09 -0400") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Mike Gerwitz Cc: help-guix@gnu.org Hello Mike, Mike Gerwitz skribis: > Any pull or package install operations that I attempt give me an error > like this (the exact derivation varies between my user and root, but > they're both Perl): > > guix pull: error: open-file: No such file or directory: > "/gnu/store/fq9583a3w3is0r1yrjxg1znfz2qkvg78-perl-5.26.2.tar.xz.drv" This cannot happen under normal circumstances, as we say. Could it be that you run a Guix configured with a different =E2=80=98localstatedir=E2= =80=99 than the original one that populated /gnu/store? Remember that the store consists of two elements: /gnu/store, and $localstatedir/guix/db/db.sqlite (usually /var/guix/db/db.sqlite). If you somehow end up using a different database, it may be incorrect compared to what=E2=80=99s actually available in /gnu/store (info "(guix) T= he Store"). For that reason, =E2=80=98configure=E2=80=99 tries hard to prevent you from= configuring Guix with a =E2=80=98localstatedir=E2=80=99 different from the one of the already-installed Guix (see =E2=80=98GUIX_CHECK_LOCALSTATEDIR=E2=80=99 in m= 4/guix.m4.) HTH, Ludo=E2=80=99.