[Bug 1767357] Re: upgrade from 16.04 to 18.04 fails "Could not calculate the upgrade"

Nathan Collins nathan.collins at gmail.com
Wed Jan 16 08:06:16 UTC 2019


I got the same error and it turns out it was also due to me installing
Emacs 25 from a PPA. My solution was also the same, as outlined in
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-
upgrader/+bug/1767357/comments/4 .

To remove Emacs from the PPA and reinstall Emacs from the official
Ubuntu repos I used the `ppa-purge` program

    sudo ppa-purge kelleyk/emacs

Where I got the PPA name `kelleyk/emacs` from the
`http://ppa.launchpad.net/kelleyk/emacs/ubuntu xenial main` line in
`/etc/apt/sources.list.d/kelleyk-ubuntu-emacs-xenial.list`.

For other people the PPA might be different.

The harder part is figuring out what package is causing the problem in
the first place. After the failed upgrade you can look in

    /var/log/dist-upgrade/<date and time of failed upgrade>/apt.log

for `Broken` packages. For me various Emacs related packages were listed
many times, but so were several other packages, but I don't think the
other broken packages were from PPAs.

Looking at the comment https://bugs.launchpad.net/ubuntu/+source/ubuntu-
release-upgrader/+bug/1767357/comments/2, it seems Emacs was suggested
as the problem because it was listed in a `Foreign` line in

    /var/log/dist-upgrade/<date and time of failed upgrade>/main.log

However, for me there was a `Foreign` line in that file, but it didn't
mention the any Emacs related packages, and the packages it did mention
didn't matter to the upgrade.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1767357

Title:
  upgrade from 16.04 to 18.04 fails "Could not calculate the upgrade"

Status in ubuntu-release-upgrader package in Ubuntu:
  Invalid

Bug description:
  I'm assuming this is a bug, because the application suggested that I
  report it as such.  I waited until the (delayed) 18.04 official
  release.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ubuntu-release-upgrader-core 1:16.04.25
  ProcVersionSignature: Ubuntu 4.13.0-39.44~16.04.1-generic 4.13.16
  Uname: Linux 4.13.0-39-generic i686
  ApportVersion: 2.20.1-0ubuntu2.16
  Architecture: i386
  CrashDB: ubuntu
  CurrentDesktop: i3
  Date: Fri Apr 27 07:51:51 2018
  InstallationDate: Installed on 2017-10-21 (187 days ago)
  InstallationMedia: Xubuntu 16.04.3 LTS "Xenial Xerus" - Release i386 (20170801)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to xenial on 2018-04-27 (0 days ago)
  VarLogDistupgradeAptclonesystemstate.tar.gz:
   Error: command ['pkexec', 'cat', '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'] failed with exit code 127: polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
   Error executing command as another user: Not authorized
   
   This incident has been reported.
  VarLogDistupgradeTermlog:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1767357/+subscriptions



More information about the foundations-bugs mailing list