Menu

#5357 Install fails to recognize Python 2.7.14 / 3.7.6 is present

1.940
open
nobody
5
2020-04-04
2020-02-01
JeffP
No

Installation fails from PPA with apt, with complaint that python is not installed on Ubuntu 20.04, Python 3.7.6/2.1.17

Discussion

  • JeffP

    JeffP - 2020-02-01

    Previous installation broke with recent updates, new install fails:

    rootusr@server:/home/rootusr# dpkg -i webmin_1.941_all.deb
    Selecting previously unselected package webmin.
    (Reading database ... 1163292 files and directories currently installed.)
    Preparing to unpack webmin_1.941_all.deb ...
    Unpacking webmin (1.941) ...
    dpkg: dependency problems prevent configuration of webmin:
    webmin depends on python; however:
    Package python is not installed.

    dpkg: error processing package webmin (--install):
    dependency problems - leaving unconfigured
    Processing triggers for systemd (244.1-0ubuntu2) ...
    Errors were encountered while processing:
    webmin

    rootusr@server:/home/rootusr# python2
    Python 2.7.17 (default, Jan 21 2020, 23:28:51)
    [GCC 9.2.1 20200117] on linux2
    Type "help", "copyright", "credits" or "license" for more information.

    roousr@server:/home/rootusr# python3
    Python 3.7.6 (default, Jan 16 2020, 18:23:42)
    [GCC 9.2.1 20200110] on linux
    Type "help", "copyright", "credits" or "license" for more information.

     

    Last edit: JeffP 2020-02-01
  • Jamie Cameron

    Jamie Cameron - 2020-02-02

    What if you run apt-get install python ?

     
  • JeffP

    JeffP - 2020-02-02

    Package python is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
    python2-minimal:i386 python2:i386 python2-minimal python2 2to3

    (Note: Python2 is installed... as is 2to3)

     
    • Angel

      Angel - 2020-03-08

      I have the ssame issue in Ubuntu Server 20.04:

      Distributor ID: Ubuntu
      Description:    Ubuntu Focal Fossa (development branch)
      Release:        20.04
      Codename:       focal
      
       
      • JeffP

        JeffP - 2020-03-09

        Issue wil not be addressed by developers until after finalization of Focal Fossa, currently scheduled for April 16. See last message in this Ticket from Developers.

        My only viable solution was a rollback.. (Re-installed 19.10)

         

        Last edit: JeffP 2020-03-09
  • JeffP

    JeffP - 2020-02-02

    Apparently Python 2 has reached EOL, and Ubuntu has migrated to Python3:

    "We all knew it was coming. Back in 2014 when Guido van Rossum, Python’s creator and principal author, made the announcement, January 1, 2020 seemed pretty far away. Now we’re less than a year out from Python 2.7’s sunset, after which there’ll be absolutely no more support from the core Python team.Many utilized projects pledge to drop Python 2 support in or before 2020. (Here are all the currently Participating Projects.) " - https://www.anaconda.com/end-of-life-eol-for-python-2-7-is-coming-are-you-ready/

     

    Last edit: JeffP 2020-02-02
  • Ilia

    Ilia - 2020-02-02

    When I ran it on my Ubuntu 20 testing machine, I had this error message returned:

    root@debug-ubuntu20:~/Downloads# dpkg -i webmin_1.941_all.deb 
    Selecting previously unselected package webmin.
    (Reading database ... 70141 files and directories currently installed.)
    Preparing to unpack webmin_1.941_all.deb ...
    Unpacking webmin (1.941) ...
    dpkg: dependency problems prevent configuration of webmin:
     webmin depends on libnet-ssleay-perl; however:
      Package libnet-ssleay-perl is not installed.
     webmin depends on libauthen-pam-perl; however:
      Package libauthen-pam-perl is not installed.
     webmin depends on libio-pty-perl; however:
      Package libio-pty-perl is not installed.
     webmin depends on apt-show-versions; however:
      Package apt-show-versions is not installed.
     webmin depends on unzip; however:
      Package unzip is not installed.
     webmin depends on python; however:
      Package python is not installed.
    
    dpkg: error processing package webmin (--install):
     dependency problems - leaving unconfigured
    Processing triggers for systemd (244.1-0ubuntu2) ...
    Errors were encountered while processing:
     webmin
    

    It's hard to beileve that apt-get install python in final release will return this warning/error, instead of simply installing latest (Python 3) package. Webmin doesn't care about Python version, upon install, as set in makedebian.pl (github.com) file, by just requesting python package.

    However, doing more tests with latest updates installed on Ubuntu 20, and running apt-get install apt-show-versions returns:

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
     apt-show-versions : Depends: libapt-pkg-perl (>= 0.1.21) but it is not going to be installed
     webmin : Depends: libnet-ssleay-perl but it is not going to be installed
              Depends: libauthen-pam-perl but it is not going to be installed
              Depends: libio-pty-perl but it is not going to be installed
              Depends: unzip but it is not going to be installed
              Depends: python but it is not installable
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    

    It looks like there are some issues currently in Ubuntu 20 itself. We won't bother until final freeze.

     
  • JeffP

    JeffP - 2020-02-02

    All of those packages denoted "is not going to be installed" are installed in my system. Webmin WAS working on 20.04 up until a recent update. I have been running Webmin on 20.04 dev. for several months.

    As to Python however, it is not an option as it is "not installable." Is "Python" listed as a depended upon module by the .deb? Never being a developer, I am not at all familiar with package distribution, I assumed that a software developer told the system the list of modules it requires to run within the distribution package, and therein is where the problem arrises? It's asking for something not available. Or does the system just "know" what modules a deb needs without ever tranferring those requirements to a given system via deb? Isn't Python and Python3 no longer compatible and should not be looked upon as the same?

    About April 16... Ok! Thanks!

     
  • Ilia

    Ilia - 2020-03-24

    I have created special dev repo where you can get working Webmin/Virtualmin install for Ubuntu 20.04 LTS.

    Give it a try.

     
  • Master CATZ

    Master CATZ - 2020-04-03

    Ubuntu 20.04 / 5.5.14-050514-generic

    sudo apt install python-is-python3
    failed to help as well

    python3 is fully installed
    python3 is already the newest version (3.8.2-0ubuntu1).

    Downloading RPM-GPG-KEY-virtualmin-6 [ ✔ ]
    Downloading RPM-GPG-KEY-webmin [ ✔ ]
    Installing Virtualmin 6 key [ ✔ ]
    Installing Webmin key [ ✔ ]
    Updating apt metadata [ ✔ ]
    Downloading repository metadata [ ✔ ]
    Enabling universe repositories, if not already available [ ✔ ]
    Disabling cdrom: repositories [ ✔ ]
    Cleaning out old metadata [ ✔ ]

    ▣▣□ Phase 2 of 3: Installation
    Installing Webmin [ERROR] Failed with error: 100
    [ ✘ ]

    [ERROR] Something went wrong. Exiting.
    [ERROR] The last few log entries were:
    Made it here...why?
    Cleaning out old metadata: Success.
    [2020-04-04 07:38:28 AEST] [DEBUG] Phase 2 of 3: Installation
    Spin pid is: 20636
    Reading package lists...
    Building dependency tree...
    Reading state information...
    webmin is already the newest version (1.941).
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    webmin : Depends: python but it is not installable
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    Installing Webmin: [2020-04-04 07:38:29 AEST] [ERROR] Failed with error: 100
    [2020-04-04 07:38:29 AEST] [ERROR] Something went wrong. Exiting.
    [2020-04-04 07:38:29 AEST] [ERROR] The last few log entries were:

    and trying a second time after
    sudo apt --fix-broken install

    Cleaning out old metadata [ ✔ ]

    ▣▣□ Phase 2 of 3: Installation
    Installing Webmin [ERROR] Failed with error: 100
    [ ✘ ]

    [ERROR] Something went wrong. Exiting.
    [ERROR] The last few log entries were:
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list:62
    E: Unable to correct problems, you have held broken packages.
    Made it here...why?
    Installing Webmin: [2020-04-04 07:42:44 AEST] [ERROR] Failed with error: 100
    [2020-04-04 07:42:44 AEST] [ERROR] Something went wrong. Exiting.
    [2020-04-04 07:42:44 AEST] [ERROR] The last few log entries were:

     

    Last edit: Master CATZ 2020-04-03

Log in to post a comment.

Auth0 Logo