Tribune Co. has agreed to buy Gracenote, which provides music data for iTunes and other digital applications, from Sony Corporation of America. The $170 million deal, announced Monday, will combine Gracenote with Tribune Media Services, expanding Tribune Co.’s reach in the digital entertainment