You now need to clean the work directory as well, using: sudo port clean p5-error You could have also used: sudo port clean --all p5-error to delete the bad distfile and clean the work directory all at once.