[Bug 1046362] Re: do-release-upgrade crashes on non-ascii symbols in sources.list

matthieu vidal 1046362 at bugs.launchpad.net
Fri Sep 28 12:35:25 UTC 2012


it seems that this problem is gone with beta 2. I can't confirm it
because I had to delete obsolete source lists.

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

Title:
  do-release-upgrade crashes on non-ascii symbols in sources.list

Status in “update-manager” package in Ubuntu:
  Confirmed

Bug description:
  If /etc/apt/sources.list or /etc/apt/sources.list.d/*.list files
  contain non-ASCII symbols in comments (like russian '# заблокировано
  при обновлении до precise') then do-release-upgrade fails with (was
  trying upgrade from 12.04 to 12.10 beta):

  Traceback (most recent call last):
    File "/tmp/update-manager-D9D4d6/quantal", line 10, in <module>
      sys.exit(main())
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeMain.py", line 235, in main
      if app.run():
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeController.py", line 1736, in run
      return self.fullUpgrade()
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeController.py", line 1638, in fullUpgrade
      if not self.updateSourcesList():
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeController.py", line 711, in updateSourcesList
      if not self.rewriteSourcesList(mirror_check=True):
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeController.py", line 686, in rewriteSourcesList
      entry.comment += " " + _("disabled on upgrade to %s") % self.toDist
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 1: ordinal not in range(128)
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeViewGtk3.py", line 475, in _handleException
      apport_crash(type, value, tb)
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeApport.py", line 47, in apport_crash
      _apport_append_logfiles(report)
    File "/tmp/update-manager-D9D4d6/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-D9D4d6/quantal", line 10, in <module>
      sys.exit(main())
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeMain.py", line 235, in main
      if app.run():
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeController.py", line 1736, in run
      return self.fullUpgrade()
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeController.py", line 1638, in fullUpgrade
      if not self.updateSourcesList():
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeController.py", line 711, in updateSourcesList
      if not self.rewriteSourcesList(mirror_check=True):
    File "/tmp/update-manager-D9D4d6/DistUpgrade/DistUpgradeController.py", line 686, in rewriteSourcesList
      entry.comment += " " + _("disabled on upgrade to %s") % self.toDist
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 1: ordinal not in range(128)

  
  After removing non-ASCII comments updating is going fine

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: update-manager 1:0.156.14.9
  ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
  Uname: Linux 3.2.0-29-generic i686
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu12
  Architecture: i386
  Date: Wed Sep  5 18:52:21 2012
  GsettingsChanges:
   com.ubuntu.update-manager first-run false
   com.ubuntu.update-manager launch-time 1346856324
   com.ubuntu.update-manager show-details true
   com.ubuntu.update-manager window-height 770
   com.ubuntu.update-manager window-width 1274
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  PackageArchitecture: all
  SourcePackage: update-manager
  UpgradeStatus: Upgraded to precise on 2012-09-05 (0 days ago)
  VarLogDistupgradeAptclonesystemstate.tar.gz: Error: [Errno 13] Отказано в доступе: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
  VarLogDistupgradeTermlog:

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




More information about the foundations-bugs mailing list