Skip to content

Arch Linux: error: could not open file /var/lib/pacman/sync/selinux.db: Unrecognized archive format #124

@AFlyingNut

Description

@AFlyingNut

Since a few days ago, I have been facing an issue where running sudo pacman -Syu and sudo pacman -Syyu outputs the following error, then the command will end. It does look like this started with the release that was done 4 days ago.

:: Synchronizing package databases...
 core is up to date
 extra                                                                                 7.3 MiB  4.90 MiB/s 00:01 [###################################################################] 100%
 selinux is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/selinux.db: Unrecognized archive format
error: failed to prepare transaction (invalid or corrupted database

When inspecting /var/lib/pacman/sync/selinux.db it seems that all that files contains is the text "selinux.db.tar.xz". I have tried deleting the file, but it regenerates with the same contents. If i comment out the selinux lines from /etc/pacman.conf, it at least lets pacman upgrade the core and extra packages, but selinux will no longer update.

Does anyone have any ideas on how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions