title: Dockerfile upgrade postgresql 10 python error
body: <pre><code>ENV PG_MAJOR 10
  ENV PG_VERSION 10.1-1.pgdg80+1
  
  RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' $PG_MAJOR &gt; /etc/apt/sources.list.d/pgdg.list
  
  RUN apt-get update \
          &amp;&amp; apt-get install -y postgresql-common \
          &amp;&amp; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \
          &amp;&amp; apt-get install -y \
                  postgresql-$PG_MAJOR \
                  postgresql-contrib-$PG_MAJOR \
          &amp;&amp; rm -rf /var/lib/apt/lists/*
  </code></pre>
  
  <p>I get the below error in this part:</p>
  
  <blockquote>
    <p>dpkg: error processing package python3.5-minimal (--configure): 
    subprocess installed post-installation script returned error exit
    status 134 dpkg: dependency problems prevent configuration of
    python3-minimal:  python3-minimal depends on python3.5-minimal (>=
    3.5.1-2~); however:   Package python3.5-minimal is not configured yet.</p>
    
    <p>dpkg: error processing package python3-minimal (--configure): 
    dependency problems - leaving unconfigured Processing triggers for
    libc-bin (2.23-0ubuntu10) ... Errors were encountered while
    processing:  python3.5-minimal  python3-minimal E: Sub-process
    /usr/bin/dpkg returned an error code (1)</p>
  </blockquote>