VOOZH about

URL: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1375088

โ‡ฑ Bug #1375088 โ€œkubuntu-devel-release-upgrade crashes with TypeErr...โ€ : Bugs : ubuntu-release-upgrader package : Ubuntu


kubuntu-devel-release-upgrade crashes with TypeError

Bug #1375088 reported by Dima Ryazanov
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Harald Sitter

Bug Description

I was upgrading from 14.04 to 14.10. After a while, I got the following exception:

  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeViewKDE.py", line 337, in conffile
    os.write(self.master_fd, "y\n")
TypeError: 'str' does not support the buffer interface

Here's the full output:

"""
$ kubuntu-devel-release-upgrade
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1,143 kB]
100% [Working] 64.5 kB/s 0sadept_manager: no process found
adept_updater: no process found
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /root/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
exitMainLoop
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-opo6yaru/utopic", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeMain.py", line 239, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeController.py", line 1822, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeController.py", line 1787, in fullUpgrade
    if not self.doDistUpgrade():
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeController.py", line 1132, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 501, in commit
    res = self.install_archives(pm, install_progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 465, in install_archives
    res = install_progress.run(pm)
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeView.py", line 233, in run
    res = os.WEXITSTATUS(self.wait_child())
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeViewKDE.py", line 431, in wait_child
    self.update_interface()
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeViewKDE.py", line 410, in update_interface
    InstallProgress.update_interface(self)
  File "/usr/lib/python3/dist-packages/apt/progress/base.py", line 252, in update_interface
    self.conffile(match.group(1), match.group(2))
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeViewKDE.py", line 337, in conffile
    os.write(self.master_fd, "y\n")
TypeError: 'str' does not support the buffer interface
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 102, in apport_excepthook
    pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])
  File "/usr/lib/python3/dist-packages/apport/report.py", line 521, in add_proc_info
    raise ValueError('%s does not exist' % self['ExecutablePath'])
ValueError: /usr/bin/python3.4 (deleted) does not exist

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-opo6yaru/utopic", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeMain.py", line 239, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeController.py", line 1822, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeController.py", line 1787, in fullUpgrade
    if not self.doDistUpgrade():
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeController.py", line 1132, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 501, in commit
    res = self.install_archives(pm, install_progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 465, in install_archives
    res = install_progress.run(pm)
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeView.py", line 233, in run
    res = os.WEXITSTATUS(self.wait_child())
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeViewKDE.py", line 431, in wait_child
    self.update_interface()
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeViewKDE.py", line 410, in update_interface
    InstallProgress.update_interface(self)
  File "/usr/lib/python3/dist-packages/apt/progress/base.py", line 252, in update_interface
    self.conffile(match.group(1), match.group(2))
  File "/tmp/ubuntu-release-upgrader-opo6yaru/DistUpgrade/DistUpgradeViewKDE.py", line 337, in conffile
    os.write(self.master_fd, "y\n")
TypeError: 'str' does not support the buffer interface
"""

The upgrade process doesn't exist anymore, though its window is still visible (and frozen).

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: ubuntu-release-upgrader-qt 1:14.10.7
ProcVersionSignature: Ubuntu 3.13.0-30.55-generic 3.13.11.2
Uname: Linux 3.13.0-30-generic x86_64
ApportVersion: 2.14.7-0ubuntu2
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: KDE
Date: Sun Sep 28 18:59:25 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-04-05 (542 days ago)
InstallationMedia: Kubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to utopic on 2014-09-29 (0 days ago)

Revision history for this message ๐Ÿ‘ Image
Dima Ryazanov (dima-gmail) wrote : #1
Revision history for this message ๐Ÿ‘ Image
Dima Ryazanov (dima-gmail) wrote : #2

Some more info: I was asked if I want to keep the old /etc/mime.types or replace it with a new version, then the process crashed.

I ran "sudo dpkg --configure -a" hoping to resume the process, and got asked the same question again, so I'm guessing that's the cause of the release upgrader crash.

Revision history for this message ๐Ÿ‘ Image
Launchpad Janitor (janitor) wrote : #3

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New โ†’ Confirmed
tags: added: kubuntu
Changed in ubuntu-release-upgrader (Ubuntu):
assignee: nobody โ†’ Harald Sitter (apachelogger)
importance: Undecided โ†’ High
milestone: none โ†’ ubuntu-14.10
Revision history for this message ๐Ÿ‘ Image
Harald Sitter (apachelogger) wrote : #4

Uploaded fix to utopic.

Changed in ubuntu-release-upgrader (Ubuntu):
status: Confirmed โ†’ Fix Committed
Revision history for this message ๐Ÿ‘ Image
Launchpad Janitor (janitor) wrote : #5

This bug was fixed in the package ubuntu-release-upgrader - 1:14.10.9

---------------
ubuntu-release-upgrader (1:14.10.9) utopic; urgency=low

  * DistUpgrade/DistUpgradeController.py:
    - fix crash when one of the sources.list entries gives a network
      error (LP: #1347834)
 -- Michael Vogt <email address hidden> Mon, 20 Oct 2014 10:12:27 -0400

Changed in ubuntu-release-upgrader (Ubuntu):
status: Fix Committed โ†’ Fix Released
To post a comment you must log in.