I tried installing neovim using 'pamac install neovim' and got this signature error

when i type “sudo pamac install neovim” to install it, it gives a error saying Error: Failed to commit transaction: invalid or corrupted package (PGP signature):

heres the full output

Preparing...
Synchronizing package databases...
Refreshing AUR...                                                                                                                      
                                                                                                                                       
Choose optional dependencies for neovim:
1:  python-neovim: for Python 3 plugin support (see :help python)
2:  xsel: for clipboard support on X11 (or xclip) (see :help clipboard)
3:  wl-clipboard: for clipboard support on wayland (see :help clipboard)

Enter a selection (default=none): 1

Resolving dependencies...
Checking inter-conflicts...

To install (11):
  unibilium        2.1.1-1     (Required By: neovim)  community  114.5 kB
  libtermkey       0.22-2      (Required By: neovim)  community  48.2 kB
  libuv            1.43.0-1    (Required By: neovim)  extra      232.0 kB
  msgpack-c        4.0.0-1     (Required By: neovim)  community  31.1 kB
  libvterm01       0.1.4-2     (Required By: neovim)  community  35.5 kB
  libluv           1.43.0_0-1  (Required By: neovim)  community  56.4 kB
  tree-sitter      0.20.6-1    (Required By: neovim)  community  1.7 MB
  neovim           0.7.0-3                            community  6.0 MB
  python-msgpack   1.0.3-1                            community  75.4 kB
  python-greenlet  1.1.2-3                            community  88.3 kB
  python-pynvim    0.4.3-2                            community  66.6 kB

Total download size: 8.4 MB
Total installed size: 39.0 MB

Apply transaction ? [y/N] y
Download of libtermkey (0.22-2) started                                                                                                
Download of libtermkey (0.22-2) finished                                                                                               
Download of unibilium (2.1.1-1) started                                                                                                
Download of unibilium (2.1.1-1) finished                                                                                               
Download of python-msgpack (1.0.3-1) started                                                                                           
Download of libuv (1.43.0-1) started                                                                                                   
Download of python-msgpack (1.0.3-1) finished                                                                                          
Download of libuv (1.43.0-1) finished                                                                                                  
Download of libvterm01 (0.1.4-2) started                                                                                               
Download of libvterm01 (0.1.4-2) finished                                                                                              
Download of python-greenlet (1.1.2-3) started                                                                                          
Download of python-greenlet (1.1.2-3) finished                                                                                         
Download of libluv (1.43.0_0-1) started                                                                                                
Download of libluv (1.43.0_0-1) finished                                                                                               
Download of msgpack-c (4.0.0-1) started                                                                                                
Download of msgpack-c (4.0.0-1) finished                                                                                               
Download of python-pynvim (0.4.3-2) started                                                                                            
Download of python-pynvim (0.4.3-2) finished                                                                                           
Download of tree-sitter (0.20.6-1) started                                                                                             
Download of neovim (0.7.0-3) started                                                                                                   
Download of tree-sitter (0.20.6-1) finished                                                                                            
Download of neovim (0.7.0-3) finished                                                                                                  
Checking keyring...                                                                                                             [11/11]
Checking integrity...                                                                                                           [11/11]
Error: libvterm01: signature from "Bernhard Landauer <bernhard@manjaro.org>" is unknown trust
Error: neovim: signature from "Bernhard Landauer <bernhard@manjaro.org>" is unknown trust
Removing invalid files and retrying...
Resolving dependencies...
Checking inter-conflicts...
Download of libvterm01 (0.1.4-2) started                                                                                               
Download of libvterm01 (0.1.4-2) finished                                                                                              
Download of neovim (0.7.0-3) started                                                                                                   
Download of neovim (0.7.0-3) finished                                                                                                  
Checking keyring...                                                                                                             [11/11]
Checking integrity...                                                                                                           [11/11]
Error: libvterm01: signature from "Bernhard Landauer <bernhard@manjaro.org>" is unknown trust
Error: neovim: signature from "Bernhard Landauer <bernhard@manjaro.org>" is unknown trust
Error: Failed to commit transaction: invalid or corrupted package (PGP signature):

Don’t run pamac as root or with sudo. Especially not when building a package from AUR.

refresh the keys:

sudo pacman-key --refresh-keys

That could take a while and errors are normal.

I will try doing it without sudo but I already refreshed the keys.

Why don’t you use sudo pacman -S neovim?

it fixed itself after a reinstall

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.