Libxml2 can be uninstalled, breaking package management

REPRODUCIBILITY: may have been one-time
OSVERSION: 5.0.0.55
HARDWARE: Jolla C2 - s19mps - s19mps - 1.0.0.40 - aarch64
UI LANGUAGE: English (UK) (user: en_GB, os: en_GB.utf8)
REGRESSION: not specified

DESCRIPTION:

See Steps.

The system allows uninstallation of an important library.

After uninstallation, both zypper and pkcon, as well as ssu are broken due to missing library.

PRECONDITIONS:

STEPS TO REPRODUCE:

  1. DO NOT DO THIS
  2. pkcon remove libxml2
  3. pkcon anything
  4. zypper anything
  5. ssu anything

EXPECTED RESULTS:

The attempt to remove the package should trigger the ‘this request will break your system’ message.

ACTUAL RESULTS:

MODIFICATIONS:

  • Patchmanager: yes
  • OpenRepos: yes
  • Chum: yes
  • Other: none specified

ADDITIONAL INFORMATION:

Device Owner User: nemo
Home Encryption: enabled

the initial version of this bug report was created using Bugger 0.10.7
2 Likes

For me it behaves as expected and does not allow removing it

[root@JollaC2 ~]# pkcon remove libxml2
Resolving                                                                                                                                                                                                                                                      
Finished                                                                                                                                                                                                                                                      
Fatal error: This request will break your system!

What do you have in /etc/zypp/systemCheck.d/ ?
Did it remove anything else when you removed libxml2?

1 Like

Same here on C2 (20 chars…)

Same as in it allows you to remove libxml2 or not?

1 Like

No, same as in your post, screams about breakage and blocks

Ok, weird. Thanks for testing. Will have to retest.

/etc/zypp has:

nemo@PGJollaC2:~ $ md5sum /etc/zypp/systemCheck.d/*
09a16f863312cdcdd5e821dc693ff17c  /etc/zypp/systemCheck.d/feature-jolla.check
9b883c009c2a88e58d2f4665dd1659d6  /etc/zypp/systemCheck.d/ha.check
3e7c7b8511f7e0799ace4b4bae6b7a30  /etc/zypp/systemCheck.d/jolla-core.check

I did remove other things in the same go, unfortunately the exact command has dropped from shell history by now.

Zypp history indicates that the removal was two packages of my own making, plus libxml2.

zypp history snippet:

2025-02-17 20:46:55|command|root@PGJollaC2|'/usr/libexec/packagekitd'|
2025-02-17 20:46:56|remove |libass|0.17.1+git1-1.2.1.jolla|aarch64|root@PGJollaC2|bd8c975d633b55d40c409a52fa7a320340c617c19
2025-02-17 20:46:56|remove |libfmt|8.0.1-1.5.1.jolla|aarch64|root@PGJollaC2|
2025-02-17 20:46:56|remove |libxml2|2.13.4+git2-1.10.1.jolla|aarch64|root@PGJollaC2|
2025-02-17 21:00:42|command|root@PGJollaC2|'/usr/libexec/packagekitd'|

libass and libfmt are two I built myself.

I indeed can not reproduce ot now.