You are not logged in.

#1 2018-03-11 05:53:26

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

[SOLVED]Error: file owned by X and Y:

Hi,

After installing Kicad I've got this output, every time I use pacman:

error: file owned by 'kicad' and 'kicad-docs-bzr': 'usr/share/kicad/internat/ca/kicad.mo'
error: file owned by 'kicad' and 'kicad-docs-bzr': 'usr/share/kicad/internat/cs/kicad.mo'
error: file owned by 'kicad' and 'kicad-docs-bzr': 'usr/share/kicad/internat/de/kicad.mo'
...

This particular case is probably harmless, but I should much prefer to sweep it away somewhere.

Last edited by Llama (2018-03-11 07:02:31)

Offline

#2 2018-03-11 05:58:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: [SOLVED]Error: file owned by X and Y:

This is what using --force will get you. Don't do that.

You obviously have a conflict. The obvious answer is to get rid of the foreign -bzr package, but you'll have to reinstall kicad afterwards because of the previous use of --force.

Offline

#3 2018-03-11 06:23:59

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

I didn't use --force. The conflicting package does not look foreign. In all probability is comes with the kicad itself. I've got a strong suspicion that removing it is going to ruin my kicad installation.

Offline

#4 2018-03-11 06:34:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: [SOLVED]Error: file owned by X and Y:

It's not in the repos, so it's foreign.

The only way a file can be owned by two packages is with the use of --force.

Edit: And this is not the first time you've done this. https://bbs.archlinux.org/viewtopic.php?id=231245 Figure out what in your process is screwing things up so badly.

Last edited by Scimmia (2018-03-11 06:45:43)

Offline

#5 2018-03-11 06:50:33

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

$ yaourt -R kicad-docs-bzr
checking dependencies...

Packages (1) kicad-docs-bzr-352-2

Total Removed Size:  57.04 MiB
...
$ yaourt -S kicad
warning: kicad-4.0.7-4 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) kicad-4.0.7-4

Total Installed Size:  68.84 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                 [#######################################################] 100%
(1/1) checking package integrity                                                               [#######################################################] 100%
(1/1) loading package files                                                                    [#######################################################] 100%
(1/1) checking for file conflicts                                                              [#######################################################] 100%
(1/1) checking available disk space                                                            [#######################################################] 100%
warning: could not get file information for usr/share/kicad/internat/ca/kicad.mo
warning: could not get file information for usr/share/kicad/internat/cs/kicad.mo
warning: could not get file information for usr/share/kicad/internat/de/kicad.mo
warning: could not get file information for usr/share/kicad/internat/es/kicad.mo
warning: could not get file information for usr/share/kicad/internat/fi/kicad.mo
...

Is it better?

Offline

#6 2018-03-11 06:51:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]Error: file owned by X and Y:

Not a Pacman issue, moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2018-03-11 06:53:12

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

Again: I don't use --force.

Offline

#8 2018-03-11 07:01:41

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

$ yaourt -Rscn kicad
...
$ sudo rm -rf /usr/share/kicad/
...
$ yaourt -S kicad

No errors/warnings now. The trouble is probably a leftover of an attempt at kicad years ago when it resided in AUR.

Offline

#9 2018-03-11 13:54:43

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED]Error: file owned by X and Y:

As a start don't use aur helpers, they do all kinds of nonsense and seem to cause more trouble than they help.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#10 2018-03-11 17:16:34

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

There's a lot of unavoidable things better left alone, this side of eternity.

Offline

#11 2018-03-11 17:28:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: [SOLVED]Error: file owned by X and Y:

--force is entirely avoidable.

Don't bother saying you don't use it. The evidence says that you do.

Offline

#12 2018-03-11 18:55:15

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

Why are you so concerned about it? It's entirely possible that I used --force once or twice years ago following some troubleshooting procedure, that's all. Besides, the nature of my present trouble is pretty clear by now; there are ways to catch it without the use of --force smile .

Offline

#13 2018-03-11 20:46:41

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED]Error: file owned by X and Y:

Llama wrote:

Besides, the nature of my present trouble is pretty clear by now; there are ways to catch it without the use of --force smile .

That's something we all would like to see you prove.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#14 2018-03-11 23:19:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: [SOLVED]Error: file owned by X and Y:

Llama wrote:

Why are you so concerned about it?

I can assure you, no one here would mind in the slightest if you used --force for every pacman transaction, or did any other silly thing your heart desired, so long as you didn't keep coming back here for help.

But as long as you want help from this community, you are going to need to follow the best practices set out by this community.  It's really a simple equation: don't ask for advice from those from whom you will not accept advice.

Last edited by Trilby (2018-03-11 23:20:23)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#15 2018-03-11 23:55:37

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED]Error: file owned by X and Y:

Llama wrote:

Why are you so concerned about it? It's entirely possible that I used --force once or twice years ago following some troubleshooting procedure, that's all. Besides, the nature of my present trouble is pretty clear by now; there are ways to catch it without the use of --force smile .

If you can actually demonstrate a way that pacman can have two installed packages which own the same file, without using --force to install one of those packages (and without doing surgery on the package database with a text editor, because that is cheating), please report a pacman bug, because this is supposed to be impossible.

(If you cannot demonstrate a way, which I think is the more likely outcome, then please stop abusing the good faith of the forum moderators. Or keep on the way you are going, which is in the direction of the legions of the banned.)

Last edited by eschwartz (2018-03-11 23:58:22)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#16 2018-03-12 00:00:12

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [SOLVED]Error: file owned by X and Y:

That's easy enough:

pacman -S pkg1
rm /conflicting/file
pacman -S pkg2

Offline

#17 2018-03-12 00:12:17

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED]Error: file owned by X and Y:

Huh, I thought pacman checked the database for that, seriously?

(Granted the spirit of the objection remains, manipulating the filesystem outside pacman is not something you should be doing...)

Last edited by eschwartz (2018-03-12 00:13:36)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#18 2018-03-12 00:17:17

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [SOLVED]Error: file owned by X and Y:

If you don't like the rm, use NoExtract to prevent the initial extraction, same effect.

Offline

#19 2018-03-12 17:30:03

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED]Error: file owned by X and Y:

Granted manually deleting files can lead to the problem described, but manually deleting files tracked by pacman is a bad idea to say the least, don't mess with the filesystem if you don't know what you are doing.

If you do mess with the filesystem then accept the consequences and deal with the ensuing breakage yourself.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#20 2018-03-12 20:21:44

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

(If you cannot demonstrate a way, which I think is the more likely outcome, then please stop abusing the good faith of the forum moderators. Or keep on the way you are going, which is in the direction of the legions of the banned.)

I never dreamed of starting the abuse thing, honestly. As to the case in hand. I am not pacman expert enough to file a bug report, if there is a bug. The sequence of events which led to this post, as perceived by my humble self:

1. error: file owned by 'kicad' and 'kicad-docs-bzr': 'usr/share/kicad/internat/ca/kicad.mo', immediately after kicad installation;

2. Discovery that kicad-docs-bzr package does not exist any longer; assuming that the kicad-docs-bzr package is a leftower of kicad installation back when kicad existed in the AUR, I uninstalled kicad-docs-bzr and reinstalled kicad; got some warnings like this: warning: could not get file information for usr/share/kicad/internat/ca/kicad.mo.

3. Uninstalled everything (kicad, that is), rm -rf /usr/share/kicad; reinstalled kicad.

4. That's all. I am not good enough to tell whether this is a bug, or just a highly unlikely unfortunate coincidence. This is no every day routine, that's all I can tell.

UPD:

Prior to (1), I was totally unaware of ever trying kicad some time in the past; can't remember anything.

Last edited by Llama (2018-03-12 20:32:15)

Offline

#21 2018-03-12 20:32:00

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED]Error: file owned by X and Y:

warning: could not get file information for usr/share/kicad/internat/ca/kicad.mo

How do you get this? Your system is missing files that the package manager thinks is installed, did you delete them by hand or use NoExtract which is rather advanced usage? Are these files that were provided by kicad-docs-bzr? This still doesn't explain how you got the two packages installed at the same time anyways -- if you were using NoExtract or removing files by hand, then that should only have been done once you understood the consequences.

(I still do not think this is valid usage of pacman in order to end up in this situation, but I'm not positive pacman should be responsible to check for this though.)

...

Did you use something like Bleachbit or localepurge? If that docs package only conflicted over locale data this might cause the issue I guess.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#22 2018-03-12 20:36:39

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

No. No NoExtract, no Bleachbit, no localepurge. Just yaourt -S kicad. Nothing else whatever.

Offline

#23 2018-03-12 20:39:19

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED]Error: file owned by X and Y:

warning: could not get file information for usr/share/kicad/internat/ca/kicad.mo

How do you get this?

Maybe rm -rf /usr/share/kicad after uninstall of thoroughly orphaned kicad-docs-bzr. Then reinstall kicad.

Offline

#24 2018-03-12 20:43:06

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]Error: file owned by X and Y:

Llama wrote:

rm -rf /usr/share/kicad

That's what broke things, you should let pacman handle this by uninstalling the package.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#25 2018-03-12 21:22:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: [SOLVED]Error: file owned by X and Y:

I'm pretty sure Llama did the rm -rf command only during the course of this thread.  So regardless of whether or not it was wise, it did not cause the problems that led to this thread.  I'm less optimistic though about the use of yaourt.  I'd say god only knows what yaourt does - except that if he exists, I'm pretty sure he has enough sense to stay far clear of yaourt.

Whatever actually caused the problems that led to this thread may have been equally foolish, but it happened in the past.  Short of inventing time travel, we are not going to identify what exactly the cause was regardless of how much we try to brow-beat Llama for suspected indescretions.  So there's little point.

That said, Llama, you've been using arch for quite a while and you've come to these forums with several problems that suggest you've never really absorbed how to use your package manager or maintain your system following the general best practices advised by this community.  It's time you step up and learn more about your OS and take better care of it.

Last edited by Trilby (2018-03-12 21:29:49)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB