You are not logged in.

#1 2020-07-10 13:24:43

hakunamenta
Member
Registered: 2014-07-09
Posts: 9

"target not found" on remove for package that is clearly installed

I did some cleaning up of unused software and noticed that i can not uninstall one package that is clearly installed:

% sudo pacman -Qi python2-pillow
[sudo] password for ju: 
Name            : python2-pillow6
Version         : 6.2.1-1
…
Required By     : calibre
Optional For    : None
Conflicts With  : python-imaging  python2-imaging  python2-pillow
Replaces        : None
Installed Size  : 2.95 MiB
Packager        : Kyle Keen <keenerd@gmail.com>
Build Date      : Mon Jun 15 17:18:16 2020
Install Date    : Fri Jul 10 15:11:21 2020
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

% sudo pacman -Rcc python2-pillow
error: target not found: python2-pillow

Reinstalling works just fine.
Any ideas how this could happen?

Last edited by hakunamenta (2020-07-10 13:26:25)

Offline

#2 2020-07-10 13:34:40

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,790

Re: "target not found" on remove for package that is clearly installed

Look at the "Name" field.

Offline

#3 2020-07-10 14:07:15

hakunamenta
Member
Registered: 2014-07-09
Posts: 9

Re: "target not found" on remove for package that is clearly installed

huh thats intersting. i wonder why -Qi does that but -Rcc not.

Offline

#4 2020-07-10 14:30:36

Daerandin
Member
From: Norway
Registered: 2013-05-07
Posts: 206
Website

Re: "target not found" on remove for package that is clearly installed

python2-pillow6 provides 'python2-pillow', along with 'python2-imaging' and 'python-imaging'. Perhaps pacman also looks at 'provides' when you are doing a query operation.

EDIT: Out of curiosity I installed python2-pillow6 on my system, and now I can do this:

pacman -Qi python-imaging
Name            : python2-pillow6
Version         : 6.2.1-1
Description     : Python Imaging Library (PIL) fork. Python2 version.
Architecture    : x86_64
URL             : https://python-pillow.github.io/
Licenses        : BSD
Groups          : None
Provides        : python-imaging  python2-imaging  python2-pillow
Depends On      : lcms2  libtiff  openjpeg2  libimagequant  python2
Optional Deps   : freetype2: for the ImageFont module [installed]
                  libraqm: for complex text scripts [installed]
                  libwebp: for webp images [installed]
                  tk: for the ImageTK module [installed]
                  python2-olefile: OLE2 file support
                  python2-pyqt5: for the ImageQt module
Required By     : None
Optional For    : None
Conflicts With  : python-imaging  python2-imaging  python2-pillow
Replaces        : None
Installed Size  : 2.95 MiB
Packager        : Kyle Keen <keenerd@gmail.com>
Build Date      : Mon Jun 15 17:18:16 2020
Install Date    : Fri Jul 10 16:31:03 2020
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

So query operations with pacman definitely takes the 'Provides' field into consideration, which is actually quite logical since 'provides' means that pacman considers everything in that field as installed packages when checking if dependencies are met.

Last edited by Daerandin (2020-07-10 14:34:42)

Offline

#5 2020-07-10 18:08:44

hakunamenta
Member
Registered: 2014-07-09
Posts: 9

Re: "target not found" on remove for package that is clearly installed

Intersting, thanks for the research.

Offline

Board footer

Powered by FluxBB