title: Permission errors when installing software via apt or dpkg
body: <p>I am using Ubuntu 17.04 and lately I am having lots of troubles when it comes to installing new software using <code>apt</code> or <code>dpkg</code>. The error I am getting is always the same:</p>
  
  <pre><code>sudo dpkg -i code_1.11.2-1492070517_amd64.deb 
  (Reading database ... 301548 files and directories currently installed.)
  Preparing to unpack code_1.11.2-1492070517_amd64.deb ...
  Unpacking code (1.11.2-1492070517) over (1.11.2-1492070517) ...
  dpkg: error processing archive code_1.11.2-1492070517_amd64.deb (--install):
   unable to open '/usr/share/code/resources/app/out/vs/workbench/electron-browser/workbench.main.nls.de.js.dpkg-new': Operation not permitted
  Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
  Rebuilding /usr/share/applications/bamf-2.index...
  Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
  Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
  Processing triggers for mime-support (3.60ubuntu1) ...
  Errors were encountered while processing:
   code_1.11.2-1492070517_amd64.deb
  </code></pre>
  
  <p>This time I was trying to install Visual Studio Code with <code>dpkg</code> using the official <code>deb</code> file. I fixed it by using <code>dpkg</code>'s flag <code>--force-all</code>, which allowed me to install the package successfully.</p>
  
  <p>However, I would like to know what this error means, why I am getting it so often and how to prevent it. Today I have had this error 3 times in a row when trying to install 3 different packages!</p>