Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-5599

When installing PS on Ubuntu, it prompts for password even when skipping it

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.7.25-28
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None
    • Environment:

      OS: Ubuntu 16.04

      Description

      Installing PS on Ubuntu 16.04 asks for password, even when disabling asking for password as shown on https://serversforhackers.com/c/installing-mysql-with-debconf using  'export DEBIAN_FRONTEND="noninteractive"'.

       

      Password prompts break script installation.

       

      How to test on Ubuntu 16.04:

      sudo su
      wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
      sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
      sudo apt-get update
      export DEBIAN_FRONTEND="noninteractive"
      sudo apt-get install -y percona-server-server-5.7

       

      If installing PXC or upstream MySQL it does not prompts for password when using 'export DEBIAN_FRONTEND="noninteractive"' which is expected behavior:

       

      On PXC 5.7:

      sudo su
      wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
      dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
      apt-get update
      export DEBIAN_FRONTEND="noninteractive"
      apt-get install -y percona-xtradb-cluster-57

       

      On upstream (before installing Percona packages):

      apt update
      export DEBIAN_FRONTEND="noninteractive"
      apt install -y mysql-server mysql-client

       

      You can remove "export" line and check that it prompts for password.

       

      Expected behavior: when installing PS 5.7, if setting 'export DEBIAN_FRONTEND="noninteractive"' ,  password prompt should not trigger. 

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                evgeniy.patlan Evgeniy Patlan
                Reporter:
                carlos.tutte Carlos Tutte
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 hour
                  1h