From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YJPmJe4deGBX8gAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 13:05:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qPXOH+4deGCcbQAA1q6Kng (envelope-from ) for ; Thu, 15 Apr 2021 11:05:18 +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 ACB621DD5D for ; Thu, 15 Apr 2021 13:05:17 +0200 (CEST) Received: from localhost ([::1]:51962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWzoC-00086M-FB for larch@yhetil.org; Thu, 15 Apr 2021 07:05:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWznz-00083f-0L for bug-guix@gnu.org; Thu, 15 Apr 2021 07:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWzny-0006nm-IN for bug-guix@gnu.org; Thu, 15 Apr 2021 07:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWzny-0003GW-DG for bug-guix@gnu.org; Thu, 15 Apr 2021 07:05: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: Thu, 15 Apr 2021 11:05: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.161848464312463 (code B ref 47748); Thu, 15 Apr 2021 11:05:02 +0000 Received: (at 47748) by debbugs.gnu.org; 15 Apr 2021 11:04:03 +0000 Received: from localhost ([127.0.0.1]:36589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWzn1-0003Ew-2t for submit@debbugs.gnu.org; Thu, 15 Apr 2021 07:04:03 -0400 Received: from lepiller.eu ([89.234.186.109]:34320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWzmy-0003EW-7m for 47748@debbugs.gnu.org; Thu, 15 Apr 2021 07:04:01 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e8cacfc4; Thu, 15 Apr 2021 11:03:57 +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=h5v0LpOZyY/IZJZ2tdNjIawpLIl4DGWNljzMdp7cpdc=; b=aWygEBp V5GlsyDymLl7qWzKFeUXM12NFkPoVsMXbp6LvLXlCsfzr7hDGKIa6Dx4uth65LIm UVH3SpvEQqvfP8jRn9Xd0f8dYgbrIXf42bS0EeCXmZXqyOV1RncrAlt5aAUf4+dC di38Uari+vyonV40kzsfmTSvTtfF8H7963nozlIzOz43MO1OEMVa8X4bhBnI/c6T P7MHYR8Arv3AnitHQPzT9CUixoptAGEIYWYOxa4Zm1fkqrY2AiNX4FqblLUjmaaO rVDV5uWF5byHZPpUHwrTJhvRRHa1tsJbCVNPndSfiWCRS8X68EJobZ6GzXciz2yJ BUBJEo/vtNu1lGg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id a2e90f76 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 15 Apr 2021 11:03:57 +0000 (UTC) Date: Thu, 15 Apr 2021 07:03:48 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <56554d77-8ff5-f7a6-b5be-1302cf14ba9d@riseup.net> References: <20210414022859.3c98e08d@tachikoma.lepiller.eu> <609E45C8-122E-4894-A9E4-C5F12B3BD39A@lepiller.eu> <56554d77-8ff5-f7a6-b5be-1302cf14ba9d@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Julien Lepiller Message-ID: <1A541367-BB79-4AC9-9444-BA85D5F38914@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=1618484718; 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=TWeqWPm1/LpY4ZPyl9B1pk6vsnr1P4zbxanewSzFkKE=; b=DEyQDzVeRGhGLRG+lu6AtWpLMEdSlY+vQpTzYBpFqSPf5NyszIL8eLZ4XexIhAiYkYwFIT i8Saffv8tsO7hP5luHi3gpWgfKhOo5pd8tIX536vinaqZ5M39fWli/6NdbYTtSSqsbekB7 2+csPRoSe7dWGKH1T+qzvbjFZu86YsZGGN5VYMMee4PQTpMRH+xk6J3wZjwj4fkLfs7Ph7 vq73Oh1zlFsPeps3i4Q+Jsd1jnWPzn66xK1rETMjQq+lf7pdbzqVcxuhFl35HQcwsDBUrS jJzEpVCSzjyjRoIvyd5MYJaH8pg0x0N9vokkJJUsuLNoPtx/i7SKmBihB1jFcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618484718; a=rsa-sha256; cv=none; b=oyuZM6oAm5b/+dkue+Rd9ZD7ksqq/mqu6NDgPDGEVaDzSr3b8HyndgA1dsFKgyq4O9RPPs gjhcn0pnjChyruImGYDKuUpqubh8D9dP0Fd10OG+PT50r4BHN9Zm/d6eENsGzyDc6v+IOM g1OGq6wvDRwEVvv5FjVsOzbmZVFOsQPYLjyHk64qWaK6W8RZPrhWYiRogptEODghWdW+RQ zl8uk1cG7MaYINRGyLqyFld8vWge2sRu0QGsoaChzlK4fO+c9qhfy/fNZCzFwmhCHH/iTq eptXfAJ1IoPfd1jZiriLQsyAjBaqjswHYKrVlugzmXCmJ1yu4V3xBmI7/4h71w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="aWygEBp "; 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-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="aWygEBp "; 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: ACB621DD5D X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: oTbsXZqf1BQ7 Le 15 avril 2021 06:16:51 GMT-04:00, bo0od a =C3=A9cri= t : > > guix operates on explicitely installed packages, dependencies are=20 >implementation details=2E It just doesn't work like apt or other package= =20 >managers=2E New tool, new usages=2E > >So how user gonna delete preinstalled packages which are not installed=20 >by guix install x? > >wpa-supplicant is none essential package when there is no wifi, how >user=20 >gonna delete it? > >no easy way to do it (i mean easy as similarly to apt/dnf=2E=2Eetc) thats= =20 >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=2E Again, you have the wrong idea=2E wpa-supplicant is not installed, but its= service is running, because it's part oh %desktop-services=2E No amount of= guix remove will help you, because it can only wosk on user (or root) prof= iles, not the system services=2E To remove it, you need to remove it from your os declaration (/etc/config= =2Escm) 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 correc= t or not) Then reconfigure your new system: sudo guix system reconfigure /etc/config=2Escm Now, your new generation is not running wpa-supplicant anymore (you can ch= eck sudo herd status for that)=2E Older generations still have wpa-supplica= nt, so it's still hanging around in the store=2E To purge it, you can delet= e 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=2E HTH! > > > > >Julien Lepiller: >> Le 14 avril 2021 12:31:31 GMT-04:00, bo0od a =C3= =A9crit >: >>>> 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 >>> 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=2E >>=20 >> guix removc only operates on your user profile, which doesn't contain >avahi=2E That's what it's telling you=2E >>=20 >> You can check that you do not have avahi installed in your profile >with >>=20 >> guix package -l >>=20 >> And that none of your installed packages depend on it: >>=20 >> guix size `readlink -f ~/=2Eguix-profile` >>=20 >> Guix operates only on explicitely installed packages, which I think >is much cleaner and allows it to be more predictable=2E Compare, if A >depends on B and C, initially you have all three=2E >>=20 >> apt install B then apt remove A -> nothing >> apt remove A then apt install B -> only B >>=20 >> guix install B then guix remove A -> B and C >> guix remove A then guix install B -> B and C >>=20 >> guix operates on explicitely installed packages, dependencies are >implementation details=2E It just doesn't work like apt or other package >managers=2E New tool, new usages=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 >>> >>> do you mean config=2Escm? if you need something type the command or >where >>> >>> and i will bring it to you=2E >>=20 >> Yes, I meant /etc/config=2Escm (well, by convention, as you can always >create the file elsewhere)=2E But I don't need it anymore, since I >learned it's actually part of the default %desktop-services=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 >>> >>> 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=2E Least can be >said >>> about this bad usability=2E >>=20 >> 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' not found in profile=2E >>=20 >> Not sure how it could be more explicit=2E >>=20 >>> >>>> I hope this is helpful :) >>> >>> Appreciated :) >>> >>> Julien Lepiller: >>>> Le Tue, 13 Apr 2021 12:46:19 +0000, >>>> bo0od a =C3=A9crit : >>>> >>>>> 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' an= d 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 >message=2E >>>>> (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)=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: >>>> >>>> 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 >>>> >>>> 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?)) >>>> >>>> Avahi is added by the installer if you enable "Substitute server >>>> discovery" in the installer=2E >>>> >>>> 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 >files >>>> from the store, until you run guix gc=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 can find out about these dependencies with guix graph, for >>> instance: >>>> >>>> guix graph -t references --path `readlink -f \ >>>> $HOME/=2Econfig/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=2E4=2E0-1=2E6d4= 3caf >>>> /gnu/store/gj0irsda1y0msawq8g1wfcgw7xcsxz2m-avahi-0=2E8 >>>> >>>> I hope this is helpful :) >>>> >>=20