From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SC/TMmD1eGCEmAAAgWs5BA (envelope-from ) for ; Fri, 16 Apr 2021 04:24:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YIipLGD1eGAheQAA1q6Kng (envelope-from ) for ; Fri, 16 Apr 2021 02:24:32 +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 B0F29FB5B for ; Fri, 16 Apr 2021 04:24:31 +0200 (CEST) Received: from localhost ([::1]:55598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXE9m-0007dl-Ta for larch@yhetil.org; Thu, 15 Apr 2021 22:24:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXDxi-0004mz-Gi for bug-guix@gnu.org; Thu, 15 Apr 2021 22:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXDxi-0007mv-8R for bug-guix@gnu.org; Thu, 15 Apr 2021 22:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXDxi-00013Y-1q for bug-guix@gnu.org; Thu, 15 Apr 2021 22:12: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: Fri, 16 Apr 2021 02:12: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: Julien Lepiller Received: via spool by 47748-submit@debbugs.gnu.org id=B47748.16185390864018 (code B ref 47748); Fri, 16 Apr 2021 02:12:02 +0000 Received: (at 47748) by debbugs.gnu.org; 16 Apr 2021 02:11:26 +0000 Received: from localhost ([127.0.0.1]:39701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXDx7-00012j-Uz for submit@debbugs.gnu.org; Thu, 15 Apr 2021 22:11:26 -0400 Received: from mx1.riseup.net ([198.252.153.129]:60370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXDx3-00012U-IY for 47748@debbugs.gnu.org; Thu, 15 Apr 2021 22:11:24 -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 4FM07R6kdKzDqnG; Thu, 15 Apr 2021 19:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1618539076; bh=qTFT/H6yrKz9luVf01ZSx1/P6UrcLBs0fTls31L1iSI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=rFZGeKeydx+cmZ2llC0C7JKP19rK4SnKqJBaG4vS7FoTR97XqH2mi/7YikYB951hS IEPt9fTtpr77EpjIk2MmvdZHNXyThWoMLGcaJiKuX47AsEq0zXDhdeUAS5bJ/4ERrZ XUZLb4RnfeVBkn/ls/6vg2euYQXoLR1HbCG9TazA= X-Riseup-User-ID: 93284E92005F1547CE8B76E792B407CD7E698A5BCDE56A62323C329C1BD3BF92 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4FM07Q1jVFz5vlJ; Thu, 15 Apr 2021 19:11:13 -0700 (PDT) References: <20210414022859.3c98e08d@tachikoma.lepiller.eu> <609E45C8-122E-4894-A9E4-C5F12B3BD39A@lepiller.eu> <56554d77-8ff5-f7a6-b5be-1302cf14ba9d@riseup.net> <1A541367-BB79-4AC9-9444-BA85D5F38914@lepiller.eu> From: bo0od Message-ID: Date: Fri, 16 Apr 2021 02:11:09 +0000 MIME-Version: 1.0 In-Reply-To: <1A541367-BB79-4AC9-9444-BA85D5F38914@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 22:24:19 -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=1618539872; 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=obl3ZRxJ/i+I6JXm5GvpCrUdW38C1wB6cTiiBEI4Kaw=; b=u+wTimQXRSiG0A9Bnv8luueY5N2LiLGeci47J/zKTgWvB/Q9DYZwYJ05mIhYHMiztDnVTm DYVBEOOW6NIgUicLIFXmzor/76d8wjYDo6JLrO3PlY2ygOtNCuy/MTR0XcNtJFp7xSZ0cm BoG3zESWIkPWS92+UHrjIP2wPqcB/koaA8UuTQXIiCv+XXRXyaJv73xUTjLeivCoBHu9V+ ufJUi5ioA+BwwmMilvbupHSPy/UDlESewb+HvBfyfYBfpIssHnmS4xgY5xOobZ0MBn2s2V 4wqHpmxtUehDzRFtGQpxTgkkHxvAiajFo8Nj4G2Ox/zxVFB90Am+N6cpGqXB4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618539872; a=rsa-sha256; cv=none; b=pTzSqjoPJX/bDuwMqOKzEgGi019AbC6Yo9c/BPdQd1C5ixz/jHRje+V9a7UlQdCxqj1XV3 oEuO4Wso9g1dv/RzmaTVg2heEoMCEQ3faa14tmAa+S1CpSp8GxOzDj0aobnYslRx4HVIuc Idc8nbsKIW2CIG9tEBogWxwarxHOWai6Fh0jpxyOKsRQHdw6y6DjUY+WLzVZGOgF0H6G8j O/M/VIADcibNOSxSCCu3AfLCOvEDuum1aPqND9TkPD+GjSOxgRTQPEzGRAcF7c7GSEpxoQ jpWUaMGUgF4P6U88Gpwhe8IU0rIjMoFV86osW7WvFMnZzZoG//6C+Pjak3bTrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=rFZGeKey; 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=rFZGeKey; 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: B0F29FB5B X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 26We8S/I0Bys > Again, you have the wrong idea. wpa-supplicant is not installed, but its service is running, because it's part oh %desktop-services. No amount of guix remove will help you, because it can only wosk on user (or root) profiles, not the system services. > > To remove it, you need to remove it from your os declaration (/etc/config.scm) with something like this:[...] My friend isnt this what im saying not friendly,bad usability,disaster...etc And i said to have maybe something like synapse which mean addressing everything installed and user can just remove the packages by clicking on them (or lets call it the GUI way of doing it) similar to the functionally you showed: "(modify-services %desktop-services (delete wpa-supplicant-service-type))" ... or whatever suits the development and give friendly result, But if you tell me in 2021 user gonna go to /x/y/z then modify manually and add lines blah remove blah <- call me if guix will ever be a top usable distro in the coming 20 years from now or ever. Julien Lepiller: > Le 15 avril 2021 06:16:51 GMT-04:00, bo0od a écrit : >>> 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. > > Again, you have the wrong idea. wpa-supplicant is not installed, but its service is running, because it's part oh %desktop-services. No amount of guix remove will help you, because it can only wosk on user (or root) profiles, not the system services. > > To remove it, you need to remove it from your os declaration (/etc/config.scm) with something like this: > > (modify-services %desktop-services > (delete wpa-supplicant-service-type)) > > (Or something similar, the manual suggests the above for removing gdm for instance, but there seems to be doubts about whether that's actually correct or not) > > Then reconfigure your new system: > > sudo guix system reconfigure /etc/config.scm > > Now, your new generation is not running wpa-supplicant anymore (you can check sudo herd status for that). Older generations still have wpa-supplicant, so it's still hanging around in the store. To purge it, you can delete those generations (loosing all possibility ofqrolling back to them): > > sudo guix system delete-generations > guix gc # to effectively remove unnecessary store items > > After that, you should not have wpa-supplicant in the store anymore. > > HTH! > >> >> >> >> >> 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 :) >>>>> >>> >