Skip to main content
Topic: pacman - exists in filesystem - refuse to upgrade (Read 221 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.