ubuntu-support-status return "TypeError: not enough arguments for format string" due to bad translations
Bug #1703827 reported by
backit
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Translations |
New
|
Undecided
|
Unassigned | ||
language-pack-gd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned | ||
language-pack-it (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned | ||
update-manager (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned |
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-
Return only the error:
"
Traceback (most recent call last):
File "/usr/bin/
'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.
Changed in update-manager (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
milestone: | none → ubuntu-17.08 |
milestone: | ubuntu-17.08 → ubuntu-17.07 |
tags: | added: id-59692f0b86d83287eaa36c49 |
Changed in language-pack-gd (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in language-pack-gd (Ubuntu): | |
status: | New → Confirmed |
Changed in language-pack-it (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in language-pack-it (Ubuntu): | |
status: | New → Confirmed |
Changed in update-manager (Ubuntu): | |
milestone: | ubuntu-17.07 → ubuntu-18.04.1 |
Changed in update-manager (Ubuntu): | |
milestone: | ubuntu-18.04.1 → none |
assignee: | Brian Murray (brian-murray) → nobody |
To post a comment you must log in.
I wasn't able to recreate this issue e.g. the original code works fine for me.
That being said it certainly appears to be an issue affecting a lot of people:
https:/ /errors. ubuntu. com/problem/ 76dc05ff3a34f1b 74353bf3103378e 872e58dea2
There about 260 reports from 16.04 users regarding it.