========= I moved /var/db/pkg/osabi-NetBSD-8.0 and tried again ===========
I don't know what you mean here, but that sounds like a bad idea (messing with the control files of pkgsrc). So if you did mv of that to someplace, I would put it back. And then pkg_admin rebuild # like fsck pkg_admin rebuild-tree # like fsck rm -rf /usr/pkgsrc/*/*/work pkg_delete osabi-NetBSD (and you may need to use a different name, and see what's installed. If you can't delete it because something depends on it, go to the osabi source dir and "make replace clean" and then do that for the things that depended on it. Then try to build cups again. I think you are probably just suffering from the overzealous osabi issue, which is hard to fix in a general safe way, after 8.0 to current. But there, is isn't wrong. You may also be suffering from ghostscript-agpl/ghostscript-gpl. Decide which you want and set the gstype option to one of the following. The default changed fairly recently. PKG_OPTIONS.gs_type= ghostscript-agpl PKG_OPTIONS.gs_type= ghostscript-gpl After all that, stop and post the first error you don't understand, and try to not wrap the text, if that's doable with your mailer.