Thursday, July 12, 2012

POB Recipe to refresh Ubuntu servers repo - solving 404 Not Found

From time to time Ubuntu servers from where packages are downloaded (repository) become unavailable. The below POB recipe can be run remotely to solve this problem in your servers:
#!/bin/bash -e

sudo mv /var/lib/apt/lists{,bak`date "+%Y%m%d"`}
sudo mv /var/cache/apt/archives/partial{,bak`date "+%Y%m%d"`}
sudo apt-get update

No comments: