error: obcommunity: signature from "GPG_SIGN_KEY (Gpg key to sign package through git builder) <pkg@obarun.org>" is invalid

re-install obcommunity-keyring didn't help.

Setting
SigLevel = Never
seems to help for the moment. Updates are possible.
But it's no solution, of course.

Thanks for the reports, just force to sync again

pacman -Syy

It should be good

    eric pacman -Syy

    This seems to be insufficient to fully resolve the problem. I also tried temporarily setting the siglevel to Never, then pacman -Syy, then reinstall obcommunity-keyring. But once signature verification is enabled again pacman still complains about the git builder's signature being invalid.

    Same problem:

    $ sudo pacman -Syy
    error: obcommunity: signature from "GPG_SIGN_KEY (Gpg key to sign package through git builder) <pkg@obarun.org>" is invalid
    :: Synchronizing package databases...
     obcore                                                                   39.1 KiB  85.1 KiB/s 00:00 [###########################################################] 100%
     obextra                                                                 236.1 KiB  1775 KiB/s 00:00 [###########################################################] 100%
     obcommunity                                                              52.2 KiB  1043 KiB/s 00:00 [###########################################################] 100%
     observice                                                                28.6 KiB   666 KiB/s 00:00 [###########################################################] 100%
     core                                                                    128.6 KiB  1037 KiB/s 00:00 [###########################################################] 100%
     extra                                                                     8.3 MiB  8.16 MiB/s 00:01 [###########################################################] 100%
    error: obcommunity: signature from "GPG_SIGN_KEY (Gpg key to sign package through git builder) <pkg@obarun.org>" is invalid
    error: failed to synchronize all databases (unexpected error)
    

    The obcommunity db was previously signed by mistake(bad configuration of a package). So you need to remove the /var/lib/pacman/sync/obcommunity-* files and sync again.
    Tell me if it's work or not.

      eric So you need to remove the /var/lib/pacman/sync/obcommunity-* files and sync again.

      There're no /var/lib/pacman/sync/obcommunity-* files but

      $sudo pacman -Syu

      pulls the new obcommunity-keyring in and everything works now.

      Changing to "SOLVED".

      • cdop replied to this.

        chroot There're no /var/lib/pacman/sync/obcommunity-* files but

        If you had those files you would have had to remove them (it was the case on my machine).

        In any case, the issue is solved if you follow @eric 's latest instructions.

        chroot changed the title to [SOLVED] obcommunity key error .
        13 days later

        Hallo everyone!
        This did not work by me...
        igrk@obarunS6 [1] ~ % sudo rm /var/lib/pacman/sync/obcommunity.*
        '/var/lib/pacman/sync/obcommunity.db' rimosso
        igrk@obarunS6 ~ % sudo pacman -Syu
        :: Sincronizzazione dei database in corso...
        obcore è aggiornato
        obextra è aggiornato
        obcommunity 53,7 KiB 35,8 KiB/s 00:02 [------------------------------------------------------------] 100%
        observice è aggiornato
        core è aggiornato
        extra è aggiornato
        errore: impossibile scaricare il pacchetto 'obcommunity.db.sig' da cloud.server.obarun.org : The requested URL returned error: 404
        errore: impossibile sincronizzare tutti i database (errore inaspettato)

        Solved: SigLevel = Never

        please share the content of your /etc/pacman.conf

        10 months later
        # /etc/pacman.conf
        #
        # See the pacman.conf(5) manpage for option and repository directives
        
        #
        # GENERAL OPTIONS
        #
        [options]
        # The following paths are commented out with their default values listed.
        # If you wish to use different paths, uncomment and update the paths.
        #RootDir     = /
        #DBPath      = /var/lib/pacman/
        #CacheDir    = /var/cache/pacman/pkg/
        #LogFile     = /var/log/pacman.log
        #GPGDir      = /etc/pacman.d/gnupg/
        #HookDir     = /etc/pacman.d/hooks/
        HoldPkg     = pacman glibc
        #XferCommand = /usr/bin/curl -L -C - -f -o %o %u
        #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
        #CleanMethod = KeepInstalled
        Architecture = auto
        
        # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
        IgnorePkg    = systemd systemd-libs
        #IgnoreGroup =
        
        #NoUpgrade   =
        NoExtract    = usr/lib/libsystemd*.* usr/lib/systemd* etc/systemd*
        
        # Misc options
        #UseSyslog
        Color
        #NoProgressBar
        CheckSpace
        #VerbosePkgLists
        ParallelDownloads = 5
        DownloadUser = alpm
        #DisableSandbox
        ILoveCandy
        
        # By default, pacman accepts packages signed by keys that its local keyring
        # trusts (see pacman-key and its man page), as well as unsigned packages.
        SigLevel    = Required
        LocalFileSigLevel = Optional
        #RemoteFileSigLevel = Required
        
        # NOTE: You must run `pacman-key --init` before first using pacman; the local
        # keyring can then be populated with the keys of all official Arch Linux
        # packagers with `pacman-key --populate archlinux`.
        
        #
        # REPOSITORIES
        #   - can be defined here or included from another file
        #   - pacman will search repositories in the order defined here
        #   - local/custom mirrors can be added here or in separate files
        #   - repositories listed first will take precedence when packages
        #     have identical names, regardless of version number
        #   - URLs will have $repo replaced by the name of the current repo
        #   - URLs will have $arch replaced by the name of the architecture
        #
        # Repository entries are of the format:
        #       [repo-name]
        #       Server = ServerName
        #       Include = IncludePath
        #
        # The header [repo-name] is crucial - it must be present and
        # uncommented to enable the repo.
        #
        
        # The testing repositories are disabled by default. To enable, uncomment the
        # repo name header and Include lines. You can add preferred servers immediately
        # after the header, and they will be used before the default mirrors.
        
        #[obcore-testing]
        #Server = https://cloud.server.obarun.org/$repo/os/$arch
        
        [obcore]
        Server = https://cloud.server.obarun.org/$repo/os/$arch
        
        #[obextra-testing]
        #Server = https://cloud.server.obarun.org/$repo/os/$arch
        
        [obextra]
        Server = https://cloud.server.obarun.org/$repo/os/$arch
        # [obcommunity] is not officially endorsed by Obarun,
        # and its use is at your own risk and discretion.
        # It is community-managed. You may consider participating
        # and contributing to this repository at
        # https://git.obarun.org/pkg/obcommunity
        [obcommunity]
        SigLevel = DatabaseOptional
        Server = https://cloud.server.obarun.org/$repo/os/$arch
        
        #[observice-testing]
        #Server = https://cloud.server.obarun.org/$repo/os/$arch
        
        [observice]
        SigLevel = DatabaseOptional
        Server = https://cloud.server.obarun.org/$repo/os/$arch
        
        #[core-testing]
        #SigLevel = DatabaseOptional
        #Include = /etc/pacman.d/mirrorlist
        
        [core]
        SigLevel = DatabaseOptional
        Include = /etc/pacman.d/mirrorlist
        
        #[extra-testing]
        #SigLevel = DatabaseOptional
        #Include = /etc/pacman.d/mirrorlist
        
        [extra]
        SigLevel = DatabaseOptional
        Include = /etc/pacman.d/mirrorlist
        
        # If you want to run 32 bit applications on your x86_64 system,
        # enable the multilib repositories as required here.
        
        #[multilib-testing]
        #SigLevel = DatabaseOptional
        #Include = /etc/pacman.d/mirrorlist
        
        #[multilib]
        #SigLevel = DatabaseOptional
        #Include = /etc/pacman.d/mirrorlist
        
        # An example of a custom package repository.  See the pacman manpage for
        # tips on creating your own repositories.
        #[custom]
        #SigLevel = Optional TrustAll
        #Server = file:///home/custompkgs

        Powered by Obarun