[OPEN] Behaviour of "pacman -Suy --overwrite "

Post Reply
silentuser
recruit crewman
Posts: 2
Joined: Mon Nov 11, 2019 9:11 pm
[OPEN] Behaviour of "pacman -Suy --overwrite "

Post by silentuser » Sat Mar 21, 2020 1:49 pm

Hello,

when I updated hplip few days ago some warnings occurred similar or equal to https://www.archlinux.org/news/hplip-32 ... ervention/. Like recommended there I used

Code: Select all

pacman -Suy --overwrite /usr/share/hplip/\*
and

Code: Select all

pacman -Suy hplip --overwrite /usr/share/hplip/\*
too.

Printing still works.

In addition I removed hplip with

Code: Select all

pacman -Rs hplip
,

Code: Select all

pacman -Rns hplip
and

Code: Select all

pacman -R hplip
. But when I reinstall hplip with

Code: Select all

pacman -Suy hplip --overwrite /usr/share/hplip/\*
warnings still appear that there are distinctions between 3 folders owned by root and those planned by the package fore these folders:

Code: Select all

Paket (1)    Neue Version  Netto-Veränderung

extra/hplip  1:3.20.3-2            30,58 MiB

Gesamtgröße der installierten Pakete:  30,58 MiB

:: Installation fortsetzen? [J/n] J
(1/1) Prüfe Schlüssel im Schlüsselring                 [----------------------------] 100%
(1/1) Überprüfe Paket-Integrität                       [----------------------------] 100%
(1/1) Lade Paket-Dateien                               [----------------------------] 100%
(1/1) Prüfe auf Dateikonflikte                         [----------------------------] 100%
:: Verarbeite Paketänderungen...
(1/1) Installiere hplip                                [----------------------------] 100%
[b]Warnung: Verzeichnis-Berechtigungen unterscheiden sich für /usr/share/hplip/base/__pycache__/
Dateisystem: 700  Paket: 755
Warnung: Verzeichnis-Berechtigungen unterscheiden sich für /usr/share/hplip/base/pexpect/__pycache__/
Dateisystem: 777  Paket: 755
Warnung: Verzeichnis-Berechtigungen unterscheiden sich für /usr/share/hplip/prnt/__pycache__/
Dateisystem: 777  Paket: 755[/b]
Optionale Abhängigkeiten für hplip
    cups: for printing support [Installiert]
    sane: for scanner support [Installiert]
    xsane: sane scanner frontend [Installiert]
    python-pillow: for commandline scanning support [Installiert]
    python-reportlab: for pdf output in hp-scan [Installiert]
    rpcbind: for network support [Installiert]
    python-pyqt5: for running GUI and hp-toolbox [Installiert]
    libusb: for advanced usb support [Installiert]
    wget: for network support [Installiert]
:: Starte post-transaction hooks...
(1/5) Reloading system manager configuration...
(2/5) Reloading device manager configuration...
(3/5) Arming ConditionNeedsUpdate...
(4/5) pkglistgen.hook
(5/5) Updating the desktop file MIME type cache...
Is it normal that there are still warnings?
Is this the normal behavior that pacman with the "--overwrite" option overwrites the files and folders but doesn't change the permissions?
Is it necessary to do something e.g. to change manually the permissions of the folders to 755 which is planned by the package?
Is there a risk to change the permissions of these folders?

Kind regards,

Christoph

User avatar
erikdubois
Captain
Posts: 3139
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
Re: [OPEN] Behaviour of "pacman -Suy --overwrite "

Post by erikdubois » Sat Mar 21, 2020 6:18 pm

I would remove the folders called __pycache__

I am not responsible for what will happen next. :mrgreen:
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

silentuser
recruit crewman
Posts: 2
Joined: Mon Nov 11, 2019 9:11 pm
Re: [OPEN] Behaviour of "pacman -Suy --overwrite "

Post by silentuser » Mon Mar 23, 2020 9:09 pm

erikdubois wrote:
Sat Mar 21, 2020 6:18 pm
I would remove the folders called __pycache__

I am not responsible for what will happen next. :mrgreen:
Thank you for your reply,

I deleted the __pycache__-folders and reinstalled hplip:

Code: Select all

pacman -Syu hplip
There were no warnings etc. . The __pycache__ folders were generated again.
This seems to be OK.
---
https://docs.python.org/3/tutorial/modu ... thon-files
https://docs.python.org/3/faq/programmi ... a-pyc-file
https://docs.python.org/3/library/py_co ... le.compile

User avatar
erikdubois
Captain
Posts: 3139
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
Re: [OPEN] Behaviour of "pacman -Suy --overwrite "

Post by erikdubois » Mon Mar 23, 2020 10:04 pm

It is not clear if it is solved now.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.


Post Reply

Return to “Installation of Software (pacman, AUR, ...)”