Bug 241816 - ports-mgmt/pkg: cannot bootstrap itself from an ssh:// repository (says "Invalid URL scheme")
Summary: ports-mgmt/pkg: cannot bootstrap itself from an ssh:// repository (says "Inva...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Package Infrastructure (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-pkg (Nobody)
Depends on:
Reported: 2019-11-09 05:08 UTC by Victor Sudakov
Modified: 2021-08-23 02:08 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (pkg)


Note You need to log in before you can comment on or make changes to this bug.
Description Victor Sudakov 2019-11-09 05:08:47 UTC
# pkg update
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from ssh://svn.XXX.XXX.ru/poudriere/data/packages/FreeBSD:12:amd64, please wait...
pkg: Error fetching ssh://svn.XXX.XXX.ru/poudriere/data/packages/FreeBSD:12:amd64/Latest/pkg.txz: Invalid URL scheme
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.

The package is of course there:

# scp svn.XXX.XXX.ru:/poudriere/data/packages/FreeBSD:12:amd64/Latest/pkg.txz .
pkg.txz                                                                                           100% 6653KB   8.3MB/s   00:00

Workaround: enable the default FreeBSD repo (or any other repo available via http://), let it fetch and install pkg, then reenable the ssh:// repo.
Comment 1 Baptiste Daroussin freebsd_committer 2021-08-18 12:12:50 UTC
yes this is a known limitation of the pkg support for ssh scheme, I would love to see someone reimplement the ssh support, for now I don't really have time for this :(
Comment 2 Victor Sudakov 2021-08-20 10:04:48 UTC
So, a close with "won't fix"?
Comment 3 Baptiste Daroussin freebsd_committer 2021-08-21 04:54:38 UTC
I am puzzled for closing, I would like to find time to implement the ssh bootstrap one day :D
Comment 4 Victor Sudakov 2021-08-23 02:08:01 UTC
(In reply to Baptiste Daroussin from comment #3)
OK, let's leave it dormant then.