this post was submitted on 17 Apr 2026
14 points (100.0% liked)

openSUSE

1097 readers
1 users here now

openSUSE is an open, free and secure operating system for PC, laptops, servers and ARM devices. Managing your emails, browsing the web, watching online streams, playing games, serving websites or doing office work never felt this empowering. And best part? It's not only backed by one of the leaders in open source industry, but also driven by lively community.

founded 2 years ago
MODERATORS
 

Updating from Tumbleweed 20260331 to 20260415, zypper dup fails at accountsservice :(

error: lsetfilecon: (11 /usr/share/accountsservice, system_u:object_r:accountsd_share_t:s0) Invalid argument  
error: Plugin selinux: hook fsm_file_prepare failed  
error: unpacking of archive failed on file /usr/share/accountsservice: cpio: (error 0x2)  
error: accountsservice-23.13.9-11.3.x86_64: install failed  
error: accountsservice-23.13.9-11.2.x86_64: erase skipped  
(557/916) Installing: accountsservice-23.13.9-11.3.x86_64 ..................................................................................................[error]  
Installation of accountsservice-23.13.9-11.3.x86_64 failed:  
Error: Subprocess failed. Error: RPM failed: Command exited with status 1.  
Abort, retry, ignore? [a/r/i] (a): a  
Warning: %posttrans and %transfiletrigger scripts are not executed when aborting!  

What should I do?

you are viewing a single comment's thread
view the rest of the comments
[–] steel_for_humans@piefed.social 2 points 1 month ago (1 children)

@mrscruff@lemmy.zip do you mean I should have ignored the failure and let Zypper continue?

[–] MrScruff@lemmy.zip 1 points 1 month ago (1 children)

I'm not 100% sure because I don't use that package manager, but from the looks of it what happened was:

  • you ran an upgrade that failed or you aborted an upgrade
  • that update added a new selinux policy
  • because it failed/aborted it didn't run the post-transaction hooks that reload your selinux policies
  • you ran the upgrade that you posted about
  • this upgrade failed because it relies on the selinux policy that didn't get loaded
[–] steel_for_humans@piefed.social 1 points 1 month ago* (last edited 1 month ago) (1 children)

I didn't run a failed or aborted upgrades before that. Just zypper dup that day and it fell flat on its face during updating that accountsservice package. Everything is in my post, there was nothing before that. My system was fully functional before Friday.

[–] MrScruff@lemmy.zip 1 points 1 month ago (1 children)

The failed zypper dup could have been from a day or week ago. It only recompiles the policy binary in the post transaction hooks.

If you want to track it down take a look in /var/log

There will be zypper logs and in zypp/history you can see all your transactions.

[–] steel_for_humans@piefed.social 1 points 1 month ago (1 children)

OK, that's interesting :) I'm learning something new. What would I be looking for in the Zypper history log? Any keywords you'd look for?

[–] MrScruff@lemmy.zip 1 points 4 weeks ago

I would start by grepping /var/log/zypper.log for aborted or posttrans, seeing where the previous installation failed to run the post transaction hook. Then check the timestamp and see if it makes more sense what happened.

I don't use opensuse, or zypper, (arch btw) so I'm sorry I can't give more detailed help.

The good news is I've seen multiple broken Ubuntu/Debian/etc systems from aborted upgrades too. So I don't think your situation is unique to your distro. It's more about learning what you system is actually doing when you update and how catch when something has gone wrong.