Actually, I experienced this many times when using raspberry. Just add the sudo command at the beginning of your command line.
sudo