Ubuntu – Hit Ctrl+c during do-release-upgrade. Did I break it

upgrade

I did a do-release-upgrade. During the process I was asked if I wanted to replace my rsync config file in init.d with the new version or keep the existing one. I hit D to look at the diff and then could not get back to the question / install script. I stupidly hit ctrl c and was not returned to the upgrade process but to the shell.

I am now worried I have a broken install 🙁 What should I do?

Best Answer

Your /etc/apt/sources.list was most probably changed to the new version at the point you aborted the upgrade. This will make do-release-upgrade or apt-get dist-upgrade behavior unpredictable.

  • Change it first with (assuming you were upgrading from 11.10):

    sudo sed -i -e 's/precise/oneiric/g' /etc/apt/sources.list

  • Then do a sudo apt-get update followed by a do-release-upgrade.