OpenBSD snapshot: pkg_add saying "no such dir...Can't find package-name"This started happening about a week ago on my OpenBSD -snapshot install. Not sure why it's happening but this is probably due to transition to 7.1 release and may not last long.
Note: This is for -snapshot/-current version only. -release and -stable should be fine.
Sample output:
# pkg_add geany
https://cdn.openbsd.org/pub/OpenBSD/7.1/packages/amd64/: no such dir
Can't find geany
Fix:
# export PKG_PATH=https://cdn.openbsd.org/pub/OpenBSD/snapshots/packages/`machine -a`/
# pkg_add ...
It's possible to choose
any other mirror here. For example:
# export PKG_PATH=https://ftp.eu.openbsd.org/pub/OpenBSD/snapshots/packages/`machine -a`/
# export PKG_PATH=https://mirror.ox.ac.uk/pub/OpenBSD/snapshots/packages/`machine -a`/
#
OpenBSD #
snapshot #
current #
troubleshooting #
package #
management #
transition