You are not logged in.
sudo pacman -S perf
resolving dependencies...
looking for inter-conflicts...
Packages (2): python2-2.7.5-2 perf-3.11-2
Total Installed Size: 68.71 MiB
:: Proceed with installation? [Y/n]
1 resolving dependencies...
2 looking for inter-conflicts...
3
4 Packages (2): python2-2.7.5-2 perf-3.11-2
5
6 Total Installed Size: 68.71 MiB
7
8 checking keyring...
9 checking package integrity...
10 loading package files...
11 checking for file conflicts...
12 python2: /usr/bin/2to3-2.7 exists in filesystem
13 python2: /usr/bin/idle2 exists in filesystem
14 python2: /usr/bin/pydoc2 exists in filesystem
15 python2: /usr/bin/python2 exists in filesystem
16 python2: /usr/bin/python2-config exists in filesystem
17 python2: /usr/bin/python2.7 exists in filesystem
18 python2: /usr/bin/python2.7-config exists in filesystem
19 python2: /usr/include/python2.7/Python-ast.h exists in filesystem
20 python2: /usr/include/python2.7/Python.h exists in filesystem
21 python2: /usr/include/python2.7/abstract.h exists in filesystem
22 python2: /usr/include/python2.7/asdl.h exists in filesystem
23 python2: /usr/include/python2.7/ast.h exists in filesystem
24 python2: /usr/include/python2.7/bitset.h exists in filesystem
25 python2: /usr/include/python2.7/boolobject.h exists in filesystem
26 python2: /usr/include/python2.7/bufferobject.h exists in filesystem
27 python2: /usr/include/python2.7/bytearrayobject.h exists in filesystem
28 python2: /usr/include/python2.7/bytes_methods.h exists in filesystem
29 python2: /usr/include/python2.7/bytesobject.h exists in filesystem
30 python2: /usr/include/python2.7/cStringIO.h exists in filesystem
31 python2: /usr/include/python2.7/cellobject.h exists in filesystem
32 python2: /usr/include/python2.7/ceval.h exists in filesystem
33 python2: /usr/include/python2.7/classobject.h exists in filesystem
34 python2: /usr/include/python2.7/cobject.h exists in filesystem
35 python2: /usr/include/python2.7/code.h exists in filesystem
36 python2: /usr/include/python2.7/codecs.h exists in filesystem
37 python2: /usr/include/python2.7/compile.h exists in filesystem
38 python2: /usr/include/python2.7/complexobject.h exists in filesystem
39 python2: /usr/include/python2.7/datetime.h exists in filesystem
40 python2: /usr/include/python2.7/descrobject.h exists in filesystem
41 python2: /usr/include/python2.7/dictobject.h exists in filesystem
42 python2: /usr/include/python2.7/dtoa.h exists in filesystem
43 python2: /usr/include/python2.7/enumobject.h exists in filesystem
44 python2: /usr/include/python2.7/errcode.h exists in filesystem
45 python2: /usr/include/python2.7/eval.h exists in filesystem
.........
Errors occurred, no packages were upgraded.
(yes those are line numbers, sorry)
Any ideas?
Last edited by busey (2013-11-11 21:58:55)
Offline
There are a number of files on your system that a package wants to provide thus causing a conflict. Aborting with warnings is the expected behavior. Now the question is: what placed the files on your system? Did you manually compile and install python2 or other packages by chance?
Let's see if any package that pacman installed owns one of those files (I'm guessing now); post the output of:
pacman -Qo /usr/include/python2.7/abstract.hAs that was your 1st post, welcome to Arch. Plz use code tags in your posts --> https://bbs.archlinux.org/help.php#bbcode
Last edited by graysky (2013-11-11 20:50:01)
Offline
As a newcomer, you should pay attention to the stickied topics, like https://bbs.archlinux.org/viewtopic.php?id=130138
Why did you paste those line numbers?
Offline
graysky, the output is:
[wizard@milner ~]$ pacman -Qo /usr/include/python2.7/abstract.h
error: No package owns /usr/include/python2.7/abstract.hOffline
Why did you paste those line numbers?
I copied it from vim. I was trying to catch something useful in the output
Offline
@busey - Thought so...
Did you manually compile and install python2 or other packages by chance?
If you did, are you probably safe to allow pacman to force an overwrite of the conflicting files via the -f flag which is generally something you really want to think about before just blindly adding to your install command. I would also highly encourage you never to manually build anything; use a PKGBUILD (from the AUR or write your own) when you want to compile/install anything. One of the things that makes Arch Linux Great(TM) is the power and simplicity of pacman/makepkg.
Offline
I don't think that I installed python manually but, I'm managing multiple machines nowadays, may be I did. By the way, both python 2.7 and 3.3 are present on the system. I recently changed the symlink in /usr/bin to link python2.7 (I have some code which uses python2.7). But the problem existed before this.
Anyway, I reinstalled python by:
sudo pacman -S --force python2and then I was able to install perf without any problems. Next time before googling & posting I'll try to reinstall
Thanks for the help and quick response graysky
Offline
karol wrote:Why did you paste those line numbers?
I copied it from vim. I was trying to catch something useful in the output
If you redirected the output of pacman to a file, you can view it with a pager like less.
You can toggle line numbering in vim.
Offline
instead of changing the symlink, which will just get overwritten next time python is updated, you should specify the version in the shebang of the script that uses it.
Last edited by Scimmia (2013-11-11 21:13:16)
Offline
I recently changed the symlink in /usr/bin to link python2.7 (I have some code which uses python2.7)
This is not a good idea, and will be undone the next time you update python via pacman. You should fix the code (modify the shebang or whatever) so that it uses python2 or python2.7 explicitly.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
thanks for the advice scimmia and WorMzy, I guess I can do it in my local working copy (codes are in svn)
Last edited by busey (2013-11-11 21:24:43)
Offline
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline
Try to get the change pushed upstream if there's a bug tracker or a dev email you can contact. "python2" is distro-agnostic, "python" is not.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline