[Bug 1860893] Re: update-manager crashed with AttributeError in __init__(): module 'platform' has no attribute 'dist'

Brian Murray brian at ubuntu.com
Sat Feb 1 17:42:35 UTC 2020


This should be fixed with the following upload of update-manager.

update-manager (1:19.04.10) focal; urgency=medium

  * UpdateManager/Core/UpdateList.py: Use utils.get_dist() instead of
    platform.dist() to find codename, the latter was removed in Python 3.8

** Changed in: update-manager (Ubuntu)
       Status: New => Fix Released

-- 
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/1860893

Title:
  update-manager crashed with AttributeError in __init__(): module
  'platform' has no attribute 'dist'

Status in update-manager package in Ubuntu:
  Fix Released

Bug description:
  This happened just after installing ubuntu-restricted-extras via
  terminal, though the specific package may be irrelevant. I also
  checked for updates with update-manager, and that's when this error
  appeared. I will also note the same error appeared on another one of
  my focal systems. As for this system, I installed all available
  updates via the terminal, and this error appeared again.

  ProblemType: Crash
  DistroRelease: Ubuntu 20.04
  Package: update-manager 1:19.04.8
  ProcVersionSignature: Ubuntu 5.4.0-12.15-generic 5.4.8
  Uname: Linux 5.4.0-12-generic x86_64
  ApportVersion: 2.20.11-0ubuntu16
  Aptdaemon:
   
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Sat Jan 25 21:52:09 2020
  ExecutablePath: /usr/bin/update-manager
  GsettingsChanges:
   b'com.ubuntu.update-manager' b'window-width' b'645'
   b'com.ubuntu.update-manager' b'launch-count' b'7'
   b'com.ubuntu.update-manager' b'first-run' b'false'
   b'com.ubuntu.update-manager' b'show-details' b'true'
   b'com.ubuntu.update-manager' b'launch-time' b'int64 1580010726'
  InstallationDate: Installed on 2020-01-03 (23 days ago)
  InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
  InterpreterPath: /usr/bin/python3.8
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/update-manager --no-update
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
  Python3Details: /usr/bin/python3.8, Python 3.8.1, python3-minimal, 3.8.0-3
  PythonArgs: ['/usr/bin/update-manager', '--no-update']
  PythonDetails: N/A
  SourcePackage: update-manager
  Title: update-manager crashed with AttributeError in __init__(): module 'platform' has no attribute 'dist'
  UpgradeStatus: Upgraded to focal on 2020-01-03 (22 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1860893/+subscriptions



More information about the foundations-bugs mailing list