If you do not have any of the qualifiying versions of the software then you cannot use the upgrade version.
That does not sound like an upgrade to CS5 if it is requiring programs that old. CS2 is the newest of them so that would mean that box is probably tied the CS3, not CS5. Normally CS5 would require CS4 or CS3, possibly CS2. Whatever you have there is probably as questionable as whoever sold it to you.