Public bug reported:

Description:    Ubuntu 12.04.1 LTS
Release:        12.04

update-manager:
  Installed: 1:0.156.14.9

In my sources.list I had some lines with an accent ("í" in "Víctor"),
like this one:

deb https://x...@private-ppa.launchpad.net/XXX precise main #Personal
access of Víctor R. Ruiz (vrruiz)

Doing an "upgrade-manager -d" and clicking for upgrade to Quantal (do-
release-upgrade), I repeatedly got this error:

WARNING: Failed to read mirror file
Traceback (most recent call last):
  File "/tmp/update-manager-ir3uWg/quantal", line 10, in <module>
    sys.exit(main())
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeMain.py", line 235, 
in main
    if app.run():
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeController.py", line 
1736, in run
    return self.fullUpgrade()
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeController.py", line 
1638, in fullUpgrade
    if not self.updateSourcesList():
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeController.py", line 
711, in updateSourcesList
    if not self.rewriteSourcesList(mirror_check=True):
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeController.py", line 
686, in rewriteSourcesList
    entry.comment += " " + _("disabled on upgrade to %s") % self.toDist
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 20: 
ordinal not in range(128)
Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeViewGtk3.py", line 
475, in _handleException
    apport_crash(type, value, tb)
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeApport.py", line 47, 
in apport_crash
    _apport_append_logfiles(report)
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeApport.py", line 28, 
in _apport_append_logfiles
    report[f.replace(".","").replace("-","")] = (open(f), )
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 509, in 
__setitem__
    assert k.replace('.', '').replace('-', '').replace('_', '').isalnum()
AssertionError

Original exception was:
Traceback (most recent call last):
  File "/tmp/update-manager-ir3uWg/quantal", line 10, in <module>
    sys.exit(main())
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeMain.py", line 235, 
in main
    if app.run():
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeController.py", line 
1736, in run
    return self.fullUpgrade()
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeController.py", line 
1638, in fullUpgrade
    if not self.updateSourcesList():
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeController.py", line 
711, in updateSourcesList
    if not self.rewriteSourcesList(mirror_check=True):
  File "/tmp/update-manager-ir3uWg/DistUpgrade/DistUpgradeController.py", line 
686, in rewriteSourcesList
    entry.comment += " " + _("disabled on upgrade to %s") % self.toDist
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 20: 
ordinal not in range(128)

The error was gone when I modified sources.list and replaced the accent
with an ASCII character ("í" -> "i").

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1039484

Title:
  Accents in sources.list breaks do-release-upgrade

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to