From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wKpPCVQid2A3vwAAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 19:11:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IGoNBFQid2CsZwAAB5/wlQ (envelope-from ) for ; Wed, 14 Apr 2021 17:11:48 +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 BB37E1540E for ; Wed, 14 Apr 2021 19:11:46 +0200 (CEST) Received: from localhost ([::1]:51832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWj3J-0007sF-DA for larch@yhetil.org; Wed, 14 Apr 2021 13:11:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWiQs-0008AN-6u for bug-guix@gnu.org; Wed, 14 Apr 2021 12:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWiQr-0005UK-Tt for bug-guix@gnu.org; Wed, 14 Apr 2021 12:32:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWiQr-0002bd-P8 for bug-guix@gnu.org; Wed, 14 Apr 2021 12:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47748: Packages which cant be find/removed by guix remove Resent-From: bo0od Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 14 Apr 2021 16:32:01 +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: Julien Lepiller Received: via spool by 47748-submit@debbugs.gnu.org id=B47748.16184179079994 (code B ref 47748); Wed, 14 Apr 2021 16:32:01 +0000 Received: (at 47748) by debbugs.gnu.org; 14 Apr 2021 16:31:47 +0000 Received: from localhost ([127.0.0.1]:35579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWiQc-0002b8-Jd for submit@debbugs.gnu.org; Wed, 14 Apr 2021 12:31:46 -0400 Received: from mx1.riseup.net ([198.252.153.129]:54770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWiQa-0002au-Qy for 47748@debbugs.gnu.org; Wed, 14 Apr 2021 12:31:46 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4FL7K71jdnzDv47; Wed, 14 Apr 2021 09:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1618417899; bh=wBIFvjNCUOPa6dSv8odl8Q0yJce9LxbKImho5oXB3kk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=swbPRx+dlc+fp8vbN8UrjMBf4ihdXVL1FPUALSsxqtGfJomsDomXWma9aDveIXIgy zjk6/bhjQzDqfli3h8fj/R+DTkzGSXYoqBvonRqKAJOor45AbYVeim4yA8Z1rVFe+R /zAscRUqKKiXcGNxhr426kn2barj7UnnWPZmfMmA= X-Riseup-User-ID: BDD8EBFC7D61459B1E1169BA64BCCCCD5D57095DED8B9E52BAB1DD885DDDB5DF Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4FL7K42Zq6z5vqb; Wed, 14 Apr 2021 09:31:35 -0700 (PDT) References: <20210414022859.3c98e08d@tachikoma.lepiller.eu> From: bo0od Message-ID: Date: Wed, 14 Apr 2021 16:31:31 +0000 MIME-Version: 1.0 In-Reply-To: <20210414022859.3c98e08d@tachikoma.lepiller.eu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 14 Apr 2021 13:10:27 -0400 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=1618420307; 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=HJtSaP+sXsGlcsncCclOt6xU57VffMGnjJ51/UvrTu4=; b=MXJY2Upn+vJaFMdzYVFdx8wdrAPcObm39onlp2JIBG3ibZTPO8aQZUX22ecjin6iHV1n1H jabkuP6DR9tXxdu+jbGBILhjU4vJgmGZSWNPtfK9HA1SGm5FPMiDMpgLnZZjblUYoO1jb3 P2MmRI43ffLQOGMrqQJ1AXY/TFLYkVA44fkyfFBGyvB7J4LA+en6epvN3osBVxMLSCsuAV 4zniCtkFbq5cWxwJgwBZHjE9fetXkCab2H/e01FsMXZ2oXpoCmi4wwojWfdOApmRp5caqe nE/jYriMBe+gNjo8So+raNsM5ftQvkP/eglUcM13lALXXu8jhf+re1/UvWg1sw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618420307; a=rsa-sha256; cv=none; b=Th39jWMqYSum39VgT1cRVVZo2Ac718BdFhH4+YwfVK1Lw8arJw2fwtuR4f7csRsSKduVup aaDuk+O3rqI+18DW+mW2g8p7DXtnMK7tRRIySHj+/kSL8hNb55GQQEf84hudLOowTTA9t1 X38Odv0geq6Ke92d/R29eU7WqISfKvaQ4Pytr6Nr9FD0P7A83FnC6qXFMps3B1CiPKrq8J eam6WB8dHjdKBR/SdAxpQ+dleq7SNHKzq9cYGubcPsHoBunRKIQXIx9/3nhZ5rXjP/fsHc 0rD1a10okmG6APxHDZOdje1/X1Rxg0ebpFiQfp//PpxnCVBkcOYAYBPqOT3HKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=swbPRx+d; 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=riseup.net header.s=squak header.b=swbPRx+d; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (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: BB37E1540E X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: MaQE9Kih+MOD > In particular, there are multiple > profiles, and each of them could contain avahi or a reference to avahi. That doesnt address the issue im talking about, why guix remove doesnt recognize the package that number 1 , number 2 if the package will break something important guix should say that after processing the command guix remove x package then show warning message this x package is dependency of xyz which might break your system would you like to proceed? <- something like that. > Second, your operating-system declaration apparently is running > the avahi server. 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.scm? if you need something type the command or where and i will bring it to you. > When you run "guix remove" as user, it only affects your user profile, > in which there is no avahi or wpa-supplicant package. 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. 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 error message gonna tell you what the hell going on. Least can be said about this bad usability. > I hope this is helpful :) Appreciated :) Julien Lepiller: > Le Tue, 13 Apr 2021 12:46:19 +0000, > bo0od a écrit : > >> Hi There, >> >> I saw some packages installed by default with guix like >> wpa-supplicant and avahi..., 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' ... just give error message. >> (check the uploaded txt file) > > 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). In particular, there are multiple > profiles, and each of them could contain avahi or a reference to avahi. > In your case, I think avahi comes from two places: > > First, guix itself depends on guile-avahi, which brings in avahi. > That's because substitution can use avahi to get substitutes from your > local network. > > Second, your operating-system declaration apparently is running > the avahi server. 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?)) > > Avahi is added by the installer if you enable "Substitute server > discovery" in the installer. > > Similarly, wpa-supplicant is probably part of another profile, or maybe > declared in your config.scm. Once you change it, you should reconfigure > (guix system reconfigure /etc/config.scm). This will not remove files > from the store, until you run guix gc. > > When you run "guix remove" as user, it only affects your user profile, > in which there is no avahi or wpa-supplicant package. 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. > > You can find out about these dependencies with guix graph, for instance: > > guix graph -t references --path `readlink -f \ > $HOME/.config/guix/current` `guix build avahi` > > /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.4.0-1.6d43caf > /gnu/store/gj0irsda1y0msawq8g1wfcgw7xcsxz2m-avahi-0.8 > > I hope this is helpful :) >