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!
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!
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
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
|
DetailsDescription:
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
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.