LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-14-2021, 07:04 PM   #1
axolinx
Member
 
Registered: Dec 2020
Posts: 55

Rep: Reputation: Disabled
python error on fresh install Ubuntu server 20.04


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=0
Code:
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 guys

Last edited by axolinx; 07-14-2021 at 07:11 PM.
 
Old 07-15-2021, 01:34 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
The first error message is clear: packages python-is-python2 and python-is-python3 cannot be installed simultaneously, they conflict with each other. All they do is provide a symlink /usr/bin/python that points to either /usr/bin/python2 or /usr/bin/python3, respectively. Because neither of them is installed, type -a python finds nothing.

The second error message is because there's no (binary) package python-pip in Ubuntu 20.04. The package you probably meant is named python3-pip.

Last edited by shruggy; 07-15-2021 at 01:54 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I got error while installing python-tk python-psycopg2 python-twisted saili kadam Linux - Newbie 1 09-05-2015 03:03 AM
[SOLVED] [RHL 6.2] Fresh install. XWindows Server didn't install. Can I install it manually? Patriot2135 Red Hat 9 11-19-2013 12:37 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
GRUB hard disk error on fresh ubuntu RAID install dreamer.redeemer Linux - Software 6 01-30-2008 02:33 AM
fresh install (fresh headache) powadha Slackware 2 03-06-2004 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration