update-manager hangs in 17.10

Asked by Robert Wohlhueter

Running Ubuntu Studio 17.10 on AMD-64bit machine, I recently freed up boot-disk space (by moving homes, /var/log, and /var/crach to another disk). After the ooperation the computer boots okay, and seems to run fine (of course I have tried everything), which the conspicuos exception of "update-manger". Running it (either via program menu or command-line) hangs with a blank "software updater" window. The voluminous error-trace in the terminal window is copied below.

I'm not so facile with Python, but the hang-up seems to be a permissions error in a python sub-dir "org/debian/apt". Using "find" to search for "apt" (or "debian") shows only: "./python3/dist-packages/debian" (which has no sub-dir "apt") and "./python3/dist-packages/apt" (which is a dir itself, not an executable python program and has permissions "drwxr-xr-x 4 root root 4096 Jul 4 14:45 .).

Of couurse, I've reinstalled what I take to be the relevant "update-manager" modules: nvamely, "python3-update-manager", "update-manger", and "update-manager-core" (via synaptic -- which runs fine!)

I/m baffled. Any hints?
Thanks,
Bob Wohlhueter

*****************terminal ootput*******************************************8

bobw@winter: ~ [21]> sudo update-manager
sudo update-manager
[sudo] password for bobw:
WARNING:root:can not import unity GI Namespace Dbusmenu not available
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613, in _run_transaction_helper
    daemon = get_aptdaemon(self.bus)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701, in get_aptdaemon
    False),
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613, in _run_transaction_helper
    daemon = get_aptdaemon(self.bus)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701, in get_aptdaemon
    False),
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1584, in on_error
    error.raise_exception()
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 130, in raise_exception
    raise self.value.with_traceback(self.traceback)
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613, in _run_transaction_helper
    daemon = get_aptdaemon(self.bus)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701, in get_aptdaemon
    False),
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name

During handling of the above exceshow or set the system's NIS/YP domain name
bobw@winter: ~ [5]>
ption, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 483, in _inline_callbacks
    result = gen.throw(excep)
  File "/usr/lib/python3/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py", line 65, in update
    trans = yield self.client.update_cache(defer=True)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied

(update-manager:15593): Gtk-CRITICAL **: gtk_notebook_get_tab_label: assertion 'list != NULL' failed

(update-manager:15593): Gtk-CRITICAL **: gtk_notebook_get_tab_label: assertion 'list != NULL' failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613, in _run_transaction_helper
    daemon = get_aptdaemon(self.bus)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701, in get_aptdaemon
    False),
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613, in _run_transaction_helper
    daemon = get_aptdaemon(self.bus)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701, in get_aptdaemon
    False),
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1584, in on_error
    error.raise_exception()
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 130, in raise_exception
    raise self.value.with_traceback(self.traceback)
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
    result = gen.send(result)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613, in _run_transaction_helper
    daemon = get_aptdaemon(self.bus)
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701, in get_aptdaemon
    False),
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/defer/__init__.py", line 483, in _inline_callbacks
    result = gen.throw(excep)
  File "/usr/lib/python3/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py", line 89, in commit
    downgrade, defer=True)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the full output of:

sudo apt-get update

Artful is end of life (EOL) in a matter of weeks, so you may want to upgrade to Bionic sooner rather than later. Bionic is LTS and supported until April 2023.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Do you see the same behaviour when you start update-manager with user-rights (i.e. without sudo)?

Revision history for this message
Robert Wohlhueter (bobwohlhueter) said :
#3

Output from "apt-get update is pasted below.  It may be relevant to
observe that installing applications via synaptic seems to work fine;
indeed I have used synaptic to re-install update-amnager (a couple of
times now.)

Bob W.

*************************************************************************************
bobw@winter: ~ [28]> sudo apt-get update
sudo apt-get update
Ign:1 cdrom://Ubuntu-Studio 17.10 _Artful Aardvark_ - Release amd64
(20171017.1) artful InRelease
Err:2 cdrom://Ubuntu-Studio 17.10 _Artful Aardvark_ - Release amd64
(20171017.1) artful Release
   Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get
update cannot be used to add new CD-ROMs
Ign:3 http://dl.google.com/linux/earth/deb stable InRelease
Get:4 http://dl.google.com/linux/earth/deb stable Release [933 B]
Get:5 http://dl.google.com/linux/earth/deb stable Release.gpg [819 B]
Hit:6 http://us.archive.ubuntu.com/ubuntu artful InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease
Hit:8 http://archive.canonical.com/ubuntu artful InRelease
Hit:9 http://security.ubuntu.com/ubuntu artful-security InRelease
Hit:10 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu artful
InRelease
Hit:11 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease
Ign:12 http://build.openmodelica.org/apt artful InRelease
Hit:13 http://build.openmodelica.org/apt artful Release
Ign:14 http://ppa.launchpad.net/sergiomejia666/xresprobe/ubuntu artful
InRelease
Get:15 http://qgis.org/debian artful InRelease [3,339 B]
Err:16 http://ppa.launchpad.net/sergiomejia666/xresprobe/ubuntu artful
Release
   404  Not Found
Err:15 http://qgis.org/debian artful InRelease
   The following signatures couldn't be verified because the public key
is not available: NO_PUBKEY CAEB3DC3BDF7FB45
Reading package lists... Done
E: The repository 'cdrom://Ubuntu-Studio 17.10 _Artful Aardvark_ -
Release amd64 (20171017.1) artful Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is
therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user
configuration details.
E: Repository 'http://dl.google.com/linux/earth/deb stable Release'
changed its 'Origin' value from 'Google, Inc.' to 'Google LLC'
N: This must be accepted explicitly before updates for this repository
can be applied. See apt-secure(8) manpage for details.
E: The repository
'http://ppa.launchpad.net/sergiomejia666/xresprobe/ubuntu artful
Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is
therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user
configuration details.
W: GPG error: http://qgis.org/debian artful InRelease: The following
signatures couldn't be verified because the public key is not available:
NO_PUBKEY CAEB3DC3BDF7FB45
E: The repository 'http://qgis.org/debian artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is
therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user
configuration details.
bobw@winter: ~ [29]>

On 7/12/18 2:22 PM, actionparsnip wrote:
> Your question #670843 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/670843
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> What is the full output of:
>
> sudo apt-get update
>
> Artful is end of life (EOL) in a matter of weeks, so you may want to
> upgrade to Bionic sooner rather than later. Bionic is LTS and supported
> until April 2023.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Run:

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com CAEB3DC3BDF7FB45

That will import the key you need. I also suggest you disable the install media as a package source.

Revision history for this message
Robert Wohlhueter (bobwohlhueter) said :
#5

Yes,  Normally, I get update notifications passively, and just click
"install now";  in fact, that was how I first noticed the problem.  Of
course, I can also use the applications menu to run the update manager.
Neither of these methods run in a terminal, and just hang with a blank
window. ort.

Running as "sudo update-maanger: (not in background) generates the error
report I initially attached.  I just now ran without "sudo" (from
terminal, not in background), and get the dame error.

I can'e help but think the problem is finding the right python libs.  My
machined is complicated in that I have three, different Python
installations: v2.7 (via Synaptic), Anaconda's v.3.5, and v.3.6.  This
baroque arrangement is dictated by some third-party applications which
require a specific version.  I use a set of scripts to set PYTHONPATH
and execuatble as needed.  The erros reported were with the 3.6
environment. (That's how I've always run update-manager.  But I've also
tried with 2.7 environment, to no avail. )  I note that the three
modules shown in synaptic, searching for "updte-manager" include
"python3-update-manager".

Bob W.

On 7/12/18 2:52 PM, Manfred Hampl wrote:
> Your question #670843 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/670843
>
> Manfred Hampl requested more information:
> Do you see the same behaviour when you start update-manager with user-
> rights (i.e. without sudo)?
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Before we try tackling the python problem you should bring you package management system back into a consistent state:

Run the program
software-properties-gtk
and disable the sergiomejia666/xresprobe ppa
and disable (untick) the installation CD-ROM

Then re-execute
sudo apt-get update
and copy/paste the output that we can check whether there are still errors.

Revision history for this message
Robert Wohlhueter (bobwohlhueter) said :
#7

Manfred, "actionparsnip",

Sorry for the delay; I've been tied up with other problems.  I thought
we were on dual tracks here, but I see the same return address  for both
Manfre Hampl and "actionparsnip"

I ran "sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com
CAEB3DC3BDF7FB45" , followed by another try at running "update manager.
The output is belowe the first set of ***'s.  Lots of output, but the
bottomline (literally) is still a "failed to execute, permission denied"
error.

Then, pursuant to the second email, I ran "software-properties-gtk";
output under second set of ***'s. Worse news yet -- it doesn't run!
Also errors with "failed to execute, permission denied" error. (and
therefore couldn't disable the ppa and cd-rom.)

How can my computer have gotten so sick from what I thought was a
relatively straight-forward operation to make room on the boot dis!?

Totally flumoxed.

Bob W.

****************apt-key output *****subsequen update-manager
output*************

bobw@winter: ~ [29]> sudo apt-key adv --recv-key --keyserver
keyserver.ubuntu.com CAEB3DC3BDF7FB45
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com
CAEB3DC3BDF7FB45
[sudo] password for bobw:
Executing: /tmp/apt-key-gpghome.ixUCxNMr9S/gpg.1.sh --recv-key
--keyserver keyserver.ubuntu.com CAEB3DC3BDF7FB45
gpg: key CAEB3DC3BDF7FB45: public key "QGIS Archive Automatic Signing
Key (2017) <email address hidden>" imported
gpg: Total number processed: 1
gpg:               imported: 1
bobw@winter: ~ [30]> sudo update-manager
sudo update-manager
WARNING:root:can not import unity GI Namespace Dbusmenu not available
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
     return self.get_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
     's', (bus_name,), **keywords)
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in
_inline_callbacks
     result = gen.send(result)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613,
in _run_transaction_helper
     daemon = get_aptdaemon(self.bus)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701,
in get_aptdaemon
     False),
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in
get_object
     follow_name_owner_changes=follow_name_owner_changes)
   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in
__init__
     self._named_service = conn.activate_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in
activate_name_owner
     self.start_service_by_name(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in
start_service_by_name
     'su', (bus_name, flags)))
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program
org.debian.apt: Permission denied
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
     return self.get_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
     's', (bus_name,), **keywords)
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in
_inline_callbacks
     result = gen.send(result)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613,
in _run_transaction_helper
     daemon = get_aptdaemon(self.bus)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701,
in get_aptdaemon
     False),
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in
get_object
     follow_name_owner_changes=follow_name_owner_changes)
   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in
__init__
     self._named_service = conn.activate_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in
activate_name_owner
     self.start_service_by_name(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in
start_service_by_name
     'su', (bus_name, flags)))
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program
org.debian.apt: Permission denied
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
     return self.get_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
     's', (bus_name,), **keywords)
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1584,
in on_error
     error.raise_exception()
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 130, in
raise_exception
     raise self.value.with_traceback(self.traceback)
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in
_inline_callbacks
     result = gen.send(result)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613,
in _run_transaction_helper
     daemon = get_aptdaemon(self.bus)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701,
in get_aptdaemon
     False),
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in
get_object
     follow_name_owner_changes=follow_name_owner_changes)
   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in
__init__
     self._named_service = conn.activate_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in
activate_name_owner
     self.start_service_by_name(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in
start_service_by_name
     'su', (bus_name, flags)))
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program
org.debian.apt: Permission denied
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
     return self.get_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
     's', (bus_name,), **keywords)
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 483, in
_inline_callbacks
     result = gen.throw(excep)
   File
"/usr/lib/python3/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py",
line 65, in update
     trans = yield self.client.update_cache(defer=True)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program
org.debian.apt: Permission denied

(update-manager:30699): Gtk-CRITICAL **: gtk_notebook_get_tab_label:
assertion 'list != NULL' failed

(update-manager:30699): Gtk-CRITICAL **: gtk_notebook_get_tab_label:
assertion 'list != NULL' failed
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
     return self.get_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
     's', (bus_name,), **keywords)
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in
_inline_callbacks
     result = gen.send(result)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613,
in _run_transaction_helper
     daemon = get_aptdaemon(self.bus)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701,
in get_aptdaemon
     False),
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in
get_object
     follow_name_owner_changes=follow_name_owner_changes)
   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in
__init__
     self._named_service = conn.activate_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in
activate_name_owner
     self.start_service_by_name(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in
start_service_by_name
     'su', (bus_name, flags)))
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program
org.debian.apt: Permission denied
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
     return self.get_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
     's', (bus_name,), **keywords)
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in
_inline_callbacks
     result = gen.send(result)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613,
in _run_transaction_helper
     daemon = get_aptdaemon(self.bus)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701,
in get_aptdaemon
     False),
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in
get_object
     follow_name_owner_changes=follow_name_owner_changes)
   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in
__init__
     self._named_service = conn.activate_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in
activate_name_owner
     self.start_service_by_name(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in
start_service_by_name
     'su', (bus_name, flags)))
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program
org.debian.apt: Permission denied
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
     return self.get_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
     's', (bus_name,), **keywords)
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1584,
in on_error
     error.raise_exception()
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 130, in
raise_exception
     raise self.value.with_traceback(self.traceback)
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in
_inline_callbacks
     result = gen.send(result)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1613,
in _run_transaction_helper
     daemon = get_aptdaemon(self.bus)
   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1701,
in get_aptdaemon
     False),
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in
get_object
     follow_name_owner_changes=follow_name_owner_changes)
   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in
__init__
     self._named_service = conn.activate_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in
activate_name_owner
     self.start_service_by_name(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in
start_service_by_name
     'su', (bus_name, flags)))
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program
org.debian.apt: Permission denied
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
     return self.get_name_owner(bus_name)
   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
     's', (bus_name,), **keywords)
   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651,
in call_blocking
     message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'org.debian.apt': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 483, in
_inline_callbacks
     result = gen.throw(excep)
   File
"/usr/lib/python3/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py",
line 89, in commit
     downgrade, defer=True)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program
org.debian.apt: Permission denied
bobw@winter: ~ [31]> CAEB3DC3BDF7FB45

*************output from "software-properties-gtk *********************

On 7/13/18 11:27 AM, Manfred Hampl wrote:
> Your question #670843 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/670843
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> Before we try tackling the python problem you should bring you package
> management system back into a consistent state:
>
> Run the program
> software-properties-gtk
> and disable the sergiomejia666/xresprobe ppa
> and disable (untick) the installation CD-ROM
>
> Then re-execute
> sudo apt-get update
> and copy/paste the output that we can check whether there are still errors.
>

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#8

Ok, everything seems to lead back to the same, with dbus being mentioned in the message.

Try the command

sudo apt-get install --reinstall dbus python-dbus python3-dbus

and report the results.

Revision history for this message
Robert Wohlhueter (bobwohlhueter) said :
#9

Bravo! Yes, that was what it needed.

Thanks a million.

Bob W.

On 7/14/18 3:32 AM, Manfred Hampl wrote:
> Your question #670843 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/670843
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Ok, everything seems to lead back to the same, with dbus being mentioned
> in the message.
>
> Try the command
>
> sudo apt-get install --reinstall dbus python-dbus python3-dbus
>
> and report the results.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

Please mark the question as "solved" if everything is working as desired.

Revision history for this message
Robert Wohlhueter (bobwohlhueter) said :
#11

Problem resolved by reinstalling dbus modules:
sudo apt-get install --reinstall dbus python-dbus python3-dbus