update-manager crashed with SyntaxError in find_cookie(): invalid or missing encoding declaration for '/usr/bin/sys'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Won't Fix
|
Unknown
|
|||
pygobject |
Fix Released
|
Medium
|
|||
pygobject (Ubuntu) |
Confirmed
|
Medium
|
Unassigned | ||
update-manager (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
update-manager crashed with SyntaxError in find_cookie(): invalid or missing encoding declaration for '/usr/bin/sys'
ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: update-manager 1:15.10.3
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
NonfreeKernelMo
ApportVersion: 2.19.2-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME-Classic:GNOME
Date: Sun Nov 1 22:34:22 2015
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/
GsettingsChanges:
b'com.
b'com.
b'com.
b'com.
b'com.
InstallationDate: Installed on 2015-06-02 (152 days ago)
InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 (20150422)
InterpreterPath: /usr/bin/python3.5
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/
PythonArgs: ['/usr/
SourcePackage: update-manager
Title: update-manager crashed with SyntaxError in find_cookie(): invalid or missing encoding declaration for '/usr/bin/sys'
UpgradeStatus: Upgraded to xenial on 2015-10-28 (4 days ago)
UserGroups: adm bumblebee cdrom dip libvirtd lpadmin plugdev sambashare sbuild sudo wireshark
tags: | removed: need-duplicate-check |
Changed in update-manager (Ubuntu): | |
importance: | Undecided → Medium |
information type: | Private → Public |
Changed in pygobject: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Changed in python: | |
status: | Unknown → Won't Fix |
Changed in pygobject (Ubuntu): | |
importance: | Undecided → Medium |
This is a combination of two problems. One is that starting update-manager results in these warnings:
/usr/bin/ update- manager: 28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_ version( 'Gtk', '3.0') before import to ensure that the right version gets loaded. python3/ dist-packages/ UpdateManager/ UpdateManager. py:26: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_ version( 'GdkX11' , '3.0') before import to ensure that the right version gets loaded. python3/ dist-packages/ UpdateManager/ UnitySupport. py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_ version( 'Dbusmenu' , '0.4') before import to ensure that the right version gets loaded. python3/ dist-packages/ UpdateManager/ UnitySupport. py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_ version( 'Unity' , '7.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
/usr/lib/
from gi.repository import Gdk, GdkX11
/usr/lib/
from gi.repository import Dbusmenu, Unity
/usr/lib/
from gi.repository import Dbusmenu, Unity
The other is that when openafs-client is installed, the presence of /usr/bin/sys causes Python to crash while displaying these warnings (see linked bugs).