Ugandan troops have been fighting the rebels for more than 20 years , forcing the rebels to set up bases in southern Sudan and eastern Democratic Republic of Congo .