Ubuntu upgrade failing from 16.04 to 16.10: 'Failed to lock /var/cache/apt/archives/lock' [duplicate]

Solution 1:

I had the same issue where I got Failed to lock /var/cache/apt/archives/lock every single time I tried the upgrade.

I did everything as described here, except to start update-manager with sudo.

So:

  1. sudo apt-get update

  2. sudo apt-get upgrade

  3. sudo apt-get dist-upgrade

  4. sudo update-manager -d

... and finally, on the 27th try, it worked out.