You are not logged in.

#1 2014-09-25 03:49:34

dood99
Member
Registered: 2014-09-25
Posts: 1

"conflicting files" when trying to do an upgrade

I have not upgraded my system since 2010. When trying to do it now I get several "conflicting files" and the upgrade fails. Although I have done some digging and know about the --force option, the conflicting files include directories like /bin and /lib which sounds more drastic.

Any suggestions?

Here is what I've got:

$ pacman -Syu
.........
(209/211) checking for file conflicts                     [##############################-]  99%
(210/211) checking for file conflicts                     [##############################-]  99%
(211/211) checking for file conflicts                     [###############################] 100%

error: failed to commit transaction (conflicting files)
filesystem: /bin exists in filesystem
filesystem: /etc/mtab exists in filesystem
filesystem: /etc/profile.d/locale.sh exists in filesystem
filesystem: /lib exists in filesystem
filesystem: /sbin exists in filesystem
filesystem: /usr/sbin exists in filesystem
filesystem: /var/run exists in filesystem
libutil-linux: /usr/lib/libblkid.so exists in filesystem
libutil-linux: /usr/lib/libmount.so exists in filesystem
libutil-linux: /usr/lib/libuuid.so exists in filesystem
e2fsprogs: /usr/bin/compile_et exists in filesystem
e2fsprogs: /usr/include/com_err.h exists in filesystem
e2fsprogs: /usr/lib/libcom_err.so exists in filesystem
fontconfig: /etc/fonts/conf.d/20-unhint-small-vera.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/30-metric-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/30-urw-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/40-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/45-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/49-sansserif.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/50-user.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/51-local.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/60-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/65-fonts-persian.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/65-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/69-unifont.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/80-delicious.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/90-synthetic.conf exists in filesystem
libmariadbclient: /usr/share/man/man1/mysql_client_test_embedded.1.gz exists in filesystem
libmariadbclient: /usr/share/man/man1/mysql_config.1.gz exists in filesystem
libmariadbclient: /usr/share/man/man1/mysqltest_embedded.1.gz exists in filesystem
talloc: /usr/lib/libtalloc.so.1 exists in filesystem
talloc: /usr/lib/libtalloc.so.2 exists in filesystem
Errors occurred, no packages were upgraded.

Offline

#2 2014-09-25 03:52:49

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

Re: "conflicting files" when trying to do an upgrade

Please use code tags when pasting to the boards https://wiki.archlinux.org/index.php/Fo … s_and_Code


Reinstall. And you really need to upgrade more than every 4 years if you are going to run a rolling release...


Not a pacman issue, moving to NC.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-09-25 03:57:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: "conflicting files" when trying to do an upgrade

dood99 wrote:

I have not upgraded my system since 2010.

Don't bother. Doing an update now would be all but impossible. Just reinstall, and consider a different distro if this system is routinely neglected.

Offline

#4 2014-09-25 08:34:41

CarlD
Member
From: London
Registered: 2013-11-23
Posts: 128

Re: "conflicting files" when trying to do an upgrade

I'm not sure which is more surprising: that you expected to be able to update your system after FOUR years (there have been some substantial changes since then), or the calm manner of the posts in response...

Offline

#5 2014-09-25 09:11:57

gowikel
Member
From: Córdoba, España
Registered: 2013-08-16
Posts: 13

Re: "conflicting files" when trying to do an upgrade

It will be a good idea to update your system each week instead of each 4 years. That is not Debian and maybe it is the problem with your upgrade. I am not an expert, so I agree with a reinstall.

Offline

#6 2014-09-25 09:15:42

gowikel
Member
From: Córdoba, España
Registered: 2013-08-16
Posts: 13

Re: "conflicting files" when trying to do an upgrade

Also, you can try to use pacman -Syu --force. Maybe it will let you to do the complete upgrade. But if it go wrong, I guess you will need a reinstall.

Last edited by gowikel (2014-09-25 09:16:20)

Offline

#7 2014-09-25 09:28:44

phanisvara
Member
From: west bengal, india
Registered: 2012-07-08
Posts: 74

Re: "conflicting files" when trying to do an upgrade

Also, you can try to use pacman -Syu --force.

very bad idea, shouldn't be offered as advice in any situation.

in this particular case it won't make any difference since it's next to impossible to upgrade a four year old system successfully, but using the --force option is reserved for _very_ few, exceptional cases. in a situation like this, it's guaranteed to cause havoc.

Offline

#8 2014-09-25 09:31:44

CarlD
Member
From: London
Registered: 2013-11-23
Posts: 128

Re: "conflicting files" when trying to do an upgrade

phanisvara wrote:

Also, you can try to use pacman -Syu --force.

very bad idea, shouldn't be offered as advice in any situation.

in this particular case it won't make any difference since it's next to impossible to upgrade a four year old system successfully, but using the --force option is reserved for _very_ few, exceptional cases. in a situation like this, it's guaranteed to cause havoc.

Agreed. Just re-install.

Might be possible to manually intervene and upgrade individual packages, but that would likely be both a difficult and lengthy process. Especially for a pre-systemd installation.

Offline

#9 2014-09-25 09:33:56

gowikel
Member
From: Córdoba, España
Registered: 2013-08-16
Posts: 13

Re: "conflicting files" when trying to do an upgrade

phanisvara wrote:

Also, you can try to use pacman -Syu --force.

very bad idea, shouldn't be offered as advice in any situation.

in this particular case it won't make any difference since it's next to impossible to upgrade a four year old system successfully, but using the --force option is reserved for _very_ few, exceptional cases. in a situation like this, it's guaranteed to cause havoc.

I got it. So in this case the best solution it is to reinstall.

Offline

#10 2014-09-25 09:45:19

phanisvara
Member
From: west bengal, india
Registered: 2012-07-08
Posts: 74

Re: "conflicting files" when trying to do an upgrade

I got it. So in this case the best solution it is to reinstall.

yes. while it's theoretically possible to go through all the major changes during the last 4 years and perform all the manual interventions that were necessary at various times, this would involve getting old packages for the intermediate steps, then upgrading to newer ones, one by one, with more manual intervention.

a new installation will be much faster & easier. just save all your documents and data somewhere else, wipe the system partitions, and start new.

Offline

#11 2014-09-25 09:48:18

phanisvara
Member
From: west bengal, india
Registered: 2012-07-08
Posts: 74

Re: "conflicting files" when trying to do an upgrade

wipe the system partitions, ...

just to be clear: no need to actually "wipe" them. just format them again with the file system of your choice. (my choice would be ext4.)

Offline

#12 2014-09-25 10:26:37

jackpot
Member
From: Riyadh, Saudi Arabia
Registered: 2014-08-18
Posts: 86

Re: "conflicting files" when trying to do an upgrade

If you have not proceeded to reinstall, can you please attemp to update current setup (I know it won't work) but I opened a thread asking same question here and post results here.

It will help me learn.

Thanks!


KDE is all good bloated, try to trim away from K*.apps... whatever it leaves behind equals "Kuck yourself!"
nVidia.... fsck sdy0

Offline

#13 2014-09-25 11:23:18

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

Re: "conflicting files" when trying to do an upgrade

jackpot - there were some *major* changes some time back (maybe a year ago), for which each of the major updates that required manual intervention caused substantial problems for a large number of users.  Quite a few users at that time ended up reinstalling because a minor error in how they handled a manual intervention really messed things up.  With all of these together I don't think it would be even possible to get through all the updates.

The only potential way would be to find something like the arch rollback machine and do dozens of updates to different time points.  But even this would be impossible as the arch rollback machine was out of comission for a while.

Reinstalling need not even lose much current data.  There is no reason to touch the home partition if that was separate (if not it could be backed up and restored later).  One would likely want to just delete ~/.config (or XDG_CONFIG_DIR) as the changes to config files over 4 years might be drastic - but other than that anyting in ~ can be left alone.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#14 2014-09-25 14:05:51

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: "conflicting files" when trying to do an upgrade

If you have not proceeded to reinstall, can you please attemp to update current setup (I know it won't work) but I opened a thread asking same question here and post results here.

While it's theoretically possible to manually walk through an update after a year or so of not updating, in this case it's impossible. The transitional pieces necessary simply don't exist.

Arch is a rolling-release operating system, intended to be updated frequently. If your intention is to install and then not update for long periods of time, but you want a similar degree of control and customization as that offered by Arch, then CRUX, Slackware, FreeBSD or OpenBSD would be a better choice. In the cases of CRUX and (I believe) OpenBSD and FreeBSD, it's standard practice to update the base system once per year using the ports system. Slackware gets updated whenever it's benevolent overlord decides to do so, which is infrequently.

Offline

Board footer

Powered by FluxBB