You are not logged in.

#1 2012-04-28 04:27:43

GordieGii
Member
Registered: 2012-02-28
Posts: 7

[Solved] pacman upgrade fail

When I try to upgrade pacman I get the following:

gordiegii@Ion-Arch ~]$ sudo pacman -S pacman
Password: 
resolving dependencies...
looking for inter-conflicts...

Targets (1): pacman-4.0.3-1

Total Installed Size:   3.54 MiB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                                                        [###################################################] 100%
(1/1) loading package files                                                             [###################################################] 100%
(1/1) checking for file conflicts                                                       [###################################################] 100%
error: failed to commit transaction (conflicting files)
pacman: /usr/bin/cleanupdelta exists in filesystem
pacman: /usr/bin/makepkg exists in filesystem
pacman: /usr/bin/pacman exists in filesystem
pacman: /usr/bin/pacman-db-upgrade exists in filesystem
pacman: /usr/bin/pacman-key exists in filesystem
pacman: /usr/bin/pacman-optimize exists in filesystem
pacman: /usr/bin/pacsort exists in filesystem
pacman: /usr/bin/pactree exists in filesystem
pacman: /usr/bin/pkgdelta exists in filesystem
pacman: /usr/bin/rankmirrors exists in filesystem
pacman: /usr/bin/repo-add exists in filesystem
pacman: /usr/bin/repo-elephant exists in filesystem
pacman: /usr/bin/repo-remove exists in filesystem
pacman: /usr/bin/testdb exists in filesystem
pacman: /usr/bin/testpkg exists in filesystem
pacman: /usr/bin/vercmp exists in filesystem
pacman: /usr/include/alpm.h exists in filesystem
pacman: /usr/include/alpm_list.h exists in filesystem
pacman: /usr/lib/libalpm.a exists in filesystem
pacman: /usr/lib/libalpm.so exists in filesystem
pacman: /usr/lib/libalpm.so.7 exists in filesystem
pacman: /usr/share/locale/ca/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/ca/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/ca/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/cs/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/cs/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/cs/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/da/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/da/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/da/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/de/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/de/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/de/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/el/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/el/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/el/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/en_GB/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/en_GB/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/en_GB/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/es/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/es/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/es/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/fi/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/fi/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/fi/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/fr/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/fr/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/fr/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/hu/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/hu/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/hu/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/it/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/it/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/it/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/kk/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/kk/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/kk/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/lt/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/lt/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/lt/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/nb/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/nb/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/nb/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/pl/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/pl/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/pl/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/pt/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/pt/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/pt/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/pt_BR/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/pt_BR/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/pt_BR/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/ro/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/ro/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/ro/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/ru/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/ru/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/ru/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/sk/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/sk/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/sk/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/sr/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/sr/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/sr/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/sr@latin/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/sr@latin/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/sr@latin/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/sv/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/sv/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/sv/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/tr/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/tr/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/tr/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/uk/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/uk/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/uk/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/zh_CN/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/zh_CN/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/zh_CN/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/locale/zh_TW/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /usr/share/locale/zh_TW/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /usr/share/locale/zh_TW/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /usr/share/man/man3/libalpm.3.gz exists in filesystem
pacman: /usr/share/man/man5/PKGBUILD.5.gz exists in filesystem
pacman: /usr/share/man/man5/makepkg.conf.5.gz exists in filesystem
pacman: /usr/share/man/man5/pacman.conf.5.gz exists in filesystem
pacman: /usr/share/man/man8/makepkg.8.gz exists in filesystem
pacman: /usr/share/man/man8/pacman-key.8.gz exists in filesystem
pacman: /usr/share/man/man8/pacman.8.gz exists in filesystem
pacman: /usr/share/man/man8/pkgdelta.8.gz exists in filesystem
pacman: /usr/share/man/man8/repo-add.8.gz exists in filesystem
pacman: /usr/share/man/man8/repo-remove.8.gz exists in filesystem
pacman: /usr/share/man/man8/vercmp.8.gz exists in filesystem
pacman: /usr/share/pacman/ChangeLog.proto exists in filesystem
pacman: /usr/share/pacman/PKGBUILD-split.proto exists in filesystem
pacman: /usr/share/pacman/PKGBUILD.proto exists in filesystem
pacman: /usr/share/pacman/proto.install exists in filesystem
pacman: /usr/share/zsh/site-functions/_pacman exists in filesystem
Errors occurred, no packages were upgraded.
[gordiegii@Ion-Arch ~]$

Has anybody seen this or have any idea how to fix it?
Should I just delete all these files?

I was getting a gcc / gcc-libs error before but reinstalling gcc as per other forum help fixed that.

Last edited by GordieGii (2012-04-29 15:29:26)

Offline

#2 2012-04-28 07:40:13

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved] pacman upgrade fail

This issue is extensively documented/discussed on these forums. Do a quick search and you'll find plenty of topics with info on how to solve this.


Burninate!

Offline

#3 2012-04-28 08:52:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,430

Re: [Solved] pacman upgrade fail

What do you run 'sudo pacman -S pacman' in the first place? Have you tried running just 'sudo pacman -Syu'?
What's the output of

stat -c %s $(find /var/lib/pacman/local -name "pacman-4*")/files

?

Offline

#4 2012-04-28 16:43:34

GordieGii
Member
Registered: 2012-02-28
Posts: 7

Re: [Solved] pacman upgrade fail

@Gcool: I did a quick search and could not find anything that matched my symptoms. The only things I found that seemed to apply were the gcc / gcc-libs issue which I resolved and merging my pacman.conf.pacnew file into pacman.conf file (only two non-comments were new and they didn't seem related).
Perhaps I can't assess the applicability of a post to my symptoms.

@karol: I did -Syu, as I always do, but this time I got this:

...
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n]

I tried both 'Yes' and 'no' and both failed. 'No' took much longer because it had to download a couple hundred packages (I have been trying to resolve this myself for over a week and the list keeps getting longer) before failing so I switched to just pacman.
Pacman was in the list of packages and I couldn't figure out how to exclude it to see if the others would update. Reinstalling gcc worked.

[gordiegii@Ion-Arch man]$ stat -c %s $(find /var/lib/pacman/local -name "pacman-4*")/files
0
[gordiegii@Ion-Arch man]$

Please pardon my newbieness, I came from Ubuntu when GnomeBloat became too much for my Intel ATOM and am still learning the Arch way.

Offline

#5 2012-04-28 16:57:57

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved] pacman upgrade fail

The idea is to answer "N" to the first question. When you do that, you get some "exists in filesystem" errors if I understand correctly?

Have a look here for an explanation and how to fix it.


Burninate!

Offline

#6 2012-04-28 17:37:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,430

Re: [Solved] pacman upgrade fail

Seems something ate his metadata as his 'files' file for pacman is empty.
One way to fix this is by using the '--force' switch: https://bbs.archlinux.org/viewtopic.php?id=138157

Offline

#7 2012-04-28 21:48:08

GordieGii
Member
Registered: 2012-02-28
Posts: 7

Re: [Solved] pacman upgrade fail

@Gcool: all but two of the 'file exists' are gone. All that's left now is this:

...
pacman: /usr/bin/pacman exists in filesystem
pacman: /usr/lib/libalpm.so.7 exists in filesystem
Errors occurred, no packages were upgraded.
[gordiegii@Ion-Arch man]$

If I remove either of them I get one of these:

[gordiegii@Ion-Arch man]$ sudo pacman -Syu
sudo: pacman: command not found

or

[gordiegii@Ion-Arch man]$ sudo pacman -Syu
pacman: error while loading shared libraries: libalpm.so.7: cannot open shared object file: No such file or directory
[gordiegii@Ion-Arch man]$

@karol: Does that mean I should not have manually deleted those hundred and twenty something files as per Gcool's link? (my fingers are sore)

Offline

#8 2012-04-29 08:04:16

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved] pacman upgrade fail

One of the 2 remaining files is the actual pacman binary, so you can't move/remove that one obviously.

Just for this one occasion (never ever use the -f option otherwise), it should be ok to do:

# pacman -Syy
# pacman -Sf pacman
# pacman -Syu

Burninate!

Offline

#9 2012-04-29 15:40:23

GordieGii
Member
Registered: 2012-02-28
Posts: 7

Re: [Solved] pacman upgrade fail

That did the trick.

It seems to me that perhaps it would have worked anyway even if I hadn't querried ownership and renamed all those files...

Anyway, thanks for your help.

Offline

Board footer

Powered by FluxBB