can't write file?how should i install emacs via zypper?

when I tried to install emacs using zypper in emacs, I got the prompt and I chose y to continue, but then I got the error message " can’t write file : /var…" something like that, retried ,still didn’t work, same error. I tried other packages like nmap, zenmap ,no error occurred.can anyone help with this case?

Hello and welcome here.

We always like to know which version of openSUSE you use.

Also we like to see exactly what happens, and no “something like that”.
Please copy/paste from your terminal window the prompt, the command, the output and the next prompt between CODE tags in your post. You get the CODE tags by clicking on the # button in the tool bar of the post editor.