You are not logged in.

#1 2009-08-13 20:22:24

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

pacman error: failed to commit transaction (conflicting files)

I recently moved my /var to its own partition; it used to just be on the / partition.  Anyway, everything seems fine except for pacman.  I attempted a -Syu today and it told me that curl-7.19.6-1 needed to be updated.  I allowed it but got this:

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts                   [##############################################] 100%
error: failed to commit transaction (conflicting files)
curl: /usr/bin/curl exists in filesystem
curl: /usr/bin/curl-config exists in filesystem
curl: /usr/include/curl/curl.h exists in filesystem
curl: /usr/include/curl/curlbuild.h exists in filesystem
curl: /usr/include/curl/curlrules.h exists in filesystem
curl: /usr/include/curl/curlver.h exists in filesystem
curl: /usr/include/curl/easy.h exists in filesystem
curl: /usr/include/curl/mprintf.h exists in filesystem
curl: /usr/include/curl/multi.h exists in filesystem
curl: /usr/include/curl/stdcheaders.h exists in filesystem
curl: /usr/include/curl/typecheck-gcc.h exists in filesystem
curl: /usr/include/curl/types.h exists in filesystem
curl: /usr/lib/libcurl.a exists in filesystem
curl: /usr/lib/libcurl.so exists in filesystem
curl: /usr/lib/libcurl.so.4 exists in filesystem
curl: /usr/lib/libcurl.so.4.1.1 exists in filesystem
curl: /usr/lib/pkgconfig/libcurl.pc exists in filesystem
curl: /usr/share/aclocal/libcurl.m4 exists in filesystem
curl: /usr/share/licenses/curl/COPYING exists in filesystem
curl: /usr/share/man/man1/curl-config.1.gz exists in filesystem
curl: /usr/share/man/man1/curl.1.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_cleanup.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_duphandle.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_escape.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_getinfo.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_init.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_pause.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_perform.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_recv.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_reset.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_send.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_setopt.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_strerror.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_easy_unescape.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_escape.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_formadd.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_formfree.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_formget.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_free.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_getdate.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_getenv.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_global_cleanup.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_global_init.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_global_init_mem.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_mprintf.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_add_handle.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_assign.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_cleanup.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_fdset.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_info_read.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_init.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_perform.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_remove_handle.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_setopt.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_socket.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_socket_action.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_strerror.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_multi_timeout.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_share_cleanup.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_share_init.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_share_setopt.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_share_strerror.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_slist_append.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_slist_free_all.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_strequal.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_unescape.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_version.3.gz exists in filesystem
curl: /usr/share/man/man3/curl_version_info.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-easy.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-errors.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-multi.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-share.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-tutorial.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl.3.gz exists in filesystem
Errors occurred, no packages were upgraded.

I tried another test by removing conky (pacman -R conky).  The package wasn't removed!  Thoughts are welcomed!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-08-13 21:26:55

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: pacman error: failed to commit transaction (conflicting files)

Looks like you have a somewhat damaged pacman db, or that you have installed stuff by hand.

This (stickied) thread might help solve it.  http://bbs.archlinux.org/viewtopic.php?id=56373


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2009-08-13 23:23:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: pacman error: failed to commit transaction (conflicting files)

Thanks for the link... I suspect the problem is indeed my db - something got roached when I moved my /var sad  Is there a way to rebuild the db or am I screwed?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2009-08-14 01:40:17

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: pacman error: failed to commit transaction (conflicting files)

What do these say?

$ pacman -Q curl conky
$ ls /var/lib/pacman/local/{curl,conky}*

For that matter, is there even anything in /var/lib/pacman/local at all?

Offline

#5 2009-08-14 02:57:02

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: pacman error: failed to commit transaction (conflicting files)

There are several threads about regenerating your local pacman database.   Essentially, you will need to "pacman -Sf <pkg>" for every package that you do not have in your local database.

Online

#6 2009-08-14 18:49:01

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: pacman error: failed to commit transaction (conflicting files)

Thanks for the posts, all.  I ended-up reverting my root partition to a 4-day-old backup I made (gparted rocks) and all is well.  Guess I need to be more careful about copying files although I still have no idea what went wrong here.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB