tip@trylinux:~/blog$ cat corruption-error-when-trying-to-install-older-jre.md
# Corruption error when trying to install older JRE
Author: tip
Date: 2008-02-09 00:00:00
Tags: General, linux

When trying to install an older version of the JRE on a newer Linux distro I was getting the following error:

Unpacking... tail: cannot open +480' for reading: No such file or directory
Checksumming...
1
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
`

This is because tail has changed in the newer Linux distros. the +{number of lines} does not work unless you proceed it with a -n. So, edit the .bin file you downloaded make the following changes:

`
**Replace: ** tail +480 $0 > $outname
With: tail -n +480 $0 > $outname
Replace:
if expr $sum1 != 22444 || expr $sum2 != 13542 ; then
echo "The download file appears to be corrupted. Please refer"
echo "to the Troubleshooting section of the Installation"
echo "Instructions on the download page for more information."
echo "Please do not attempt to install this archive file."
exit 1
fi
With:

if expr $sum1 != 22444 || expr $sum2 != 13542 ; then

echo "The download file appears to be corrupted. Please refer"

echo "to the Troubleshooting section of the Installation"

echo "Instructions on the download page for more information."

echo "Please do not attempt to install this archive file."

exit 1

fi

`

EOF