Cannot install or remove any software: "Critical problem with the apps registry" / "Url scheme is a required component."

@olf Before upgrade to 4.4.0 it shows in “Settings/Sailfish OS updates” a message ''Remove or revert harbour-storeman"

I have tried following:
devel-su pkcon remove harbour-storeman

but it ended with a result:
“This tool could not find the installed package: Url scheme is a required component”.

I have currently SFOS 4.3.0.15 and Storeman 0.2.11 (on Xperia X).

The same result comes from:
devel-su pkcon refresh
“Fatal error: Url scheme is a required component.”

I have also tried removing Storeman at the GUI, as @throwaway69 suggested, with no success.

Now I tried (based on @olf recommendation):
ssu lr
It shows in the begining:
WARNING: ssu.ini does not seem to be writable. Setting values might not work.
and than it follows with a long list of
Enabled repositories (global)...etc.

Also, if I run Jolla Store from GUI, it shows:
“Problem with Store. Critical problem with the apps registry”.
and in “My apps menu” it shows: “You do not have any installed apps”.

I do not know, what is going on here, I am just an ordinary user, not a guru.
Please help. Thanks.

Now I tried (based on @olf recommendation):
ssu lr
It shows in the beginning:
WARNING: ssu.ini does not seem to be writeable. Setting values might not work.
and than it follows with a long list of
Enabled repositories (global)... etc.

Well, the “long list” is what I wanted to see, so please (as written before), do paste the output of ssu lr in a section between two lines with solely three backticks (```) in it. (This is most easily done at an PC when being logged in to your SFOS device via SSH.)

BTW, I changed the title, because this has nothing to do with Storeman.

Questions:

  1. Did you ever install zypper?
    Background: It would be helpful to use it for further analysis, but if it is not already installed, you currently cannot install it.

  2. Is your SailfishOS installation using a paid license?
    If so, you might consider opening a support ticket at Jolla’s Zendesk front-end.

It isn’t writeable if you do not have root permissions. Use devel-su.

You’re filesystem isn’t full, is it?

1 Like

This warning is printed evey time, it’s harmless in the case of ssu lr.

ssu ar/dr also work without root permissions for user repos.

The only time you should need root is when adding or removing system repos, which is rare.

1 Like

According to some googling that message indicates the zypper cache is corrupted.

Renaming/deleting it and doing a pkcon refresh should help.

I can’t say at the moment where that cache is, either /var/cache/zypp or somewhere in /home/.foo (NOT /home/user/.foo!).

See this post for detailed instructions, but probably without the symlinking.

Someone please confirm.

1 Like
# ls -al /home/.zypp-cache/packages/
total 48
drwxr-xr-x   12 root     root          4096 Mar 30 18:11 .
drwxr-xr-x    5 root     root          4096 Mar 13 13:57 ..
drwxr-xr-x    3 root     root          4096 Mar 13 13:57 apps
drwxr-xr-x    3 root     root          4096 Mar 24 10:50 donnie
drwxr-xr-x    4 root     root          4096 Mar 13 14:52 jolla
drwxr-xr-x    3 root     root          4096 Mar 21 19:59 sailfishos-chum
drwxr-xr-x    4 root     root          4096 Mar 13 17:31 sailfishos-chum-yggdrasil
drwxr-xr-x    3 root     root          4096 Mar 13 14:22 store

Oh, what an impedance mismatch!

@neo75, let me try to translate the recommendations:

  • Check for full filesystems in Settings->Storage or by executing df -h
    If there is only little space left (denote where?) you have to (re)move stuff (you may ask “what?”, when you reported what you see).
    Lastly test if a pkcon refresh works.
  • If not, try removing the Zypper cache (reference, e.g., URL scheme is a required component): It is just a cache, you may simply remove it by executing devel-su rm -rf /home/.zypp-cache/*
    Then test if a pkcon refresh works.

HTH

1 Like

@olf now here the complete list by devel-su ssu lr

Enabled repositories (global):

Enabled repositories (user):

Disabled repositories (global, might be overridden by user config):

Disabled repositories (user):

@olf my directory /var/cache/zypp/ is empty.

Settings/Storage shows:
User data 8.0 GB Used/ 9.8 GB Availiable
System data 1.7 GB Used/ 687.6 MB Free
Memory card 12.4 GB Used/ 17.4 GB Free

df -h shows following:

Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.4G      1.7G    687.6M  71% /
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /
devtmpfs                  1.3G     76.0K      1.3G   0% /dev
tmpfs                     1.4G         0      1.4G   0% /dev/shm
tmpfs                     1.4G      5.7M      1.4G   0% /run
tmpfs                     1.4G         0      1.4G   0% /sys/fs/cgroup
tmpfs                     1.4G      4.0K      1.4G   0% /tmp
tmpfs                     1.4G         0      1.4G   0% /mnt
/dev/mmcblk0p25          27.5M    232.0K     26.6M   1% /persist
/dev/mmcblk0p28         375.3M    164.2M    203.4M  45% /odm
/dev/mmcblk0p3           84.0M     61.3M     22.7M  73% /firmware
/dev/mmcblk0p13          11.7M      3.6M      7.8M  32% /dsp
/dev/mapper/luks-7af0a317-de16-4630-acdd-d48fdd044777
                         17.8G      8.0G      9.8G  45% /home
tmpfs                   279.5M    748.0K    278.8M   0% /run/user/100000
/dev/mmcblk1p1           29.8G     12.4G     17.4G  42% /run/media/defaultuser/9016-4EF8
tmpfs                     1.4G      5.7M      1.4G   0% /run/firejail/dbus
/dev/mapper/luks-7af0a317-de16-4630-acdd-d48fdd044777
                         17.8G      8.0G      9.8G  45% /opt/alien/data
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/bin
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/sbin
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/lib
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/usr
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/var
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/etc
tmpfs                     1.4G      4.0K      1.4G   0% /opt/alien/tmp
/dev/mapper/luks-7af0a317-de16-4630-acdd-d48fdd044777
                         17.8G      8.0G      9.8G  45% /opt/alien/home
devtmpfs                  1.3G     76.0K      1.3G   0% /opt/alien/dev
tmpfs                     1.4G         0      1.4G   0% /opt/alien/dev/shm
tmpfs                     1.4G         0      1.4G   0% /opt/alien/sys/fs/cgroup
tmpfs                     1.4G      5.7M      1.4G   0% /opt/alien/run
tmpfs                   279.5M    748.0K    278.8M   0% /opt/alien/run/user/100000
/dev/mmcblk1p1           29.8G     12.4G     17.4G  42% /opt/alien/run/media/defaultuser/9016-4EF8
tmpfs                     1.4G      5.7M      1.4G   0% /opt/alien/run/firejail/dbus
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/media
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/vendor
/dev/mmcblk0p28         375.3M    164.2M    203.4M  45% /opt/alien/odm
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/system_jolla
/dev/sailfish/root        2.4G      1.7G    687.6M  71% /opt/alien/data_jolla
  1. No, I have not installed zypper as far as I know.
    zypper from command line shows just:
    -bash: zypper: not found

  2. Yes, I have paid license from year 2018 continually updated the SFOS.

[defaultuser@XperiaX zypp]$ ls -al /home/.zypp-cache/packages/
total 68
drwxr-xr-x   17 root     root          4096 Mar 24 06:53 .
drwxr-xr-x    5 root     root          4096 Feb 19 09:27 ..
drwxr-xr-x    3 root     root          4096 Feb 19 09:27 adaptation-common
drwxr-xr-x    5 root     root          4096 Feb 19 09:27 adaptation0
drwxr-xr-x    3 root     root          4096 Feb 19 09:27 aliendalvik
drwxr-xr-x    4 root     root          4096 Feb 19 09:27 apps
drwxr-xr-x    5 root     root          4096 Feb 19 09:27 customer-jolla
drwxr-xr-x    5 root     root          4096 Feb 19 09:27 jolla
drwxr-xr-x    3 root     root          4096 Feb 19 09:27 mentaljam-obs
drwxr-xr-x    3 root     root          4096 Mar 24 06:53 openrepos-ade
drwxr-xr-x    3 root     root          4096 Mar 24 06:38 openrepos-anenash
drwxr-xr-x    3 root     root          4096 Mar 24 06:20 openrepos-direc85
drwxr-xr-x    3 root     root          4096 Mar 19 10:04 openrepos-poetaster
drwxr-xr-x    3 root     root          4096 Mar 19 10:04 openrepos-szopin
drwxr-xr-x    5 root     root          4096 Feb 19 09:27 sailfish-eas
drwxr-xr-x    3 root     root          4096 Feb 26 00:05 store
drwxr-xr-x    4 root     root          4096 Feb 19 09:27 xt9

O.K, repo config (ssu lr) looks O.K., neither the root partition or the home partition is full (although 687 MB free is getting tight for SFOS upgrades), so two options remain:

Good luck!

1 Like

Thanks for support! I will try it. Just for being sure, I am asking:
devel-su rm -rf /home/.zypp-cache/*
deletes a lot of data.
What exactly will happen after this rm command?
What is the .zypp-cache directory for?

Thanks

Nothing will “happen”, just because you delete the cached data for libzypp.

What is the .zypp-cache directory for?

Caching repo-data for libzypp. You might look at its entries and RTFM.

But actually I makes sense to try this first (see ssu --help):
devel-su
rm -f /var/cache/ssu/features.ini
ssu ur

1 Like

I did all these commands:
devel-su rm -f /var/cache/ssu/features.ini
devel-su rm -rf /home/.zypp-cache/*
devel-su ssu ur

with result:

WARNING: DBus call failed, falling back to libssu: Message recipient disconnected from message bus without replying
terminate called after throwing an instance of 'zypp::url::UrlBadComponentException'
  what():  Url scheme is a required component
Aborted (core dumped)

devel-su pkcon refresh
Refreshing cache
Finished
Fatal error: Url scheme is a required component

Sorry for the pointess remark, but: what the hell!

Ah I think I got it. this is wrong:

* mentaljam-obs … [Index of /obs/home:/mentaljam/4.3.0.15_armv7hl](http://repo.merproject.org/obs/home:/mentaljam/4.3.0.15_armv7hl/)

Anyway you should be able to

devel-su ssu rr mentaljam-obs
pkcon refresh

and things should start to work again.

Later you can do

    ssu ar mentaljam-obs http://repo.merproject.org/obs/home:/mentaljam/4.3.0.15_armv7hl/

taking care that it’s a proper URL.

But it would be interesting how this ended up in your repo list. Did you ever add that repo manually? It looks like it can be caused by copy-pasting from this forum or another place which silently replaces URLs by markdown syntax.

2 Likes