FS#73590 - Upgrading pacman fails if "/var/cache/pacman/pkg" is a symbolic link

Attached to Project: Arch Linux
Opened by Joey Joey (jroovy-11904) - Tuesday, 01 February 2022, 20:05 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 01 February 2022, 20:59 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:
Trying to update/install pacman (as part of "sudo pacman -Syu") will fail if the folder "/var/cache/pacman/pkg" is a symbolic link, causing the Arch Linux install to be permanently broken

Additional info:
Package version: pacman 6.0.1-3

Steps to reproduce:
1) Update pacman with either:
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 01 February 2022, 20:59 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#72228  and many others
Comment by Joey Joey (jroovy-11904) - Tuesday, 01 February 2022, 20:06 GMT
sorry, accidentally hit send when trying to tab
Comment by Joey Joey (jroovy-11904) - Tuesday, 01 February 2022, 20:08 GMT
here's the log file, when trying to upgrade
Comment by Jonathon (jonathon) - Tuesday, 01 February 2022, 20:25 GMT
This has been reported a few times, and the cause is a manual change that has broken the package's assumption that `/var/cache/pacman/pkg` is a directory owned by the package.

The better approach for a custom package cache is to set `CacheDir` in `/etc/pacman.conf`.

Loading...