If you’re unable to enter the license key for VMWare workstation version 8 or 9 on your Debian/Ubuntu based machines try the following command:

sudo /usr/lib/vmware/bin/vmware-vmx --new-sn

Note: Replace with the serial number.

This should fix the issue.

Alternative solution:

sudo /usr/lib/vmware/bin/vmware-enter-serial