Bug 201485 - bsdconfig no pkg database found
Summary: bsdconfig no pkg database found
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Devin Teske
URL:
Keywords:
: 175094 (view as bug list)
Depends on: 238314
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-11 22:07 UTC by yossarian holmberg
Modified: 2024-04-21 23:05 UTC (History)
7 users (show)

See Also:


Attachments
bsdconfig debug log, FBSD 10.1, documentation install (41.32 KB, text/plain)
2015-07-11 22:07 UTC, yossarian holmberg
no flags Details
bsdconfig debug log, FBSD 10.1, package install (31.88 KB, text/plain)
2015-07-11 22:08 UTC, yossarian holmberg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description yossarian holmberg 2015-07-11 22:07:49 UTC
Created attachment 158630 [details]
bsdconfig debug log, FBSD 10.1, documentation install

when using bsdconfig to install either documentation or packages on a fresh freebsd 10.1 install, after selecting media (main freebsd distribution site, FTP or HTTP) it appears to connect OK, but then i get "No pkg(8) database found!" on the GUI.  using bsdconfig -D debug file when attempting to install documentation shows this line when it fails:

/usr/libexec/bsdinstall/docsinstall: cannot open /var/db/pkg/repo-packagesite.sqlite

running bsdconfig for packages list/install fails with the same error message on the GUI, but the debug log doesn't seem to show any critical failures..?  i note there is a repo-FreeBSD.sqlite file in /var/db/pkg but not repo-packagesite.sqlite.  pkg appears to operate properly from the command line, and i've already done portsnap fetch extract and built/installed latest bsdconfig and pkg.
Comment 1 yossarian holmberg 2015-07-11 22:08:58 UTC
Created attachment 158631 [details]
bsdconfig debug log, FBSD 10.1, package install
Comment 2 Glen Barber freebsd_committer freebsd_triage 2015-07-18 00:05:56 UTC
This has been an ongoing problem since the 10.0-RELEASE cycle, and persisted through 10.1-RELEASE.

I do not expect this to be resolved anytime soon, and certainly not before 10.2-RELEASE.  Instructions on using the on-disc packages for installation were included in the 10.1-RELEASE announcement email, and will be included in the 10.2-RELEASE email as well.

I suspect the issue persists in 11.0-CURRENT as well.
Comment 3 yossarian holmberg 2015-07-18 02:58:36 UTC
that's a shame, i just hope this kind of bug doesn't discourage people who are new to FreeBSD and are attempting to do something basic like install documentation.  during installation at many VPS houses the standard procedure does not include docs, and bsdconfig looks like a reasonable way to try to procure them, up until it not working that is.. ;-)  is the issue that this is a complicated fix, or just that there isn't time prioritized to do it, given other things that need work..?
Comment 4 Glen Barber freebsd_committer freebsd_triage 2015-07-18 03:06:04 UTC
bsdconfig(8) is not needed for this.

 # pkg install freebsd-doc-en

(substituting 'en' for a language code) will provide the same result.

Personally, I think using utilites that wrap around pkg(8) hinder from the benefits pkg(8) provides, instead of providing a better user experience.
Comment 5 Devin Teske freebsd_committer freebsd_triage 2018-06-17 22:33:35 UTC
(In reply to yossarian holmberg from comment #0)

The problem, contrary to what Glen has to say, is that pkg is maintained outside of FreeBSD while bsdconfig is maintained inside FreeBSD. When I wrote and released bsdconfig, the path was as the error claims, /var/db/pkg/repo-packagesite.sqlite, whereas today it is different.

If this hasn't been fixed already and simply not closed, I will fix it and (either way) update this bug accordingly.
Comment 6 Devin Teske freebsd_committer freebsd_triage 2018-06-17 22:34:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195705 appears to be related
Comment 7 Graham Perrin freebsd_committer freebsd_triage 2022-10-01 18:22:07 UTC
*** Bug 175094 has been marked as a duplicate of this bug. ***
Comment 8 Mark Linimon freebsd_committer freebsd_triage 2024-01-20 21:30:25 UTC
^Triage: to assignee: is there anything further that needs to be done with this PR?
Comment 9 Luc 2024-04-21 23:05:27 UTC
I just installed 14.0-RELEASE and ran into this problem.