Just upgrade all packages
sudo aptitude update && sudo aptitude safe-upgrade
and the (after a reboot) do a
sudo do-release-upgrade
This works fine, as long as the origin version is not EOL.
When your server is having a EOL version installed, then you must dig somewhat deeper:
You have to change the source repositories to old-releases (instead of achives as mentioned in many posts/sites)
So you do change sources.list to:
deb http://old-releases.ubuntu.com/ubuntu/ dapper main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ dapper-security main restricted universe multiverse
Then you can do the normal steps as mentioned above.
If the do-release-upgrade command is unknown, then you have to install it:
install update-manager-core
If by change you had the profile "ubuntu-desktop" installed, then first remove that one from your installation.
Modified /usr/lib/
#near line 28, add:
import time
# near the line 101-102, just after "tar.close()", add
print "----- IT IS TIME NOW !-----"
time.sleep(60)
# Note that you can adjust the time (60) by the value in seconds of your choice...
Theses lines should be like :
# Wait about 1 minute (time to modify update script)
print "----- IT IS TIME NOW !-----"
return True
# Note that you must keep the text idented
Run sudo do-release-upgrade
When the script sleeps, you have just 60 seconds to do the next step:
-- Modified /tmp/tmpXXXXXX/
Then wait until the script continues running and asks:
"Do you want to
modify the sources list?"
Go fix /etc/apt/
Return to the update and say Yes.
The updater will modify /etc/apt/
No comments:
Post a Comment