Pamac not able to connect AUR database

Hi all,
in the last three days trying a pamac upgrade gives me the error : “Failed to synchronize AUR database”

What can I do?

Here the command log:

     ~  LANG=C sudo pamac upgrade                                                                                                                                                                        126 ✘ 
[sudo] password for mirto: 
Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Preparing...
Synchronizing package databases...
Failed to synchronize AUR database
Nothing to do.
Transaction successfully finished.
    ~          

First off never use sudo with pamac.

Second, to use the AUR with pamac you should employ the --aur flag .

Third, you may wish to add --force-refresh as well.

Fourth, as you did use sudo you may need to delete the build directory.

Thanks a lot. It worked.

BTH why pamac don’t need sudo?

Command output:

    ~  lang=C pamac upgrade --aur --force-refresh                                                                                                                                                   ✔  19s  
Preparazione...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Autenticazione richiesta per installare, aggiornare o rimuovere pacchetti
Multiple identities can be used for authentication:
 1.  Mirto (mirto)
 2.  Federica (federica)
 3.  Enrico (enrico)
Choose identity to authenticate as (1-3): 1
Password: 
==== AUTHENTICATION COMPLETE ====
Sincronizzazione database dei pacchetti...
Aggiornamento core.db...                                                                                                                                                                                            
Aggiornamento extra.db...                                                                                                                                                                                           
Aggiornamento multilib.db...                                                                                                                                                                                        
Aggiornamento core.files...                                                                                                                                                                                         
Aggiornamento extra.files...                                                                                                                                                                                        
Aggiornamento multilib.files...                                                                                                                                                                                     
Aggiornamento AUR...                                                                                                                                                                                                
Niente da fare.                                                                                                                                                                                                     
Transazione completata con successo.
    ~     

It uses polkit if/when necessary to elevate privileges.

Using root/sudo will break the permissions of the build directory.

1 Like

Ok. Thanks a lot

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