Skip to main content
Topic: pacman - exists in filesystem - refuse to upgrade (Read 413 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

pacman - exists in filesystem - refuse to upgrade

Code: [Select]
okular: /usr/share/doc/HTML/nl/okular/index.cache.bz2 exists in filesystem
okular: /usr/share/doc/HTML/nl/okular/index.docbook exists in filesystem
okular: /usr/share/doc/HTML/pl/okular/annotation-properties.png exists in filesystem
okular: /usr/share/doc/HTML/pl/okular/annotations.png exists in filesystem
okular: /usr/share/doc/HTML/pl/okular/bookmark-management.png exists in filesystem
okular: /usr/share/doc/HTML/pl/okular/configure-annotations.png exists in filesystem
okular: /usr/share/doc/HTML/pl/okular/configure-backends.png exists in filesystem


Pacman has been doing this of late and it seems to be something is wrong with the database and the filesystem.  I really don't know how I caused this or how to fix it.


Re: pacman - exists in filesystem - refuse to upgrade

Reply #1
package "kde-i18n-yourlanguage"  is removed? or still exist in your system ?

archlinux (or kde??) dropped kde-i18n-xx and moved all translations direct to packages. Question is, if you not still keep this translation's package, instead remove...

Re: pacman - exists in filesystem - refuse to upgrade

Reply #2
regardless, it seems that pacman should have handled this better than creating errors.  I must have done something wrong.

Re: pacman - exists in filesystem - refuse to upgrade

Reply #3
regardless, it seems that pacman should have handled this better than creating errors.  I must have done something wrong.

you not answered the question... have you  still installed in your system kde-i18n-xx ??

Re: pacman - exists in filesystem - refuse to upgrade

Reply #4
i don't know

Code: [Select]
[[email protected] ~]$ sudo pacman -Q|grep kde
kdeclarative 5.61.0-1
libblockdev 2.22-1


Re: pacman - exists in filesystem - refuse to upgrade

Reply #5
What to say.
Pacman is telling you that it can`t proceed because the listed files exist in your filesystem (on your drive, not in package).

Since pacman is unable to find what package these files belong to it means they were added without pacman knowing about it.

In short delete them, or use pacman --force or modern pacman  --overwrite <path>.


How did this happen ?
- Who knows.
- You copied them or used make install for same program
- Relics of the past and bad behaving programs
- It is shame but it could also be caused by install media (iso), in past there were few files which were not managed by pacman, I wonder if someone can test this theory (my machine is too slow to run artix in virtual environment).
Man is as good as his tools.

Re: pacman - exists in filesystem - refuse to upgrade

Reply #6
pacutils can help with these situations.
Find unowned files
Install the "pacutils" package and you can do:
Code: [Select]
# pacreport --unowned-files
which will identify untracked files among other things.
But take it's advice with caution -
Unneeded Packages Installed Explicitly:
linux                     547.15 M (base)

It found some Python tqdm things in my case. But then I remembered I used pip install - you can use that in addition to pacman to install Python programs, some of which are not in the repos or AUR.

Re: pacman - exists in filesystem - refuse to upgrade

Reply #7
Thanks for the background information.  I used pacman --force to push the upgrades through and it seems to have fixed itself.  This was a clean artix install when I put it up and only pacman and occopi have been used to install on this system, other that software I wrote myself (which is all C++ and Java work on kernel hacks and scientific allgorithms).  So to me, it is a puzzle.  It is what it is.  I'll pull the pacuntils and see how much of the system is not tracked by pacman at this point.

Again

Thanks for all the info

Ruben

Re: pacman - exists in filesystem - refuse to upgrade

Reply #8
Quote
Since pacman is unable to find what package these files belong to it means they were added without pacman knowing about it.
pacman know that: pacman -Qo

pacman -Qo /usr/share/doc/HTML/pl/okular/annotation-properties.png
/usr/share/doc/HTML/pl/okular/annotation-properties.png is owned by okular 19.08.1-1


 

Re: pacman - exists in filesystem - refuse to upgrade

Reply #9
pacman know that: pacman -Qo

pacman -Qo /usr/share/doc/HTML/pl/okular/annotation-properties.png
/usr/share/doc/HTML/pl/okular/annotation-properties.png is owned by okular 19.08.1-1



That is all nice and fine, but take a longer look at the error message.

In short it says: I am unable to install package <okular> because there are some conflicting files which I have no idea where are they from.  And so I am unable to proceed.
Man is as good as his tools.

Re: pacman - exists in filesystem - refuse to upgrade

Reply #10
Hello,
I'm facing the same problme with Bleachbit. I remember I installed it using pacman and evry thing went well. When I tried to upgrade  I get this error, so I uninstalled bleachbit and all nice! Now I'm trying to install bleachbit again but faced with
Code: [Select]
error: failed to commit transaction (conflicting files)
bleachbit: /usr/share/bleachbit/Action.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/Cleaner.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/CleanerML.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/Command.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/DeepScan.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/FileUtilities.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/GUI.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/General.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/GuiBasic.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/GuiPreferences.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/Memory.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/Options.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/RecognizeCleanerML.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/Special.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/Unix.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/Update.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/Worker.pyc exists in filesystem
bleachbit: /usr/share/bleachbit/__init__.pyc exists in filesystem
Errors occurred, no packages were upgraded.
Error installing repo packages

Pacman should know about this files and should remove them when I removed bleachbit with
Code: [Select]
pacman -Rns bleachbit

 EDIT: I run
Code: [Select]
 sudo rm -r /usr/share/bleachbit/ && sudo pacman -S bleachbit
and it works!
Keep it Simple. Simple is Secure, Simple is Beautiful.

Re: pacman - exists in filesystem - refuse to upgrade

Reply #11
Hello,
I'm facing the same problme with Bleachbit.

That is caused by change in the packaging script (PKGBUILD) on Archlinux side.
https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/bleachbit&id=40ea5bd6f5c57039e08b44297e4011cdb4d9e4ee

Plus: Instead of deleting you can use overwrite option of pacman.
Man is as good as his tools.