Solved Cannot Install pkg

fedqx

Member

Reaction score: 2
Messages: 64

Hello, I wanted to check for updates on my server and ran pkg update but the output was:
Code:
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Which I replied yes
Code:
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.16.1...
the most recent version of pkg-1.16.1 is already installed

Thats... weird? anyways, let's update the system pkg update:
Code:
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]:

And that's how I got stuck in this loop. I didn't do any system modifications, I just booted it and this happened.
I ran these command and It fixed... until a reboot and it was the same loop again.
Code:
rm -rf /usr/local
rm -rf /usr/ports
rm -rf /var/db/ports
rm -rf /var/db/pkg
rm -rf /var/db/
rm -rf /boot/modules
 
Top