[Bug 1703827] [NEW] ubuntu-support-status return "TypeError: not enough arguments for format string"

backit 1703827 at bugs.launchpad.net
Wed Jul 12 12:29:47 UTC 2017


Public bug reported:

in Ubuntu 16.04.2 LTS fresh install no upgrade from other ubuntu version. update-manager version 16.04.6.
Running command:
ubuntu-support-status
Return only the error:
"
Traceback (most recent call last):
  File "/usr/bin/ubuntu-support-status", line 151, in <module>
    'time' : time})
TypeError: not enough arguments for format string
"

Solution is to add a space in line 151 before " , so the line was:
print(_("You have %(num)s packages (%(percent).1f%%) supported until %(time)s") % {
and become:
print(_("You have %(num)s packages (%(percent).1f%%) supported until %(time)s ") % {

Notice the space after %(time)s.

Best regards.

** Affects: update-manager (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  ubuntu-support-status return "TypeError: not enough arguments for
  format string"

Status in update-manager package in Ubuntu:
  New

Bug description:
  in Ubuntu 16.04.2 LTS fresh install no upgrade from other ubuntu version. update-manager version 16.04.6.
  Running command:
  ubuntu-support-status
  Return only the error:
  "
  Traceback (most recent call last):
    File "/usr/bin/ubuntu-support-status", line 151, in <module>
      'time' : time})
  TypeError: not enough arguments for format string
  "

  Solution is to add a space in line 151 before " , so the line was:
  print(_("You have %(num)s packages (%(percent).1f%%) supported until %(time)s") % {
  and become:
  print(_("You have %(num)s packages (%(percent).1f%%) supported until %(time)s ") % {

  Notice the space after %(time)s.

  Best regards.

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



More information about the foundations-bugs mailing list