I think we need something like that: === modified file 'DistUpgrade/DistUpgradeController.py' --- DistUpgrade/DistUpgradeController.py 2018-01-29 09:43:48 +0000 +++ DistUpgrade/DistUpgradeController.py 2018-02-07 10:01:22 +0000 @@ -772,6 +772,17 @@ logging.debug("updateSourcesList()") self.sources = SourcesList(matcherPath=self.datadir) # backup first! + + if not any(e.dist == self.fromDist for e in self.sources): + res = self._view.askYesNoQuestion(_("No valid sources.list entry found"), + _("While scanning your repository " + "information no entry about %s could be " + "found.\n\n" + "An upgrade might not succeed.\n\n" + "Do you want to continue anyway?" % self.fromDist) + if not res: + self.abort() + self.sources.backup(self.sources_backup_ext) if not self.rewriteSourcesList(mirror_check=True): logging.error("No valid mirror found")
It might be a bit too stupid, though. ** Changed in: ubuntu-release-upgrader (Ubuntu) Assignee: (unassigned) => Julian Andres Klode (juliank) ** Changed in: ubuntu-release-upgrader (Ubuntu) Status: Confirmed => In Progress ** Changed in: ubuntu-release-upgrader (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1725359 Title: release detection relies on lsb-release To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1725359/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs