Some blog walker asked in the shout widget, how to add/ install program or library in Ubuntu without internet connection.
I recommended to have Ubuntu repository cd. You could ask for free at this link. Or any other several web site that offering free repository cd. They will send the cd with no cost at all. I have my self.
Last, if your ubuntu still using default update repository setting, then all you have to do is insert the cd to its tray then do the update or installation.
Hope it will help.