Package: libpcre2-8-0
Version: 10.46-1~deb13u1
Severity: normal

root@usagi:~# restorecon -R -v /etc
restorecon: /etc/selinux/default/contexts/files/file_contexts.bin:  Regex 
version mismatch, expected: 10.46 2025-08-27 actual: 10.45 2025-02-05
restorecon: /etc/selinux/default/contexts/files/file_contexts.homedirs.bin:  
Regex version mismatch, expected: 10.46 2025-08-27 actual: 10.45 2025-02-05
restorecon: /etc/selinux/default/contexts/files/file_contexts.local.bin:  Regex 
version mismatch, expected: 10.46 2025-08-27 actual: 10.45 2025-02-05
root@usagi:~# 

After the Trixie update (and any other such update to libpcre) the above
warnings appear when doing SE Linux relabel operations (which includes running
dpkg to install packages).

rm -f /etc/selinux/*/contexts/files/file_contexts*.bin

The solution is to run a command like the above in the postinst when an
upgrade that uses a new version of the on-disk format happens.  The SE Linux
programs all work correctly without such cache files and the cache files
will be regenerated the next time the context list is changed.

There is no downside to running that command other than losing the benefit of
caching.  No matter the SE Linux configuration or in the case of SE Linux not
being installed it will not harm functionality.

-- System Information:
Debian Release: 13.1
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.32-amd64 (SMP w/44 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages libpcre2-8-0 depends on:
ii  libc6  2.41-12

libpcre2-8-0 recommends no packages.

libpcre2-8-0 suggests no packages.

-- debconf-show failed

Reply via email to