From: bo0od <bo0od@riseup.net>
To: Maxime Devos <maximedevos@telenet.be>,
Julien Lepiller <julien@lepiller.eu>
Cc: 47748@debbugs.gnu.org
Subject: bug#47748: Packages which cant be find/removed by guix remove
Date: Thu, 15 Apr 2021 09:37:20 +0000 [thread overview]
Message-ID: <f8e5135f-aead-29b9-34e6-106155d40a27@riseup.net> (raw)
In-Reply-To: <a20a71bc57e53720759804ac5d4037d92aabb723.camel@telenet.be>
> 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.
>
next prev parent reply other threads:[~2021-04-15 14:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 12:46 bug#47748: Packages which cant be find/removed by guix remove bo0od
2021-04-14 0:28 ` Julien Lepiller
2021-04-14 2:44 ` Mark H Weaver
2021-04-14 10:34 ` Julien Lepiller
2021-04-14 16:07 ` Mark H Weaver
2021-04-16 14:52 ` Mark H Weaver
2021-04-14 16:31 ` bo0od
2021-04-14 18:42 ` Mark H Weaver
2021-04-15 9:26 ` bo0od
2021-04-15 19:34 ` Mark H Weaver
2021-04-16 2:45 ` bo0od
2021-04-14 18:44 ` Maxime Devos
2021-04-15 9:37 ` bo0od [this message]
2021-04-15 18:04 ` Maxime Devos
2021-04-16 2:58 ` bo0od
2021-04-14 18:48 ` Julien Lepiller
2021-04-15 10:16 ` bo0od
2021-04-15 11:03 ` Julien Lepiller
2021-04-16 2:11 ` bo0od
2021-04-16 3:41 ` Leo Famulari
2021-04-16 4:37 ` bo0od
2021-04-16 7:23 ` Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8e5135f-aead-29b9-34e6-106155d40a27@riseup.net \
--to=bo0od@riseup.net \
--cc=47748@debbugs.gnu.org \
--cc=julien@lepiller.eu \
--cc=maximedevos@telenet.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).