From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uHwBFd6tFmT7BAEASxT56A (envelope-from ) for ; Sun, 19 Mar 2023 07:38:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +FkSFN6tFmTKWQEAG6o9tA (envelope-from ) for ; Sun, 19 Mar 2023 07:38:22 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7046F21B6E for ; Sun, 19 Mar 2023 07:38:21 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=HE6aUvDQ; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679207902; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=sFcQxxmyO8KJ8yLoNtMyaWNe067/CWlClhzY0FPbYDk=; b=sFOGdmjgVPoSaZf/E3qHEcHqEwmdrkzcOJFluasbtB9McXuBPUE6TDfvRD6kF1gdgGsJfq O9mZ5VtExy1qUMgALIJOC+CDKN7n6owm1jzafRuMSwO+Ud5qSco8OhHxJr/743xaZxXp9O LMo2LgiG32m91g+RcksEmSKehWrTZTWdnnu6YxAV/j6wdu6tYtg22JaXmp1u6Np8oAvTnd 8S4Q07KpjDPPC4XYZ0aEMaMLCYZcBsAH5KLW8wNAetNI1QN/OkZtmrySO5ndmAiPDMrXOh 6sd68FFkCkpk3sloOcKbEYAt3eaiCBpZmg185W0Rl/EHxSnTzM7ojQ9R7uGjmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=HE6aUvDQ; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679207902; a=rsa-sha256; cv=none; b=VNs4hy2gK7e3S8RjJczGEjrcU4B5KZSyMcHCiD03mNJNHeCb6o+5sSJq6C59epkM+zlhSC 6vu0hJC7Ay/0fFqkND/TQaljq1nydt3ofIIUWI6o4Y8vNwmHKS86na7/1Hk0XEwBNQe1iB kIZPlkc6SqrG5WS7zHXvbOlJLemLvUkXubzYSHNFJUC9L5JtGiepzeBt3JPzYoB1ABBAMb T32huNUyHDXVejSGtR0ZvF9l6JJGSawiaHZEL97DmtGffihQ/DbgzyA13EuF7Mhl+vieV+ 2nYNW3J2DZY62LBBhYwxGDKBbeaomhqRlcYzf4hp+cCwslT5H4Y+pFtSMB6piA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdmfq-0008Sx-3p; Sun, 19 Mar 2023 02:37:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdmfb-0008ST-KJ for help-guix@gnu.org; Sun, 19 Mar 2023 02:37:32 -0400 Received: from lepiller.eu ([89.234.186.109]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdmfZ-0001z7-4f for help-guix@gnu.org; Sun, 19 Mar 2023 02:37:31 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 82d66301; Sun, 19 Mar 2023 06:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=h7SJjGrYpTlU 5jPWh+L6UbklgfJAXHiI8wdX5jdrKvY=; b=HE6aUvDQR9VUBIW4onSO3jvJEr9q e07DyQCo87zQhDVLZsY3/961+5DULdJDowgRqZqrLXFcCp+sCM+pYyp70beGnsKX 6jpUzzaavbR5OWZ8bPdFpLjNYnaVWR2DSnwQdZBiZJI3lZFvJJQGapxGHLzb5pyJ pDRoRP2CF6iyfSrLJEimpUnJJatdgbCUblkFB/FH0D501XsL3W+ahYnBKtvrAEwL AQnPShhV6uxAwLyk10Abgf0mfDirmcdqxiyokyPvR+55IZYhOHXYH1YrRss5Df4Q PNkKiS+B5QLaZo4NHmrnn+zOILrsp7CBSfFDdevB0i0oIRXjGPWMNtatYQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id ece618db (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 19 Mar 2023 06:36:19 +0000 (UTC) Date: Sun, 19 Mar 2023 07:36:17 +0100 From: Julien Lepiller To: help-guix@gnu.org, Rodrigo Morales Subject: =?US-ASCII?Q?Re=3A_Newbie=3A_Error_when_using_=22guix_gc?= =?US-ASCII?Q?_-D=22_to_delete_directory_in_/gnu/store?= User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <9A72DD9D-1676-4AF3-BB16-641E6CB6F7F6@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 7046F21B6E X-Spam-Score: -8.61 X-Migadu-Spam-Score: -8.61 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: zHBCE+yWmbZg First of all, you don't need to delete these files=2E Even if they exist in= the store, they won't be foumd by other software unless they are currently= installed in one of your profiles=2E The error you get when you try to delete them means that one of the genera= tions of one of your profiles still has a reference to them=2E You should h= ave a look at the symlinks at /var/guix/profiles to fehure out which profil= e and which generetion that is=2E Le 19 mars 2023 01:33:56 GMT+01:00, Rodrigo Morales a =C3=A9crit=C2=A0: >Table of Contents >_________________ > >1=2E The context >2=2E What I've tried >3=2E Additional information >4=2E The question > > >1 The context >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > I had previously installed the package `rime-data'=2E One of the files > that is installed by that package is called `wubi86=2Edict=2Eyaml'=2E > > I'm currently experimenting with `ibus' and I need all files that > exist in `/gnu/store' that are called `wubi86=2Edict=2Eyaml' to be dele= ted > from my system=2E I've located those files, but when I try to delete > those files, I get the following error > > ,---- > | guix gc -D /gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profile > `---- > > ,---- > | finding garbage collector roots=2E=2E=2E > | guix gc: error: cannot delete path >`/gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profile' since it is still >alive > `---- > > See next section to see what I've tried to delete those directories=2E > > >2 What I've tried >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > I know how to locate all files that are called `wubi86,dict=2Eyaml' and > are located under `/gnu/store' > > ,---- > | sudo updatedb > `---- > > ,---- > | locate 'wubi86=2Edict=2Eyaml' > `---- > > ,---- > | >/gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profile/share/rime-data/wubi8= 6=2Edict=2Eyaml > | >/gnu/store/b3f1s6nnj1rg7szcmb3n3y194ayhfgja-rime-data-0=2E38=2E20210802/s= hare/rime-data/wubi86=2Edict=2Eyaml > | >/gnu/store/zj0cf20jk3qgl12451znx1n8rj13z2jg-profile/share/rime-data/wubi8= 6=2Edict=2Eyaml > `---- > > If I try to delete any of those directories using `guix gc -D', I get > the same error (please see code blocks below) > > ,---- > | guix gc -D /gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profile > `---- > > ,---- > | finding garbage collector roots=2E=2E=2E > | guix gc: error: cannot delete path >`/gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profile' since it is still >alive > `---- > > ,---- > | guix gc -D >/gnu/store/b3f1s6nnj1rg7szcmb3n3y194ayhfgja-rime-data-0=2E38=2E20210802 > `---- > > ,---- > | finding garbage collector roots=2E=2E=2E > | guix gc: error: cannot delete path >`/gnu/store/b3f1s6nnj1rg7szcmb3n3y194ayhfgja-rime-data-0=2E38=2E20210802'= since >it is still alive > `---- > > ,---- > | guix gc -D /gnu/store/zj0cf20jk3qgl12451znx1n8rj13z2jg-profile/ > `---- > > ,---- > | finding garbage collector roots=2E=2E=2E > | guix gc: error: cannot delete path >`/gnu/store/zj0cf20jk3qgl12451znx1n8rj13z2jg-profile' since it is still >alive > `---- > > >3 Additional information >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > I found [this thread] in the help-guix mailing list on the same > topic=2E In [this reply], someone mentions that it is possible to list > the referrers to see which directories are pointing to those > directories=2E This is the output of those command=2E > > For the two directories that end in `*-profile', `guix gc --referrers' > print the directory itself=2E > > ,---- > | guix gc --referrers /gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profi= le > `---- > > ,---- > | /gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profile > `---- > > ,---- > | guix gc --referrers /gnu/store/zj0cf20jk3qgl12451znx1n8rj13z2jg-profi= le/ > `---- > > ,---- > | /gnu/store/zj0cf20jk3qgl12451znx1n8rj13z2jg-profile > `---- > > For the directory, that has the files from the package, a lot of files > ending with `drv' is shown=2E > > ,---- > | guix gc --referrers >/gnu/store/b3f1s6nnj1rg7szcmb3n3y194ayhfgja-rime-data-0=2E38=2E20210802 > `---- > > ,---- > | /gnu/store/0wr0x4v73wiks87843njqqf590fm0xix-glib-schemas=2Edrv > | /gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profile > | /gnu/store/4zpl6kqdb1ppnc0a1wbh50az8bhnzc4z-gtk-icon-themes=2Edrv > | /gnu/store/7qjr2v4w4m8kp1mzax2w840mg489120m-emacs-subdirs=2Edrv > | /gnu/store/8qjbmddr1x6v4pjwxm8i5alslxb7ca43-profile=2Edrv > | /gnu/store/8ziy5i9svd645iinf850cnca82vb154s-ca-certificate-bundle=2Ed= rv > | /gnu/store/a8n5pfdh03lwfrcpp6823bnwlgh5in13-xdg-desktop-database=2Edr= v > | /gnu/store/ascqql7fl3c7r784hpnqcam3x8f78dmg-info-dir=2Edrv > | /gnu/store/bwlk4j71l97vk84pzdddra2fpvn9zvj5-fonts-dir=2Edrv > | /gnu/store/d9dhmxg8b87jj8n797vyabdc2dimr2aw-ibus-rime-1=2E5=2E0 > | /gnu/store/h4qckgajdkz7rm8yrwrxqv882mr1mnnm-emacs-rime-1=2E0=2E5 > | >/gnu/store/hlrfay6rcgh9c5wzzcj7wf7iwzf87msc-gdk-pixbuf-loaders-cache-file= =2Edrv > | /gnu/store/nbhwrpx1py3j4sivysv6xi5s4hx4ziqz-gtk-im-modules=2Edrv > | /gnu/store/px3idmv8x0ws0zs2n7scgbi302af7iaw-xdg-mime-database=2Edrv > | /gnu/store/qczdrj7c8wyszygw78yi9ngz46lhyylv-ibus-rime-1=2E5=2E0 > | /gnu/store/zj0cf20jk3qgl12451znx1n8rj13z2jg-profile > `---- > > >[this thread] > > >[this reply] > > > >4 The question >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > How can I get rid of those three directories in `/gnu/store/' [1] so > that I can make sure that my system has no file called > `wubi86=2Edict=2Eyaml'? > > [1] Namely > + `/gnu/store/252h4ryvdj3d3bgnm1v47s7838wn86nz-profile' > + `/gnu/store/b3f1s6nnj1rg7szcmb3n3y194ayhfgja-rime-data-0=2E38=2E20210= 802' > + `/gnu/store/zj0cf20jk3qgl12451znx1n8rj13z2jg-profile'