software-properties-gtk does not run at all!
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
software-
$ software-
ENABLED COMPS: {'universe', 'main'}
INTERNET COMPS: {'universe', 'main'}
MAIN SOURCES
URI: http://
Comps: ['main']
Enabled: True
Valid: True
MatchURI: archive.
BaseURI: http://
URI: http://
Comps: ['universe']
Enabled: True
Valid: True
MatchURI: archive.
BaseURI: http://
CHILD SOURCES
URI: http://
Comps: ['main']
Enabled: True
Valid: True
MatchURI: archive.
BaseURI: None
URI: http://
Comps: ['universe']
Enabled: True
Valid: True
MatchURI: archive.
BaseURI: None
URI: http://
Comps: ['main']
Enabled: True
Valid: True
MatchURI: archive.
BaseURI: http://
URI: http://
Comps: ['universe']
Enabled: True
Valid: True
MatchURI: archive.
BaseURI: http://
URI: http://
Comps: ['universe', 'main']
Enabled: True
Valid: True
MatchURI: archive.
BaseURI: None
CDROM SOURCES
SOURCE CODE SOURCES
DISABLED SOURCES
ISV
Traceback (most recent call last):
File "/usr/bin/
app = SoftwarePropert
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self._lps = LivepatchService()
File "/usr/lib/
self._session = requests_
NameError: name 'requests_
{Exited with code 1.}
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
$ dpkg-query -l software-
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii python3-
ii software-
$ sudo apt-get update
{Works.}
$ sudo apt-get dist-upgrade
{Works.}
Changed in software-properties (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Incomplete |
Changed in software-properties (Ubuntu): | |
status: | Expired → Confirmed |
I found that if I move a bit the "import requests_ unixsocket" line (in file LivepatchServic e.py), then the software- properties- gtk call *works*.
Please somebody either propagate this solution (if it is a true solution), or tell me how to propagate.
(I do not know shat is exactly happening. Whether the try-clause partly succeeds, then rolls back?..)
$ sudo -s
# cd /usr/lib/ python3/ dist-packages/ softwarepropert ies
# diff -u4 LivepatchServic e.py.ORI LivepatchServic e.py.MY e.py.ORI 2019-06-24 14:46:07.000000000 +0200 e.py.MY 2019-06-24 14:54:31.000000000 +0200
--- LivepatchServic
+++ LivepatchServic
@@ -23,13 +23,12 @@
import logging
import gi
from gi.repository import Gio, GLib, GObject
+import requests_unixsocket
try: require_ version( 'Snapd' , '1') ImportError, ValueError):
import dateutil.parser
- import requests_unixsocket
-
gi.
from gi.repository import Snapd
except(
pass
# cp LivepatchServic e.py.MY LivepatchService.py
$ software- properties- gtk
{OK, works! The dialog is popping up.}