I had something similar. In my cames, it seem that "lock" must be a file, not a directory. The following solved my problem:
sudo rm -rf /var/cache/apt/archives/lock to delete the directory. Then create it as an empty file: sudo touch /var/cache/apt/archives/lock Then the whole apt-get process worked cleanly. -- package python-setuptools 0.6c8-0ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1 https://bugs.launchpad.net/bugs/236798 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs