TIP File is corrupt or incomplete (digests do not match)

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other
This page is a candidate for deletion 
Reason given: Covered more correctly by other articles (eg. Best Practices).
If you disagree with its deletion, please explain why on its discussion page.
If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
Make sure no other pages link here and check the page's history before deleting.

When you get a error message similar to this:

>>>emerge (1 of 1) category/package to /
!!! File is corrupt or incomplete (digests do not match)
>>> our recorded digest XXXXXXX
>>> your file's digest XXXXXXX

Try

  1. delete corrupt file in /usr/portage/distfiles, reemerge
  2. if that fails, emerge sync, reemerge
  3. if that fails, and you are sure the source of the downloaded file is trustworthy do a
ebuild /path/to/ebuild digest 

and re-emerge. This will re-digest the file with the current one you have on your system, this is garenteed to remove the warning. But when doing this make sure the file you have is trustworthy, by digesting it you have deemed it trustworthy for your system.

Personal tools
In other languages