From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8Eo+MfZPeGDbQQAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 16:38:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eDrrKvZPeGCPXAAAbx9fmQ (envelope-from ) for ; Thu, 15 Apr 2021 14:38:46 +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 2D940238C2 for ; Thu, 15 Apr 2021 16:38:46 +0200 (CEST) Received: from localhost ([::1]:57050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX38n-0008SD-CL for larch@yhetil.org; Thu, 15 Apr 2021 10:38:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWz4U-0006cD-E8 for bug-guix@gnu.org; Thu, 15 Apr 2021 06:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWz4U-0005Ah-57 for bug-guix@gnu.org; Thu, 15 Apr 2021 06:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWz4U-0001wF-11 for bug-guix@gnu.org; Thu, 15 Apr 2021 06:18:02 -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: Thu, 15 Apr 2021 10:18: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.16184818247383 (code B ref 47748); Thu, 15 Apr 2021 10:18:01 +0000 Received: (at 47748) by debbugs.gnu.org; 15 Apr 2021 10:17:04 +0000 Received: from localhost ([127.0.0.1]:36552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWz3X-0001v0-Bj for submit@debbugs.gnu.org; Thu, 15 Apr 2021 06:17:03 -0400 Received: from mx1.riseup.net ([198.252.153.129]:56860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWz3V-0001uS-GD for 47748@debbugs.gnu.org; Thu, 15 Apr 2021 06:17:02 -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 4FLZyH4CQgzDxcp; Thu, 15 Apr 2021 03:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1618481815; bh=INFFzLA7J14NRXxkOjH0aD1Fd/PfDWftbtcQKTbfH0s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=p7V/nI+hm1i415qPzgJdpe6Oy9TK82wRB8cQ8zCLWXzRVG9Jna/7EGcEgaQr0eZsw UfuUmMu+o9DODAYMHT05PObR1pi9y0rcWmM2NYQqmWG0/F665rtmS5rQkkvWroCcmq y1d5C9KiFDVwpO3trHi48ek3xB30vcm1U7GrAs40= X-Riseup-User-ID: 7AA04649876D9DB7AB16D8A90C00E0C170CCD8F976A58DAB76DB67BE6352151A Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4FLZyG1V0Sz5w29; Thu, 15 Apr 2021 03:16:53 -0700 (PDT) References: <20210414022859.3c98e08d@tachikoma.lepiller.eu> <609E45C8-122E-4894-A9E4-C5F12B3BD39A@lepiller.eu> From: bo0od Message-ID: <56554d77-8ff5-f7a6-b5be-1302cf14ba9d@riseup.net> Date: Thu, 15 Apr 2021 10:16:51 +0000 MIME-Version: 1.0 In-Reply-To: <609E45C8-122E-4894-A9E4-C5F12B3BD39A@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: Thu, 15 Apr 2021 10:37:53 -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=1618497526; 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=zMnbFu6lRMO1uFB2gaiwKoDt5rTRGE2cAQBRZ1Xfmio=; b=sBWwilLfQ0X1MVJcCaFBCfVsntKTGrxLBu8J8i0a/QcoKmrE6a2FyHZxXgBocyaj3MOYak 9EGb4y0UwP9BXDWaJJ41x3gJYzEeZ26Mv3/5WM7I9ffJFGVfQ47XFVyYQhlqiJAH/aVWTs iu5ExBIbXzdg7vH0Hb0p/uLA7kHxxSpCLlywPkbto4G2Vz+txWrSygUVD1BeXZdTVaOSnZ 7hHR9NMDPeSltRUJrQbSQ2sZf8LIXjlpo4cqF/R4Kc7VcZziE7NExWolzEq/oCMGGnBznN S+xCeIUL8mCA3AL0tsLC+HFWlsEkSVGy0s/9Pwdx1/4OIzNlpiFj7Z1moLtz6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618497526; a=rsa-sha256; cv=none; b=XYxVz1ZTgvF2EiGObVscGV1wHNtzzm5fcbZSk2HgNCEaLlMnvSOpsyUAhTw7Y6o85fdmBf s21v+655RIUO4J4f2zV9gW+8UVpfSTZW06+CZ7svxHTNnjIZ+uV5ZGTMsEschiL6SFLQVx Mxvl1/FvYXDwS1ME5kk0vdCTKVQ9q7MMnyo6Cf82Uhyyq1iGDi7dNSWarGuF6sv0JOmJvt aVX2Nt7etV+tjvHm97G08iyBWPlmgd/pSenYskb8+4fnbGaMtKuJtvAAChk0kz0ey/DnS/ OLRkOovwzLBjoPa6Xa1Go5rTFDUDrMjitTPWElsa//RF0SM0zP4O0iGSTWw3lQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b="p7V/nI+h"; 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-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b="p7V/nI+h"; 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: 2D940238C2 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: qbtQJM50xdCn > guix operates on explicitely installed packages, dependencies are implementation details. It just doesn't work like apt or other package managers. New tool, new usages. So how user gonna delete preinstalled packages which are not installed by guix install x? wpa-supplicant is none essential package when there is no wifi, how user gonna delete it? no easy way to do it (i mean easy as similarly to apt/dnf..etc) thats the whole issue Maybe something like synapse should exist to do this job in guixos? I dunno, But current idea of no clean,easy way to delete these packages (or similar) just bad usability experience. Julien Lepiller: > Le 14 avril 2021 12:31:31 GMT-04:00, bo0od a écrit : >>> 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. > > guix removc only operates on your user profile, which doesn't contain avahi. That's what it's telling you. > > 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 ~/.guix-profile` > > Guix operates only on explicitely installed packages, which I think is much cleaner and allows it to be more predictable. Compare, if A depends on B and C, initially you have all three. > > 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 implementation details. It just doesn't work like apt or other package managers. New tool, new usages. > >> >>> 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. > > Yes, I meant /etc/config.scm (well, by convention, as you can always create the file elsewhere). But I don't need it anymore, since I learned it's actually part of the default %desktop-services. > >> >>> 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. > > It's not "no message", is it? I lust tried "guix remove hello", and I don't have hello in my profile. It told me (in red): error: package 'hello' not found in profile. > > Not sure how it could be more explicit. > >> >>> 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 :) >>> >