You are not logged in.

#1 2013-01-22 06:18:41

tladuke
Member
Registered: 2009-07-23
Posts: 176

File exists in filesystem after copying system. [Solved]

Not sure what to do here guys. My main drive was acting up, would only mount read-only. So I tar'd most of it over and rsynced the rest. Maybe I used the wrong switch somewhere, or maybe my pacman db was corrupt? I'm trying to update the system now and I get the file exists error for what I looks like every file on the system. The error log is 22000 lines.

coreutils: /bin/cat exists in filesystem
coreutils: /bin/chgrp exists in filesystem
coreutils: /bin/chmod exists in filesystem
...
xdg-user-dirs-gtk: /usr/share/locale/zh_HK/LC_MESSAGES/xdg-user-dirs-gtk.mo exists in filesystem
xdg-user-dirs-gtk: /usr/share/locale/zh_TW/LC_MESSAGES/xdg-user-dirs-gtk.mo exists in filesystem

Is there anything I can do? Without needing to boot from install media?

Last edited by tladuke (2013-01-23 05:21:02)

Offline

#2 2013-01-22 06:38:08

matteotom
Member
Registered: 2012-12-01
Posts: 7

Re: File exists in filesystem after copying system. [Solved]

You could try

pacman -Syu -f

The -f means force, and will overwrite all those files.

You could also try

pacman -S $(pacman -Qeq | grep -v "$(pacman -Qmq)") -f

which would reinstall every explicitly installed package not from the aur or a pkgbuild, with the -f flag.

Last edited by matteotom (2013-01-22 06:39:20)

Offline

#3 2013-01-22 06:49:43

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

Re: File exists in filesystem after copying system. [Solved]

Umm...  looks like you completely missed moving you pacman database over.  /var/lib/pacman/local

Offline

#4 2013-01-22 07:33:31

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: File exists in filesystem after copying system. [Solved]

I was just re-copying that before refreshing the thread. Still doesn't work. Any other ideas? I think I'm going to just end up installing to another disk.
Not too sure about running -f. I mean, at least the system boots and runs fine...

Offline

#5 2013-01-22 07:41:04

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

Re: File exists in filesystem after copying system. [Solved]

Do you have a file called /var/lib/pacman/local/coreutils-*/files

Offline

#6 2013-01-22 16:22:01

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: File exists in filesystem after copying system. [Solved]

I have /var/lib/pacman/local/coreutils-8.20-1 /{desc,files,install}

edit:
and files is empty
sad

Last edited by tladuke (2013-01-22 22:57:14)

Offline

#7 2013-01-23 05:20:32

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: File exists in filesystem after copying system. [Solved]

I fscked the original disk and the pacman db came back so I copied it over and everything is good. Solved I guess.

Offline

Board footer

Powered by FluxBB