Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2445

apt_get package module fails on default Ubuntu 16.04 install.

    XMLWordPrintable

    Details

    • Story Points:
      8
    • Platform:
      Ubuntu

      Description

      Python 2 is no longer a part of the default installation of Ubuntu 16.04.

      https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#Python_3

      As a result when you try to use the apt_get module you get the following error

      error: unsupported package module wrapper API version: -1
      error: Can not set up wrapper for module: apt_get
      

      running it by hand gives you

      root@ubuntu-xenial:~# /var/cfengine/modules/packages/apt_get 
      -su: /var/cfengine/modules/packages/apt_get: /usr/bin/python: bad interpreter: No such file or directory
      

      which leads you to this

      ubuntu@ubuntu-xenial:~# python -v
      The program 'python' can be found in the following packages:
       * python-minimal
       * python3
      

      I did run a quick test and switching the shebang to python3 seemed to work.

      My work around at the moment is to use the old package method to install python2.

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              ageorgop Alex Georgopoulos
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel