Article 5M741 python error on fresh install Ubuntu server 20.04

python error on fresh install Ubuntu server 20.04

by
axolinx
from LinuxQuestions.org on (#5M741)
Hi Guys.
I am playing with a fresh installed and updated ubuntu 20.04 server at home.
I am trying to run an ansible playbook that sets up nextcloud and other services and i am getting these errors:

Code:The following packages have unmet dependencies:
python-is-python2 : Breaks: python-is-python3 but 3.8.2-4 is to be installed
python-is-python3 : Breaks: python
Breaks: python-is-python2 but 2.7.17-4 is to be installed
E: Unable to correct problems, you have held broken packages.
sudo: /usr/bin/python: command not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 1892k 0 4113 0 0 43294 0 0:00:44 --:--:-- 0:00:44 43294
Code:TASK [prep_nginx : install needed packages] ***************************************************************************************************************************************************************************
Wednesday 14 July 2021 23:32:22 +0000 (0:00:00.702) 0:00:09.637 ********
fatal: [localhost]: FAILED! => changed=false
msg: No package matching 'python-pip' is available

PLAY RECAP ************************************************************************************************************************************************************************************************************
localhost : ok=14 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0Code:axo@matrix:~/nextcloud$ type -a python
-bash: type: python: not found
axo@matrix:~/nextcloud$ which python
axo@matrix:~/nextcloud$ sudo apt-get install python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.8.2-0ubuntu2).
python3 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Something related with python.. but in the last command it tells me it is already installed.
I found a few posts online with people having similar issues but no solution that applies to my case.
Any ideas how to fix this?

Thank you guyslatest?d=yIl2AUoC8zA latest?i=ke4DyWYhWJ4:i6VnUyBBBvw:F7zBnMy latest?i=ke4DyWYhWJ4:i6VnUyBBBvw:V_sGLiP latest?d=qj6IDK7rITs latest?i=ke4DyWYhWJ4:i6VnUyBBBvw:gIN9vFwke4DyWYhWJ4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments