Solved pkg upgrade terminated. child process pid=xxx terminated abnormally:killed

Just a help for those having same problem with the same problem. This problem occurred after I upgrade my VPS to FreeBSD 11.0, only one machine has this problem. I tried everything I can do to fix it but none works.
Today I found the source of the problem and got it fixed. Here is the solution:

Because this machine's MEM is small(512m actually) and runs lots of services, the memory was not enough for pkg upgrade and I didn't set up the swap filesystem. After setting up the swapfile it works fine.

I post it here in cause someone having the same problem with it and it may help.

Regards,
Fozzy
 
Back
Top