Can't configure Python3 after installing python3.10

My YunoHost server

Hardware: Raspberry Pi 4 at home
YunoHost version: x.x.x
I have access to my server : Through SSH

Description of my issue

After tried to update and set Python 3.10 as default I had start to have some issues with dpkg, it says Python3 is not configured yet.
I believe I broke the Python 3 installation.
/usr/bin/python3 became /usr/bin/python3.9
Then I renamed it back to /usr/bin/python3

$ sudo dpkg --configure -a 

Output:

Setting up python3 (3.9.2-3) ... 
running python rtupdate hooks for python3.9... 
/usr/share/python3/runtime.d/apt-listchanges.rtupdate: 5: py3clean: not found 
error running python rtupdate hook apt-listchanges 

/usr/share/python3/runtime.d/nslcd-utils.rtupdate: 5: py3clean: not found 
error running python rtupdate hook nslcd-utils 

/usr/share/python3/runtime.d/python3-cached-property.rtupdate: 5: py3clean: not found 
error running python rtupdate hook python3-cached-property 

dpkg: error processing package python3 (--configure): 
 installed python3 package post-installation script subprocess returned error exit status 4 

dpkg: dependency problems prevent configuration of yunohost: 
 yunohost depends on python3:any; however: 
 Package python3 is not configured yet. 
dpkg: error processing package yunohost (--configure): 
 dependency problems - leaving unconfigured 
Errors were encountered while processing: 
 python3 
 yunohost

I see I have these files in /usr/bin though.

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