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 mDj+MPBPeGBNJwAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 16:38:40 +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 EAXUKvBPeGBpBAAA1q6Kng (envelope-from ) for ; Thu, 15 Apr 2021 14:38:40 +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 58550238BB for ; Thu, 15 Apr 2021 16:38:40 +0200 (CEST) Received: from localhost ([::1]:56834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX38h-0008Me-Dq for larch@yhetil.org; Thu, 15 Apr 2021 10:38:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWyRm-0004JG-Lb for bug-guix@gnu.org; Thu, 15 Apr 2021 05:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWyRm-0005L2-Ds for bug-guix@gnu.org; Thu, 15 Apr 2021 05:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWyRm-0000sZ-6S for bug-guix@gnu.org; Thu, 15 Apr 2021 05:38: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 09:38: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: Maxime Devos , Julien Lepiller Received: via spool by 47748-submit@debbugs.gnu.org id=B47748.16184794533332 (code B ref 47748); Thu, 15 Apr 2021 09:38:02 +0000 Received: (at 47748) by debbugs.gnu.org; 15 Apr 2021 09:37:33 +0000 Received: from localhost ([127.0.0.1]:36521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWyRJ-0000rg-6X for submit@debbugs.gnu.org; Thu, 15 Apr 2021 05:37:33 -0400 Received: from mx1.riseup.net ([198.252.153.129]:47952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWyRH-0000rR-TN for 47748@debbugs.gnu.org; Thu, 15 Apr 2021 05:37:32 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (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 4FLZ4k1ppfzDq77; Thu, 15 Apr 2021 02:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1618479446; bh=R/v3ko4o5rqY9wAFexdOAhG4eFBqg0DSZYSLIWEGMvY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=jYIrQyLnqp6RoRLhrfUNA+Wuv3D+Y+CKv2N1dvZ0PKaw301nHHy/n3Za1/gRlrQ8q Q0zgErF2xn5qAehJxWRGNypJsBF1qcZzJmZj+sLIEgDi5j3XLMN7TJBsO61mnzJ18v Z6Ib3mbiF/ZAJbqsB8hdEZFyVU5302vND1lEdUTo= X-Riseup-User-ID: EA0148AC54641A8D65F7BF9F680C75CE3469AD250F325BE451A4352AA118A35C Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4FLZ4h3Fkpz1xmv; Thu, 15 Apr 2021 02:37:24 -0700 (PDT) References: <20210414022859.3c98e08d@tachikoma.lepiller.eu> From: bo0od Message-ID: Date: Thu, 15 Apr 2021 09:37:20 +0000 MIME-Version: 1.0 In-Reply-To: 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=1618497520; 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=g3vVCcIuM421b8h1ZKAUBdGL0Rst1fwQ7RedMs0T5bY=; b=VTsKFGcyiYqOePJSdH2hMrMtauFUEWwyXm1/pI0wDBjsUyyqIAmw05ialWDpEsQ/5THTGq yIa33e2QB0yx9r/i1mOTXZNRYZxfayHPj8TE1tBa+49MShGT5QhA0HSB7B/r1cR7G5X5m8 kRtxodjDzysRM2hAnU/+ILhzXpIskje+eGnXYq2B+zIJkBWJfM8FDxD/X+yj5sbXuH5Xc2 RjIANf6lyOBZbNQE2wT5pAWLIR7j8u3K5nAhcLKtWziBjfO+0JyGAYlTM2L9G/cTUY/kav YTU3vnA1R2ltNf9ohp6oLqbIfAu3f7WnmOtgr87Lxc4ave04MXPXWyUGkvfLJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618497520; a=rsa-sha256; cv=none; b=Igc3vM0gaozVp67b1Drf0DYwNMrp2XD3pQjEs8vcaB1vNBHCuKzIj4b/S9CaXxtGDOvwf/ YpSw+2mWc0Xg0z+Hek6FkdX/rzOZ5I4VmjokP0Etswv7eC6ssqiGcCEvBJvqxSuXGi91jV rEM3YcXIaS1o8hsFbJirYs/vNwthu9edUAqMBI6JGcy6IpaEve25pORa8QaWwC30B5VaDJ z/UNOobzSXhbBhgMIfwDtacvVvU8M+5mk4yEuHGfhru7jCf3NLIpmiA8/5wuusRPdZUs+O 69o2uIJreQE/jRBvZ+Jbiotr/lcxFOuYzROk3x59jiJJrj+V/Eiwlu8PixGcXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=jYIrQyLn; 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=jYIrQyLn; 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: 58550238BB X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: fEgPM66dc3Ob > guix remove: error: package 'm17n-lib' not found in profile > Hint: All users have their own profiles. To remove packages from the profile > of the root user, run "sudo guix remove PACKAGES" or equivalent. yeah very nice one, except that "sudo guix remove package" doesnt work :( This is how its done in debian/fedora, for e.g this is what debian error give if apt needs root rights to delete a package: "user@host:~$ apt remove hexchat E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?" This is what it shows in Fedora: "[user@host ~]$ dnf remove wpa-supplicant Error: This command has to be run with superuser privileges (under the root user on most systems)." But like i said current situation in guix is not about using sudo guix or guix alone. Maxime Devos: > On Wed, 2021-04-14 at 16:31 +0000, bo0od wrote: >> > 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? > > I'm not Julien Lepiller, but I believe that's wat asked for > -- the file with the (operating-system ...) declaration. > >> if you need something type the command or where >> and i will bring it to you. > It's the *file* ‘we’ need. (Well, the file JL needs.) > It's not a command you need to type, it's a file you need > to attach to the e-mail. > >> > 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. > > Currently the error message when removing a package not existing in the profile > is: > > $ guix remove m17n-lib > guix remove: error: package 'm17n-lib' not found in profile > > What do you think of adding a few hints? Some ideas: > > guix remove: error: package 'm17n-lib' not found in profile > Hint: All users have their own profiles. To remove packages from the profile > of the root user, run "sudo guix remove PACKAGES" or equivalent. > Hint: On Guix System, packages can defined in the operating system declaration. > These are not affected by "guix remove PACKAGES". > > and, when applicable: > > Hint: 'm17n-lib' is propagated from 'MANUALLY-INSTALLED-PACKAGE', via N intermediate > packages. Consider running "guix remove MANUALLY-INSTALLED-PACKAGE" instead. > > Would that have been helpful to you? > > Greetings, > Maxime. >