Fixing pbuilder dependency 404 errors

If you're building packages with pbuilder sometimes you might hit something like the following errors which cause the build to fail because the dependencies can't be found.

Err precise-updates/main devscripts i386 2.11.6ubuntu1.2
  404  Not Found [IP: 80]
Err precise-updates/main openssl i386 1.0.1-4ubuntu5.2
  404  Not Found [IP: 80]

The cause is the pbuilder image being out of date and some dep packages are no longer present becuase they've been superceded by more recent versions. The good news is the fix is really simple just run:

pbuilder-<dist> update

Which will update your pbuilder image and from there the dependency installation should work just fine.

Show Comments