-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dietpi-update Error : NB python --version returns "Python 3.5.3" #5443
Comments
Basically you are running Debian Stretch still, which we don't support anymore. @MichaIng could you have a look pls As well you have configured 2 times the same PHP repository
Even if unrelated to this issue, something you should fix. |
To be sure, let's have a look into both files: cat /etc/apt/sources.list.d/dietpi-php.list
cat /etc/apt/sources.list.d/php.list The first is the one intended/installed by
apt install --reinstall python-minimal |
Dear Michalng
Thank you for your help.
I will do these operations this evening (France's time). I will send you the results
Best regards
Francois Van de Weerdt.
…----- Mail original -----
De: "MichaIng" ***@***.***>
À: "MichaIng/DietPi" ***@***.***>
Cc: "francoisVdW" ***@***.***>, "Author" ***@***.***>
Envoyé: Mercredi 20 Avril 2022 13:46:28
Objet: Re: [MichaIng/DietPi] dietpi-update Error : NB python --version returns "Python 3.5.3" (Issue #5443)
To be sure, let's have a look into both files:
cat /etc/apt/sources.list.d/dietpi-php.list
cat /etc/apt/sources.list.d/php.list
The first is the one intended/installed by dietpi-software to enable PHP7.3 installs on Debian Stretch.
pyclean and pycompile are shipped with the python-minimal package. Let's try whether reinstalling it solves the syntax errors:
apt install --reinstall python-minimal
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you authored the thread. Message ID: <MichaIng/DietPi/issues/5443/1103838574 @ github . com>
|
I try to re-install python minimal. It fails as you can see below
The default version of python is 3.5.3
|
Does apt -s purge python-ldb The |
Ah wait, now I see an issue here:
Can you show: which -a python
dpkg -S "$(command -v python)"
which -a python2
which -a python3 |
Here are the 4 commands
|
Okay, while readlink -f /usr/bin/python If this is not ln -sf python2.7 /usr/bin/python This should then fix the APT upgrade: apt upgrade The question remains what broke this symlink. Since apt install python3 But if this is wanted, it's better to first uninstall the custom build, or doing it manually. This removes as well modules installed via rm /usr/local/bin/python3*
rm -R /usr/local/lib/python3* |
It works !
The "apt ugrade" works gracefully. Then I ran "apt install python3". Durring the python3's install one can see
which means python3 switched to "manually installed" (as you guessed) Once again, thank you for your time Francois. |
Ah okay, strange that which -a python3 However, great that the upgrade went through now 🙂. |
Now (after remove, then apt install python3) the command It's not a problem for me, I do call my python3's scripts with the full path of pyton3 (like |
This should restore apt install --reinstall python3-minimal |
I'll mark this as closed. Feel free to reopen if required. |
Details:
Linux DietPi-PHP7 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
Steps to reproduce:
Expected behaviour:
Actual behaviour:
Extra details:
Additional logs:
The text was updated successfully, but these errors were encountered: