From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UL8cMzM5d2CJTwEAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 20:49:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0IMBLTM5d2DiNAAA1q6Kng (envelope-from ) for ; Wed, 14 Apr 2021 18:49:23 +0000 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 1593017218 for ; Wed, 14 Apr 2021 20:49:23 +0200 (CEST) Received: from localhost ([::1]:39588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWkZl-0006IA-SE for larch@yhetil.org; Wed, 14 Apr 2021 14:49:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWkZS-0006I1-FO for bug-guix@gnu.org; Wed, 14 Apr 2021 14:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWkZS-00031H-7q for bug-guix@gnu.org; Wed, 14 Apr 2021 14:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWkZS-0001gc-7G for bug-guix@gnu.org; Wed, 14 Apr 2021 14:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47748: Packages which cant be find/removed by guix remove Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 14 Apr 2021 18:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47748 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: bo0od Received: via spool by 47748-submit@debbugs.gnu.org id=B47748.16184261376471 (code B ref 47748); Wed, 14 Apr 2021 18:49:02 +0000 Received: (at 47748) by debbugs.gnu.org; 14 Apr 2021 18:48:57 +0000 Received: from localhost ([127.0.0.1]:35711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWkZM-0001gJ-Ku for submit@debbugs.gnu.org; Wed, 14 Apr 2021 14:48:57 -0400 Received: from lepiller.eu ([89.234.186.109]:34256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWkZK-0001g9-OR for 47748@debbugs.gnu.org; Wed, 14 Apr 2021 14:48:56 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id f8344660; Wed, 14 Apr 2021 18:48:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=ZVRRhF428hqpP+iPU/fbe2RxRWKR8JL8YQlOZiuPqk0=; b=Fko5a3D 3Rz+9qX0vstZoPUKzUDhvbdz2vPFKRkLtx+b+C6z5I2TQTS9uWAtbyaap02HWzlz c5/5vHZEK3GgY/ip9AXse35+hcaIPBO6n25g5Jtei0AYQjo+g/mIHKLwsk2jigdI TNUW3UxvxsfKj4JDw3h//mm6NyhamMRN72KSpOcxnarlMKJuOexgidiYNMgw5bDz 1lbj6vjujTfyCkEfPTlsMmT+TmHL6kOO5P1fqb6B3hVtJvIz+iy2At/e3jU8sRuA Ug4+DuM3tB9w+zvMXDwBjbtO22bv8skvMK3k6FVTNL35aEvxK5A/oCRSFRPe2HMw jbNASG7TGBhFNrw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id c03b6c73 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 14 Apr 2021 18:48:51 +0000 (UTC) Date: Wed, 14 Apr 2021 14:48:42 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <20210414022859.3c98e08d@tachikoma.lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Julien Lepiller Message-ID: <609E45C8-122E-4894-A9E4-C5F12B3BD39A@lepiller.eu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47748@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618426163; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=teWjEtpAwzGA+WaKYuneNjHqxWYwgebM8F4FlVp9OP4=; b=asiCwI6x79c/Z8QXLpICjbU/urdfx8E5kRBmnBf2Er+HUs8jWSrkqJgHJwmyz402jM2L3J JdXzdbmoIcqRwMy/ZwcCWWnySnlySPgyOxLDewdKC9nOv0IE7n/Pz2f5nuaTQg2oPaGAtG sxkNi4l90I5Srw75oiSr3mesYEZSBXrxSOAHIFqZ3HuKnnKmepY+cG0iRpWH8BtoxJnaX1 2GI3AUz4dXzccBEOyK/KH+Eofg4jwNnLHwk95WcoW52w9XcXJqWRceJaUC0FVK5c8we14Q 7u7gcYsrnG7Ce27DOpU9ICdsD+f2H5o6dMZsJ5akRdQzk2TwIxt1OxJ1wv99JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618426163; a=rsa-sha256; cv=none; b=jSswMnE40c5bx4ED5NIdYAme5nsAkeP7OU3ZVqfVC7XNSiaHQXV4E9ReyHd+5OzqkDz7Lb z59I4yaGTfiQuQiUuBO0ehK1VLLYcGsZoiXHWBgXdzXG+MQEstii4Gl/34mBPS3158jqn2 25LtkOcYZmY3vXmv6JoZ+4Rtve3PRS3qHcMamCvNv3sOo/ZOQ8EOrUSljHcxH81I4eAV+a czvs4Vr3taTmgS5EAy8nAMBsq98GBYD/TQy5l/IMF82HWLmvJFMy4biVRo0AFJ/uqv8Kup uYFwvOiIJ+PEYg/LzwsEumLrbTSKGu8lEQOSm/x0N5ng8Oul5vA0jbxpnHU6bA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="Fko5a3D "; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="Fko5a3D "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 1593017218 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: jWyWPjI1fgVz Le 14 avril 2021 12:31:31 GMT-04:00, bo0od a =C3=A9cri= t : > > In particular, there are multiple >> profiles, and each of them could contain avahi or a reference to >avahi=2E > >That doesnt address the issue im talking about, why guix remove doesnt=20 >recognize the package that number 1 , number 2 if the package will >break=20 >something important guix should say that after processing the command=20 >guix remove x package then show warning message this x package is=20 >dependency of xyz which might break your system would you like to=20 >proceed? <- something like that=2E guix removc only operates on your user profile, which doesn't contain avah= i=2E That's what it's telling you=2E You can check that you do not have avahi installed in your profile with guix package -l And that none of your installed packages depend on it: guix size `readlink -f ~/=2Eguix-profile` Guix operates only on explicitely installed packages, which I think is muc= h cleaner and allows it to be more predictable=2E Compare, if A depends on = B and C, initially you have all three=2E apt install B then apt remove A -> nothing apt remove A then apt install B -> only B guix install B then guix remove A -> B and C guix remove A then guix install B -> B and C guix operates on explicitely installed packages, dependencies are implemen= tation details=2E It just doesn't work like apt or other package managers= =2E New tool, new usages=2E > > > Second, your operating-system declaration apparently is running >> the avahi server=2E Since you didn't share it, I don't know if it comes > > from a service dependency or if it's declared explicitely > >do you mean config=2Escm? if you need something type the command or where > >and i will bring it to you=2E Yes, I meant /etc/config=2Escm (well, by convention, as you can always cre= ate the file elsewhere)=2E But I don't need it anymore, since I learned it'= s actually part of the default %desktop-services=2E > >> When you run "guix remove" as user, it only affects your user >profile, >> in which there is no avahi or wpa-supplicant package=2E Also note that, >if > > any of your user's profile had a dependency on avahi, "guix remove > > avahi" would not have any effect on it either, because it's not > > installed explicitely, it's only present in the store to satisfy a > > dependency=2E > >You dont consider that an issue when someone use guix remove x then ops > >guess what nothing indicate something can be done, and guess what no=20 >error message gonna tell you what the hell going on=2E Least can be said= =20 >about this bad usability=2E It's not "no message", is it? I lust tried "guix remove hello", and I don'= t have hello in my profile=2E It told me (in red): error: package 'hello' n= ot found in profile=2E Not sure how it could be more explicit=2E > > > I hope this is helpful :) > >Appreciated :) > >Julien Lepiller: >> Le Tue, 13 Apr 2021 12:46:19 +0000, >> bo0od a =C3=A9crit : >>=20 >>> Hi There, >>> >>> I saw some packages installed by default with guix like >>> wpa-supplicant and avahi=2E=2E=2E, But if i type 'guix remove av' and = i >>> press tab nothing will complete the word and if i type 'guix remove >>> avahi' or 'guix remove wpa-supplicant' =2E=2E=2E just give error messa= ge=2E >>> (check the uploaded txt file) >>=20 >> Guix has a different notion of "installed" and "not installed" from >> other distros because of its model (and because it lets us use (but >not >> "install") incompatible packages)=2E In particular, there are multiple >> profiles, and each of them could contain avahi or a reference to >avahi=2E >> In your case, I think avahi comes from two places: >>=20 >> First, guix itself depends on guile-avahi, which brings in avahi=2E >> That's because substitution can use avahi to get substitutes from >your >> local network=2E >>=20 >> Second, your operating-system declaration apparently is running >> the avahi server=2E Since you didn't share it, I don't know if it comes >> from a service dependency or if it's declared explicitely, but if you >> don't want it to be running, that's where you'd remove it (either >> remove the explicit service, or the dependent service (guix >publish?)) >>=20 >> Avahi is added by the installer if you enable "Substitute server >> discovery" in the installer=2E >>=20 >> Similarly, wpa-supplicant is probably part of another profile, or >maybe >> declared in your config=2Escm=2E Once you change it, you should >reconfigure >> (guix system reconfigure /etc/config=2Escm)=2E This will not remove fil= es >> from the store, until you run guix gc=2E >>=20 >> When you run "guix remove" as user, it only affects your user >profile, >> in which there is no avahi or wpa-supplicant package=2E Also note that, >if >> any of your user's profile had a dependency on avahi, "guix remove >> avahi" would not have any effect on it either, because it's not >> installed explicitely, it's only present in the store to satisfy a >> dependency=2E >>=20 >> You can find out about these dependencies with guix graph, for >instance: >>=20 >> guix graph -t references --path `readlink -f \ >> $HOME/=2Econfig/guix/current` `guix build avahi` >>=20 >> /gnu/store/9yvb5kknnq8b1mrfsqaggrgjifk2mgs4-profile >> /gnu/store/dy46rf8aknz4im7sjz89i9b7snqi1m8w-guix-f91e1046c >> /gnu/store/szyzmhsxckvb0h7pdh9ags9apd1sch7m-guix-command >> /gnu/store/zjpqr7m6j3cjk5l2sr81yxyg5ny4njy6-guix-module-union >> >/gnu/store/jawdw5ca459z8y3a6hcd5pd772zjrs93-guile-avahi-0=2E4=2E0-1=2E6d4= 3caf >> /gnu/store/gj0irsda1y0msawq8g1wfcgw7xcsxz2m-avahi-0=2E8 >>=20 >> I hope this is helpful :) >>=20