Olten is a town in the canton of Solothurn in Switzerland and capital of the district of the same name.