You are not logged in.

#1 2021-01-20 00:05:51

GLXYNVA
Member
Registered: 2021-01-20
Posts: 3

Can't upgrade filesystem

resolving dependencies...
looking for conflicting packages...

Packages (1) filesystem-2021.01.19-1

Total Installed Size:  0.03 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                          [#############################] 100%
(1/1) checking package integrity                        [#############################] 100%
(1/1) loading package files                             [#############################] 100%
(1/1) checking for file conflicts                       [#############################] 100%
(1/1) checking available disk space                     [#############################] 100%
:: Processing package changes...
(1/1) reinstalling filesystem                           [#############################] 100%
error: extract: not overwriting dir with file /usr/local/share/man
error: problem occurred while upgrading filesystem
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.

Offline

#2 2021-01-20 00:09:09

loqs
Member
Registered: 2014-03-06
Posts: 17,377

Re: Can't upgrade filesystem

/usr/local/share/man should be a symlink

stat /usr/local/share/man
/usr/local/share/man -> ../man

Something replaced the symlink with a directory and that change is preventing the upgrade.  Did you run some shell script or make install as root?

Offline

#3 2021-01-20 00:16:14

GLXYNVA
Member
Registered: 2021-01-20
Posts: 3

Re: Can't upgrade filesystem

loqs wrote:

/usr/local/share/man should be a symlink

stat /usr/local/share/man
/usr/local/share/man -> ../man

Something replaced the symlink with a directory and that change is preventing the upgrade.  Did you run some shell script or make install as root?


Ah that makes sense. Yesterday I installed some rofi themes by running a shell script as root. Do you know any way I could fix it?

Last edited by GLXYNVA (2021-01-20 00:21:10)

Offline

#4 2021-01-20 00:25:40

loqs
Member
Registered: 2014-03-06
Posts: 17,377

Re: Can't upgrade filesystem

pacman -Qkk filesystem

See if any other symlinks have been changed.
Then it depends on if you want to keep the rofi theme.  The easiest option would be to remove the directory and its contents with:

# rm -rf /usr/local/share/man

Then when pacman installs the updated filesystem package it will create the symlink in its place.

Offline

#5 2021-01-20 00:45:23

GLXYNVA
Member
Registered: 2021-01-20
Posts: 3

Re: Can't upgrade filesystem

loqs wrote:
pacman -Qkk filesystem

See if any other symlinks have been changed.
Then it depends on if you want to keep the rofi theme.  The easiest option would be to remove the directory and its contents with:

# rm -rf /usr/local/share/man

Then when pacman installs the updated filesystem package it will create the symlink in its place.

Thanks! I deleted /usr/local/share/man and the filesystem now updated successfully.

Offline

#6 2021-01-20 13:30:12

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Can't upgrade filesystem

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB