Error updating yunohost

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.1.39
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no

Describe your issue

I tried to update Yunohost and got the following error message:

Fehler: “500”
Aktion: “GET” /yunohost/api/update
followed by this…
Can anyone help?

Share relevant logs or error messages

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/moulinette/interfaces/api.py”, line 430, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/moulinette/actionsmap.py”, line 580, in process
return func(**arguments)
^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/tools.py”, line 355, in tools_update_norefresh
return tools_update(no_refresh=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 532, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/tools.py”, line 433, in tools_update
upgradable_system_packages = list(_list_upgradable_apt_packages())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/utils/system.py”, line 211, in _list_upgradable_apt_packages
upgradable_raw = check_output(“LC_ALL=C apt list --upgradable”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/utils/process.py”, line 40, in check_output
subprocess.check_output(args, stderr=stderr, shell=shell, **kwargs)
File “/usr/lib/python3/dist-packages/gevent/subprocess.py”, line 427, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command ‘LC_ALL=C apt list --upgradable’ returned non-zero exit status 100.

What’s the output of apt list --upgradable?

1 Like

…yarn :grin: ?

The outpuut is:

E: Conflicting values set for option Signed-By regarding source https://packages.sury.org/php/ bookworm: /etc/apt/trusted.gpg.d/extra_php_version.gpg != /usr/share/keyrings/debsuryorg-archive-keyring.gpg
E: The list of sources could not be read.

What if you run yunohost tools regen-conf apt -f to regen (apparently faulty) apt config?

1 Like

I did that followed by a reboot but nothing changed…

apt list --upgradable still complains about extra_php_version?

1 Like

Yes unfortunately…

What are the contents of /etc/apt/sources.list.d?

Mine (stock) are:

# ls
extra_php_version.list  yunohost.list

What are the contents of extra_php_version.list therein?

Mine (stock) are:

deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] https://packages.sury.org/php/ bookworm main
1 Like

[quote=“orhtej2, post:9, topic:41400”]

extra_php_version.list php.list raspi.list yarn.list yunohost.list

deb \[signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg\] https://packages.sury.org/php/ bookworm main

Likely php.list is to blame, what happens if you rename it to php.bak?

2 Likes

Seems like that was the solution! I renamed php.list and since then the updates run as they should. Thanks a lot!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.