Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43623 - [pacman] Upgrade fails when /var/cache/pacman/pkg/ is a symbolic link

Attached to Project: Arch Linux
Opened by YF Velo (yfvelo) - Thursday, 29 January 2015, 10:17 GMT
Last edited by Allan McRae (Allan) - Thursday, 29 January 2015, 10:41 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Upgrading pacman fails when /var/cache/pacman/pkg is not a directory.
error: cannot remove /var/cache/pacman/pkg/ (Not a directory)

Having a symbolic link instead of a regular directory is sometimes useful.
For instance: we have 4 machines in the lab running Arch Linux and /var/cache/pacman/pkg points to a shared directory so that we only have to download the packages once.

A simple workaround solution is to remove the symbolic link and create a regular directory before upgrading pacman.
It would be best that pacman would test whether /var/cache/pacman/pkg/ actually exists, but not whether is is a directory.


Additional info:
* package version(s): 4.2.0-6
* config and/or log files etc.: probably related to the following line in the pkg’s .MTREE: ./var/cache/pacman/pkg time=1421041471.590510732 type=dir


Steps to reproduce:
rm -rf /var/cache/pacman/pkg ; ln -s [path-to-repository] /var/cache/pacman/pkg ; pacman -S pacman
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 29 January 2015, 10:41 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This is intended behaviour
Comment by Allan McRae (Allan) - Thursday, 29 January 2015, 10:41 GMT
Use a bind mount.

Loading...