[Bug 934371] Re: Unresolvable problem message does not help users and results in less useful bug reports
Brian Murray
brian at ubuntu.com
Wed May 15 17:21:36 UTC 2019
The problem messages are now more informative:
# the most likely problem is the 3rd party pkgs so don't address
# foreignPkgs and devRelease being True
details = _("An unresolvable problem occurred while "
"calculating the upgrade.\n\n ")
if self.config.get("Options", "foreignPkgs") == "True":
details += _("This was likely caused by:\n"
" * Unofficial software packages not provided by Ubuntu\n"
"Please use the tool 'ppa-purge' from the ppa-purge \n"
"package to remove software from a Launchpad PPA and \n"
"try the upgrade again.\n"
"\n")
elif self.config.get("Options", "foreignPkgs") == "False" and \
self.config.get("Options", "devRelease") == "True":
details += _("This was caused by:\n"
" * Upgrading to a pre-release version of Ubuntu\n"
"This is most likely a transient problem, \n"
"please try again later.\n")
# we never have partialUpgrades (including removes) on a stable system
# with only ubuntu sources so we do not recommend reporting a bug
if partialUpgrade:
details += _("This is most likely a transient problem, "
"please try again later.")
else:
details += _("If none of this applies, then please report this bug using "
"the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. ")
details += _("If you want to investigate this yourself the log files in "
"'/var/log/dist-upgrade' will contain details about the upgrade. "
"Specifically, look at 'main.log' and 'apt.log'.")
# make the error text available again on stdout for the
# text frontend
self._stopAptResolverLog()
view.error(_("Could not calculate the upgrade"), details)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/934371
Title:
Unresolvable problem message does not help users and results in less
useful bug reports
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Released
Status in update-manager package in Ubuntu:
Invalid
Bug description:
In UpdateManager/UpdateManager.py the following code exists:
except SystemError, e:
msg = ("<big><b>%s</b></big>\n\n%s\n'%s'" %
(_("Could not calculate the upgrade"),
_("An unresolvable problem occurred while "
"calculating the upgrade.\n\n"
"Please report this bug against the 'update-manager' "
"package and include the following error message:"),
e)
)
The upgrade may not be calculated for a couple of reasons. As an
example we have:
E:Error, pkgProblemResolver::Resolve generated breaks, this may be
caused by held packages.
This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu
update-manager knows, or should know, if you are upgrading to a pre-
release or running one and should notify the user to try again as this
may be due to archive inconsistencies rather than having them file a
bug right away.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/934371/+subscriptions
More information about the foundations-bugs
mailing list