linuxmint / mintupgrade

41 stars 16 forks source link

Error message gives python traceback #46

Open ngc92 opened 2 years ago

ngc92 commented 2 years ago

There is a potential problem in my package configuration, but the output of mintupgrade is not very useful. It just shows an internal traceback from python, I think. error (btw, the ability to select and/or copy error messages would be helpful both for bug reports and asking others for help)

The reported line is in the function

def upgrade(self, dist_upgrade=False):
        # type: (bool) -> None
        """Upgrade all packages.

        If the parameter *dist_upgrade* is True, new dependencies will be
        installed as well (and conflicting packages may be removed). The
        default value is False.
        """
        self.cache_pre_change()
        self._depcache.upgrade(dist_upgrade)
        self.cache_post_change()

So I ran apt dist-upgrade manually, which gives more useful information:

The following packages have unmet dependencies:
 node-yargs-parser : Breaks: node-yargs (< 16.2.0~) but 15.3.0-1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

It would be helpful if the UI a) gave the same information as the CLI and b) was more explicit about what it tried to do, so that one can easily run the same commands in a terminal, maybe with more verbose output.