How to extract RAR using unrar despite checksum error

Problem

You want to extract a RAR archive using unrar x myarchive.rar, but you get the following error message:

...
myfile.png - checksum error
...
Total errors: 1

Solution

Use the -kb flag to ignore checksum errors:

unrar x -kb myarchive.rar

This will extract the archive despite the checksum error.

Note that the file with the checksum error might be corrupted, but it will still be extracted correctly.