title: Sub-process /usr/bin/dpkg returned an error code (1)- ubuntu
body: <p>I am trying to install apache:<br>
  <code>sudo apt-get install apache2</code><br>
  And i am getting this error:  </p>
  
  <pre><code> Setting up google-cloud-sdk (132.0.0-0) ... dpkg: error processing
   package google-cloud-sdk (--configure):  subprocess installed
   post-installation script returned error exit status 1 Errors were
   encountered while processing:  google-cloud-sdk E: Sub-process
   /usr/bin/dpkg returned an error code (1)
  </code></pre>
  
  <p>Similarly i get th following output when i run <code>sudo dpkg --configure -a</code>:  </p>
  
  <pre><code>Setting up google-cloud-sdk (132.0.0-0) ...
  dpkg: error processing package google-cloud-sdk (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   google-cloud-sdk
  </code></pre>
  
  <p>How can i solve this?</p>