Author Topic: Permissions error with pacman  (Read 1728 times)

0 Members and 1 Guest are viewing this topic.

Offline avamk

  • Neuling
  • *
  • Posts: 39
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: Fluxbox
  • GPU Card: AMD R7 265
  • GPU driver: default
  • Kernel: Linux 4.2.3-1 x64
  • Skill: Novice
Permissions error with pacman
« on: 19. February 2016, 15:51:07 »
Hello,

As a follow up to my previous issue, I see the following errors when I try to update my system directly with pacman or with allservers option 3:
Quote
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pilconvert'
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pildriver'
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pilfile'
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pilfont'
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pilprint'
Full output here.

I'm not even sure what the problem is, is there a way to fix this? Thank you!

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: Permissions error with pacman
« Reply #1 on: 19. February 2016, 19:48:19 »
but of course, stick to the official package from repos you dull person  >:D
it's obvious you installed packages from external sources, remove them if you can, update manjaro the way Jesus commands (-Syu) then put them back on, and hope it works. if you --force the update you will die a painful and horrible death.
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Permissions error with pacman
« Reply #2 on: 20. February 2016, 00:58:17 »
^ This.

If you install a package using pip, then install associated repo packages, you will of course find conflicts. pip is not a package manager.
« Last Edit: 20. February 2016, 01:00:59 by jonathon »
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline avamk

  • Neuling
  • *
  • Posts: 39
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: Fluxbox
  • GPU Card: AMD R7 265
  • GPU driver: default
  • Kernel: Linux 4.2.3-1 x64
  • Skill: Novice
Re: Permissions error with pacman
« Reply #3 on: 25. February 2016, 16:13:39 »
Thanks for your replies. I've tried to remove everything that I installed with the "pip install" command. However, I still get those errors abou those files. In fact, I tried to mv those files away to see what happens, but the errors still show up..... Is there a way to see where in the pacman process that it tries to access those files, and figure out what is going on? Also, would this affect other installations and updates I do with pacman?

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: Permissions error with pacman
« Reply #4 on: 25. February 2016, 16:18:14 »
you still get the same errors means the files are still there. not to be rude, but you are using sudo with your uninstall and mv commands right ?
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline avamk

  • Neuling
  • *
  • Posts: 39
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: Fluxbox
  • GPU Card: AMD R7 265
  • GPU driver: default
  • Kernel: Linux 4.2.3-1 x64
  • Skill: Novice
Re: Permissions error with pacman
« Reply #5 on: 25. February 2016, 19:03:33 »
you still get the same errors means the files are still there. not to be rude, but you are using sudo with your uninstall and mv commands right ?
Yes, I did use sudo with all those commands and checked to make sure those files were not in /usr/bin. In fact, just now I uninstalled everything installed with pip (instead of just the packages I think were causing the problem) with this command (from here):
Quote
pip freeze | xargs pip uninstall -y
However, I still get those errors when running allservers and pacman update commands.

Next, I discovered through the Manjaro "Add/Remove Software" program that the python-pillow package *is* installed, and its file list includes the offending files. So I used pacman to uninstall python-pillow, and the errors *temporarily* disappeared.

Finally, I tried to re-install python-pillow with pacman after which the errors show up again! What does all this mean??? Thanks for your help thus far.

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: Permissions error with pacman
« Reply #6 on: 25. February 2016, 20:28:00 »
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pilconvert'
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pildriver'
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pilfile'
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pilfont'
error: file owned by 'python-pillow' and 'python2-imaging': 'usr/bin/pilprint'

dunno much about python or pip but if there is an "error: file owned by....", that means you first have to remove the packages mentioned - 'python-pillow' and 'python2-imaging' in your case.
once those files are removed, do your -Syu as usual. Do note there are two pillows on the bed - python-pillow and python2-pillow, check which one is installed.
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline c00ter

  • Held Mitglied
  • *****
  • Posts: 1534
  • Towelie's cupcake
  • Branch: ☮Olive☮
  • Desktop: Depends©
  • GPU Card: Intel HD4400M CPU: Core i7-4510U
  • GPU driver: Intel/Free
  • Kernel: 4.4-lts & 4.5
  • Skill: Novice
Re: Permissions error with pacman
« Reply #7 on: 26. February 2016, 00:40:08 »
I may be wrong, but it sounds like there may be some left over config files hanging around...

Regards
“What, me worry?” ― Alfred E. Newman

Manjaro Wiki: https://wiki.manjaro.org/
Arch Wiki: https://wiki.archlinux.org/
Pacman Rosetta: https://wiki.archlinux.org/index.php/Pacman/Rosetta

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Permissions error with pacman
« Reply #8 on: 26. February 2016, 09:36:20 »
If two packages own the same files it's likely one of the packages came from the AUR (and probably doesn't exist any more).
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline avamk

  • Neuling
  • *
  • Posts: 39
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: Fluxbox
  • GPU Card: AMD R7 265
  • GPU driver: default
  • Kernel: Linux 4.2.3-1 x64
  • Skill: Novice
Re: Permissions error with pacman
« Reply #9 on: 26. February 2016, 13:10:18 »
Ah yes, just dicovered that the "python2-imaging" package is from the AUR. Once I removed it the errors do'nt show up regardless of whether I have the "python-pillow" package installed. So I guess it is an issue with that AUR package?

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: Permissions error with pacman
« Reply #10 on: 26. February 2016, 15:19:47 »
yep.
more packages = more bugs = more problems.
less packages = less bugs = less problems.
no packages = no bugs = no problems.
so wipe your hdd with sulphuric acid.
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline withjaro

  • Held Mitglied
  • *****
  • Posts: 772
  • 360
  • Branch: unstable
  • Desktop: openrc
  • GPU Card: geforce7150/ATIx2300
  • GPU driver: free
  • Kernel: linux4xxx-x64
  • Skill: Novice
Re: Permissions error with pacman
« Reply #11 on: 26. February 2016, 15:24:05 »
Anyone for the 'polystyrene cups and string' renaissance? ;)
< insert your own inspiring quotation - and smile :) >

Offline c00ter

  • Held Mitglied
  • *****
  • Posts: 1534
  • Towelie's cupcake
  • Branch: ☮Olive☮
  • Desktop: Depends©
  • GPU Card: Intel HD4400M CPU: Core i7-4510U
  • GPU driver: Intel/Free
  • Kernel: 4.4-lts & 4.5
  • Skill: Novice
Re: Permissions error with pacman
« Reply #12 on: 26. February 2016, 17:17:24 »
Ah yes, just dicovered that the "python2-imaging" package is from the AUR. Once I removed it the errors do'nt show up regardless of whether I have the "python-pillow" package installed. So I guess it is an issue with that AUR package?

Did you read the AUR package comments? Did they indicate there were problems? Before blaming soley the package and the developer/packager who submitted it to the AUR, I'd do a self-check first. If AUR comments do indicate it is problemmatic, then you took it upon yourself to install a buggy package. If you determine in the long run that the AUR package is indeed buggy, then you owe it to the developer/packager and the greater Manjaro & Arch communities to leave a comment for the packager who submitted it to the AUR.

Regards.
“What, me worry?” ― Alfred E. Newman

Manjaro Wiki: https://wiki.manjaro.org/
Arch Wiki: https://wiki.archlinux.org/
Pacman Rosetta: https://wiki.archlinux.org/index.php/Pacman/Rosetta

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Permissions error with pacman
« Reply #13 on: 26. February 2016, 18:48:38 »
Code: [Select]
jonathon@ivy ~> yaourt python2-imaging
1 community/python2-pillow 3.1.1-1 [installed]
    Python Imaging Library (PIL) fork. Python2 version.
2 aur/python2-imaging 1.1.7-13 (21) (1.27)
    PIL. Provides image processing capabilities for python

The two packages perform the same function; they're essentially different versions of the same library.
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline avamk

  • Neuling
  • *
  • Posts: 39
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: Fluxbox
  • GPU Card: AMD R7 265
  • GPU driver: default
  • Kernel: Linux 4.2.3-1 x64
  • Skill: Novice
Re: Permissions error with pacman
« Reply #14 on: 26. February 2016, 22:36:39 »
Hi.

I actually have the python-pillow package installed instead of python2-pillow, but anyway now that I have python2-imaging uninstalled at least I don't get any errors. I hope I won't need the python2-imaging package for the foreseeable future. I checked its AUR page, and the comments did not mention the problem I experienced.

Anyway, thanks for everyone's help! Really appreciate your quick replies.