Subject: Re: bug#47748: Packages which cant be find/removed by guix remove

From: bo0od <[email-masked]>
Date: Fri, 16 Apr 2021 04:37:13 +0000

> But, apt-get uses gpg too, to check package signatures. It still has its
 > own copy of gpg, so it still works. You can't remove it easily.
 >
 > It's the same situation, and it's not a bug.

what are you talking about?  im talking about packages which are not 
essential like mesa , nouveau , wpa-supplicant...

Nevertheless about gpg in debian see:

user@host:~$ sudo apt remove gpg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
   dirmngr gnupg-l10n gnupg-utils gpg-agent gpgconf gpgsm libassuan0 
libksba8
   libldap-2.4-2 libldap-common libnpth0 libsasl2-2 libsasl2-modules-db
   pinentry-curses
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
   gnupg gpg gpg-wks-client gpg-wks-server
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 3,490 kB disk space will be freed.
Do you want to continue? [Y/n]

user@host:~$ sudo apt remove gpg*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'gpg-wks-client' for glob 'gpg*'
Note, selecting 'gpg-wks-server' for glob 'gpg*'
Note, selecting 'gpg' for glob 'gpg*'
Note, selecting 'gpgrt-tools' for glob 'gpg*'
Note, selecting 'gpgv-static' for glob 'gpg*'
Note, selecting 'gpgv' for glob 'gpg*'
Note, selecting 'gpgv-win32' for glob 'gpg*'
Note, selecting 'gpg-agent' for glob 'gpg*'
Note, selecting 'gpg-remailer' for glob 'gpg*'
Note, selecting 'gpgconf' for glob 'gpg*'
Note, selecting 'gpgsm' for glob 'gpg*'
Note, selecting 'gpgv1' for glob 'gpg*'
Note, selecting 'gpgv2' for glob 'gpg*'
Package 'gpgv1' is not installed, so not removed
Package 'gpgv-static' is not installed, so not removed
Package 'gpgv-win32' is not installed, so not removed
Package 'gpgv2' is not installed, so not removed
Package 'gpg-remailer' is not installed, so not removed
Package 'gpgrt-tools' is not installed, so not removed
The following packages were automatically installed and are no longer 
required:
   conntrack dconf-cli ethtool gir1.2-glib-2.0 gnupg-l10n gnupg-utils
   imagemagick imagemagick-6-common imagemagick-6.q16 initscripts insserv
   keyboard-configuration libassuan0 libde265-0 libegl1-mesa 
libfftw3-double3
   libfontenc1 libgirepository-1.0-1 libheif1 libksba8 libldap-2.4-2
   libldap-common liblqr-1-0 libmagickcore-6.q16-6 libmagickwand-6.q16-6
   libnpth0 libpython-stdlib libpython2-stdlib libpython2.7-minimal
   libpython2.7-stdlib libqubes-rpc-filecopy2 libqubesdb libsasl2-2
   libsasl2-modules-db libxfont2 libxkbfile1 net-tools pinentry-curses 
python
   python-minimal python2 python2-minimal python2.7 python2.7-minimal
   python3-cffi-backend python3-daemon python3-dbus python3-gi 
python3-lockfile
   python3-qubesdb python3-six python3-xcffib python3-xdg qubesdb qubesdb-vm
   socat startpar sysv-rc tinyproxy tinyproxy-bin tor tor-geoipdb torsocks
   x11-xkb-utils x11-xserver-utils xdg-utils xen-utils-common xenstore-utils
   xinit xserver-common xserver-xorg-core xserver-xorg-input-qubes
   xserver-xorg-video-dummyqbs
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
   apt apt-transport-https apt-transport-tor apt-utils dirmngr gnupg gpg
   gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv 
qubes-core-agent
   qubes-core-agent-networking qubes-gui-agent qubes-vm-dependencies tasksel
   tasksel-data
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
   apt gpgv (due to apt)
0 upgraded, 0 newly installed, 19 to remove and 0 not upgraded.
After this operation, 15.5 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
  ?]

Please reopen.

Leo Famulari:
> On Fri, Apr 16, 2021 at 02:11:09AM +0000, bo0od wrote:
>> 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:
> 
> The programs you are asking to remove are used internally by Guix.
> 
> You can't remove them with a simple command. You can't do that on other
> Linux distros either.
> 
> For example, on Debian, I have /usr/bin/gpg:
> 
> ------
> $ ls -l /usr/bin/gpg
> -rwxr-xr-x 1 root root 1046256 Aug 22  2019 /usr/bin/gpg
> ------
> 
> Then I uninstall it:
> 
> ------
> $ sudo apt-get remove gpg
> [...]
> $ ls -l /usr/bin/gpg
> ls: cannot access '/usr/bin/gpg': No such file or directory
> -----
> 
> But, apt-get uses gpg too, to check package signatures. It still has its
> own copy of gpg, so it still works. You can't remove it easily.
> 
> It's the same situation, and it's not a bug.
>