You are not logged in.

#1 2014-06-05 03:30:33

dagle
Member
Registered: 2009-01-04
Posts: 13

Can't update filesystem

I did my last update 4 days ago. But today when I was going an update filesystem,  it wouldn't work because of conflicting files:

filesystem: /bin exists in filesystem
filesystem: /etc/arch-release exists in filesystem
filesystem: /etc/mtab exists in filesystem
filesystem: /etc/os-release exists in filesystem
filesystem: /etc/profile.d/locale.sh exists in filesystem
filesystem: /lib exists in filesystem
filesystem: /lib64 exists in filesystem
filesystem: /sbin exists in filesystem
filesystem: /usr/lib/modprobe.d/usb-load-ehci-first.conf exists in filesystem
filesystem: /usr/lib64 exists in filesystem
filesystem: /usr/local/share/man exists in filesystem
filesystem: /usr/sbin exists in filesystem
filesystem: /usr/share/man/man7/archlinux.7.gz exists in filesystem
filesystem: /var/lock exists in filesystem
filesystem: /var/mail exists in filesystem
filesystem: /var/run exists in filesystem

after probing a bit:
find /lib -exec pacman -Qo -- {} +
and that yeilds "error: No package owns /lib" but it should be owned by filesystem and it seem to be the common factor with all these files.

This machine have done the filesystem upgrades in the past that required user intervention but I don't recall doing anything that could have caused this and never ever have I used --force with pacman. Is there a way for filesystem to claim these files? None of these files seem to be system critical (mostly symlinks)

Last edited by dagle (2014-06-05 03:35:36)

Offline

#2 2014-06-05 03:43:01

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

Re: Can't update filesystem

What is in /var/lib/pacman/local/filesystem-<version>/files?

It should be a list of all of the files belonging to the filesystem package. I'm guessing your is blank or missing. The normal procedure would be to use --force, but I would NOT want to do that with the filesystem package.

Offline

#3 2014-06-05 06:10:02

ihad
Member
Registered: 2010-04-15
Posts: 6

Re: Can't update filesystem

I'm not the original Poster, but had the same problem.
Indeed, /var/lib/pacman/local/filesystem-2013.05-2/files was a empty, as every file in that directory.
My solution: I copied all the files in that directory from another box. Dunno if that's the right solution, but it worked for me.

Offline

#4 2014-06-05 06:14:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Can't update filesystem

ihad wrote:

My solution: I copied all the files in that directory from another box. Dunno if that's the right solution, but it worked for me.

This is a bad idea

Offline

#5 2014-06-05 07:33:16

ihad
Member
Registered: 2010-04-15
Posts: 6

Re: Can't update filesystem

WonderWoofy wrote:

This is a bad idea

Why is this a bad idea? I should have mentioned that the other box was the same architecture and the filesystem-package versions were identical, of course (both 2013.05-2, x86_64, the other box was _not_ updated yet).

Offline

#6 2014-06-05 10:07:42

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

Re: Can't update filesystem

WonderWoofy wrote:
ihad wrote:

My solution: I copied all the files in that directory from another box. Dunno if that's the right solution, but it worked for me.

This is a bad idea

What do you suggest?
I know I can make backups of /var/lib/pacman/local/ to use them in case of pacman  files database corruption and that's sort of what ihad did.

Offline

#7 2014-06-05 10:15:44

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,548
Website

Re: Can't update filesystem

karol wrote:
WonderWoofy wrote:
ihad wrote:

My solution: I copied all the files in that directory from another box. Dunno if that's the right solution, but it worked for me.

This is a bad idea

What do you suggest?
I know I can make backups of /var/lib/pacman/local/ to use them in case of pacman  files database corruption and that's sort of what ihad did.

I would recommend 'pacman -U --dbonly', though both methods could have negative consequences if you mix your versions up.

EDIT: -U not -S. You should reinstall the db for the version of the package that you have installed.

Last edited by WorMzy (2014-06-05 10:26:57)


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

#8 2014-06-05 12:48:12

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Can't update filesystem

Have you seen this wiki entry?

Offline

#9 2014-06-08 18:35:00

gondsman
Member
Registered: 2009-07-27
Posts: 85

Re: Can't update filesystem

I'm having the exact same issue...

Offline

#10 2014-06-08 19:27:37

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,548
Website

Re: Can't update filesystem

Then follow the advice in the thread?


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

#11 2014-06-08 19:37:03

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Can't update filesystem

A little late, but I had misread post #3 as saying that he was going to copy all the stuff from /var/lib/pacman/local rather than just for the filesystem package itself.  So please, continue to ignore me. smile

Offline

Board footer

Powered by FluxBB