fixing #124 so as not to use global apt cache.  This hopefully will also fix a similar issue observed when it could not get a dpkg lock.