Insufficent privilages to install packages on freebsd

Good evening,
I just installed FreeBSD. When I try to log on ok with username and password ok but when I try to pkg install update it says I have insufficient privilages even if enter with root pkg install update it always insufficient privileges to update any help please
 
Last edited by a moderator:
Did you recently upgrade?

Are you increasing privilege with su or similar from a normal user or are you logged in as root?

What's the output of these commands:
$ freebsd-version -kru
$ mount
$ ls -ld /var/db/pkg
 
I think the best thing is to describe exactly what you did. Did you type the words pkg install update?
If I do that I get a message that no pkg available matching update.
Did you try to install one package, like pkg install firefox?

Did you try sudo or doas, like sudo install firefox?
When you say I even tried as root, did you do su, then put in root's password?

The more specific you can be, the easier it will be to answer your questions. When you're first starting out, it might be hard to figure out what information to give. Beastie gave some suggestions.
So, if you can, take us through the steps you used, and the packages you tried to install. As I said, doing pkg install update would give an error as there's no package called update.

It might also help if you told us the result of typing
Code:
whoami
at the prompt.
 
yesterday after installing I tried pkg install update in terminal pkg; "Insufficient privileges to install packages", or also has root game the same error "Insufficient privileges to install packages"

i think sudo is not installed becuase also tried pkg install sudo "Insufficient privileges to install packages"
 
I did do su and root had the same problem
I'm betting you got an error on su(1). I'm pretty sure your user isn't a member of the wheel group. Newbies always struggle with this.

Just logout, and login with root. Then install security/sudo or security/doas, whichever you prefer. Configure it. Then logoff and login with your user account again, and use sudo pkg install ... or doas pkg install ...
 
Back
Top