Freebsd – ports in freebsd jail fetching but not updating

freebsdjail

I've created a jail to host my webserver/blog, but when attempting to build any port, I consistently get the message "portsnap: Directory is not writable: /usr/ports".

Attached is a screen capture of my console outputs attempting to portsnap fetch/extract/update
console screen cap

I'm not certain how to deal with this. installing from pkg works, but I want ports so that I can build my own binaries (also, to understand what the heck is going on and how to resolve it).

Best Answer

The best idea - don't build packages in jail.

You could use pkg , or pkgng

But, if you want, create this dir

mkdir /usr/ports

And if its needed you could change permissions

chmod ... /usr/ports
Related Topic