Package: postfix
Version: 3.1.4-7
Severity: minor

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation? 
    trying to use : /usr/sbin/postfix-add-policy
   * What exactly did you do (or not do) that was effective (or
     ineffective)? run the command.
   * What was the outcome of this action?
    postfix-add-policy: /usr/bin/python3: bad interpreter: No such file or 
directory
   * What outcome did you expect instead?
    policy to be added in master.cf

    The following happen and how to detect.
    Basic stretch server installation. ( standard tools + ssh server ) 
    Installed postfix.
    when running the command : postfix-add-policy usename path_to_file
    resulted in : /usr/bin/python3: bad interpreter: No such file or directory 
and nothing was added in master.cf

    2 possible fixed, and correct solution is a depend problem fix.

    fix1 : edit the file /usr/sbin/postfix-add-policy, change 
#!/usr/bin/python3 to #!/usr/bin/python

    I installed reportbug. ( and all its dependecies, one of these fixed the 
problem also. 
    i changed the #!/usr/bin/python back to #!/usr/bin/python3
    did run the command again : postfix-add-policy usename path_to_file
    Now it worked fine.

    The following (python) packages where installed by reportbug, one of these 
fixed my problem.
    dh-python
    libpython3.5-minimal
    libpython3.5-stdlib
    libpython3-stdlib
    python3
    python3.5
    python3.5-minimal
    python3-apt
    python3-chardet
    python3-debian
    python3-debianbts
    python3-httplib2
    python3-minimal
    python3-pkg-resources
    python3-pycurl
    python3-pysimplesoap
    python3-reportbug
    python3-requests
    python3-six
    python3-urllib3
    python-apt-common


-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages postfix depends on:
ii  adduser                3.115
ii  cpio                   2.11+dfsg-6
ii  debconf [debconf-2.0]  1.5.61
ii  dpkg                   1.18.24
ii  init-system-helpers    1.48
ii  libc6                  2.24-11+deb9u1
ii  libdb5.3               5.3.28-12+b1
ii  libicu57               57.1-6
ii  libsasl2-2             2.1.27~101-g0780600+dfsg-3
ii  libssl1.1              1.1.0f-3
ii  lsb-base               9.20161125
ii  netbase                5.4
ii  postfix-sqlite         3.1.4-7
ii  ssl-cert               1.0.39

Versions of packages postfix recommends:
ii  python3  3.5.3-1

Versions of packages postfix suggests:
pn  dovecot-common        <none>
ii  libsasl2-modules      2.1.27~101-g0780600+dfsg-3
pn  postfix-cdb           <none>
pn  postfix-doc           <none>
ii  postfix-ldap          3.1.4-7
pn  postfix-lmdb          <none>
ii  postfix-mysql         3.1.4-7
ii  postfix-pcre          3.1.4-7
pn  postfix-pgsql         <none>
pn  procmail              <none>
pn  resolvconf            <none>
ii  s-nail [mail-reader]  14.8.16-1
pn  sasl2-bin             <none>
pn  ufw                   <none>

-- debconf information excluded

Reply via email to