“Invalid cross-device link” is what the system call rename is returning.

It is trying to move the downloaded temp file from /tmp to /var/lib/avast4. Do you have a clue about what “cross-device” can mean in this case?