NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/50343: pkgsrc bootstrap broken on fresh installation of NetBSD 7.0 amd64

On Sun, Oct 18, 2015 at 08:45:01PM +0000, wrote:
> In short: It seems that chosing to install pkgin during the NetBSD
> installation process will render pkgsrc impossible to install out
> of the box.

In short: you are wrong.

> In details: I'm used to Linux but new to NetBSD. I downloaded the 7.0
> amd64 iso and booted it in VirtualBox. At the configuration step in the
> installation, I selected "Enable installation of binary packages"
> (which enabled pkgin). I also selected "Additional packages" and
> entered "bash". (I'm not sure if this is needed to reproduce, probably not.)

This means you will have some pre-installed packages and the associated
package database entries in /usr/pkg and /var/db/pkg.

> I did not choose to install pkgsrc, at that time.

Yes, you did. pkgin is just a tool on top of the normal binary package
management infrastructure.

> Later on, I found out that without pkgsrc, a NetBSD installation is not
> very useful. I tried to install pkgsrc by running these steps as root:
> # cd /tmp
> # ftp
> # tar -xzvf pkgsrc.tar.gz -C /usr
> # cd /usr/pkgsrc/bootstrap/
> # ./bootstrap

You don't have to do the bootstrap, your system already has all the

> As I understand, that would be the recommended way to install pkgsrc. However, this fails. The problematic part of the log:
> ===> Installing for pkg_install-20150901
> ERROR: pkg_install-20150508 is already installed - perhaps an older version?
> ERROR: If so, you may use either of:
> ERROR:     - "pkg_delete pkg_install-20150508" and "/usr/pkgsrc/bootstrap/work/bin/bmake reinstall"
> ERROR:       to upgrade properly
> ERROR:     - "/usr/pkgsrc/bootstrap/work/bin/bmake update" to rebuild the package and all
> ERROR:       of its dependencies
> ERROR:     - "/usr/pkgsrc/bootstrap/work/bin/bmake replace" to replace only the package without
> ERROR:       re-linking dependencies, risking various problems.
> *** Error code 1

...wich is not very surprising given that it is already installed as
part of the pkgin choice. Just don't bootstrap.


Home | Main Index | Thread Index | Old Index