[Bug 1269397] Re: update-manager crashed with AttributeError in resize_to_standard_width(): 'NoneType' object has no attribute 'get_resolution' if $DISPLAY is not set

Michael Mess 1269397 at bugs.launchpad.net
Sat May 3 08:44:49 UTC 2014


I remember that I have called update-manager by accident from the
console (no X11-DISPLAY).

Probably it would be nice, if it would have a text mode interface that
could be used when no display is available, but I know there are other
commands that do the same at the command line, so it could also output
some help text that might be useful for beginners . For example:

  update-manager is a graphical user interface that needs an X11
Display.

  If you do not have an X11 display, at the command line, you can use
apt-get instead. See man apt-get for 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/1269397

Title:
  update-manager crashed with AttributeError in
  resize_to_standard_width(): 'NoneType' object has no attribute
  'get_resolution' if $DISPLAY is not set

Status in “update-manager” package in Ubuntu:
  Fix Committed
Status in “update-manager” source package in Trusty:
  Fix Committed

Bug description:
  ERRORS BUCKET:
  https://errors.ubuntu.com/bucket/?id=/usr/bin/update-manager%3AAttributeError%3A%3Clambda%3E%3Aresize_to_standard_width

  TEST CASE:
  1. Open a terminal
  2. run: unset DISPLAY
  3. run: update-manager

  EXPECTED RESULT:
  It exits with a cannot open display message

  ACTUAL RESULT:
  It crashes

  apt-cache policy update-manager
  update-manager:
    Installed: 1:0.196.5
    Candidate: 1:0.196.5
    Version table:
   *** 1:0.196.5 0
          500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: CrashDistroRelease: Ubuntu 14.04
  Package: update-manager 1:0.196.5
  ProcVersionSignature: Ubuntu 3.13.0-3.18-generic 3.13.0-rc8
  Uname: Linux 3.13.0-3-generic x86_64
  ApportVersion: 2.13.1-0ubuntu1
  Architecture: amd64
  Date: Wed Jan 15 18:05:36 2014
  ExecutablePath: /usr/bin/update-manager
  InstallationDate: Installed on 2012-09-30 (472 days ago)
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.1)
  InterpreterPath: /usr/bin/python3.3
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/update-manager -d
  PythonArgs: ['/usr/bin/update-manager', '-d']SourcePackage: update-manager
  Title: update-manager crashed with AttributeError in resize_to_standard_width(): 'NoneType' object has no attribute 'get_resolution'
  UpgradeStatus: Upgraded to trusty on 2013-11-10 (65 days ago)
  UserGroups:

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



More information about the foundations-bugs mailing list