please use the below command with good internet speed, using this i have upgraded to Ubuntu 24.04 LTS, before that, change the server location from main to usa

sudo apt-get update

sudo apt-get upgrade

sudo do-release-upgrade -d