There could be several reasons for not being able to sell a player:

1) Player is about to retire and has no interest in joining another club.
2) Player moved to your club within the current season. To prevent abuse of the transfer system, there is a one season lockdown for all new transfers. Including the players acquired from the academy or via scouting.
3) Player listed for loan.