Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant box chef/freebsd-10.0: Unable to install packages #407

Closed
fd0 opened this issue Jul 18, 2015 · 2 comments
Closed

vagrant box chef/freebsd-10.0: Unable to install packages #407

fd0 opened this issue Jul 18, 2015 · 2 comments

Comments

@fd0
Copy link

fd0 commented Jul 18, 2015

First: Thanks for providing the boxes for easy use with vagrant!

I was trying to use the box chef/freebsd-10.0 with a shared folder of type rsync. On vagrant up, vagrant installs rsync, which failed with the following error message:

==> freebsd: Installing rsync to the VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

pkg install -y rsync

Stdout from the command:

Updating repository catalogue
Incremental update completed, 24348 packages processed:
21196 packages updated, 1774 removed and 3152 added.


Stderr from the command:

pkg: package field incomplete: comment
pkg: Unable to find catalogs

Upon manual inspection I found that pkg install rsync indeed fails because the package version could not be found. This is caused by an error in the file /etc/pkg/FreeBSD.conf, which references the latest release. It may have worked when the box was released, but in the meantime FreeBSD 10.1 was published, so latest points to release_1 instead of release_0.

The original content of the file is:

# $FreeBSD: release/10.0.0/etc/pkg/FreeBSD.conf 258710 2013-11-28 14:24:26Z gjb $
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

For the FreeBSD 10.0 box, the third line should be changed to reference release_0, like this:

# $FreeBSD: release/10.0.0/etc/pkg/FreeBSD.conf 258710 2013-11-28 14:24:26Z gjb $
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/release_0",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

Could you please either publish a new version of the freebsd-10.0 box or publish freebsd-10.1?

@cheeseplus
Copy link
Contributor

Published @8a424e2900148bb8d732604844b4e18bce064d07 FreeBSD 10.2

@fd0
Copy link
Author

fd0 commented Aug 27, 2015

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants