error in program aptdaemon message when installing applications

Questions about applications and software
Forum rules
Before you post please read how to get help
dileo65
Level 1
Level 1
Posts: 8
Joined: Mon Sep 30, 2019 6:47 am

error in program aptdaemon message when installing applications

Post by dileo65 » Mon Sep 30, 2019 11:01 am

I installed Linux Mint xfe, latest version on an old laptop. (a real Linux newbie :) )
I can't install eg Opera browser (and some other programs) because of error in the program aptdaemon.
Anyone a clue.
Other Programs eg. teamviewer show no problems

User avatar
JoeFootball
Level 7
Level 7
Posts: 1923
Joined: Tue Nov 24, 2009 1:52 pm
Location: /home/usa/mn/minneapolis/joe

Re: error in program aptdaemon message when installing applications

Post by JoeFootball » Mon Sep 30, 2019 12:16 pm

dileo65 wrote:... because of error in the program aptdaemon. Anyone a clue.
I suspect that if someone would be able to assist, they'd need to know what the error is. :)

Joe

dileo65
Level 1
Level 1
Posts: 8
Joined: Mon Sep 30, 2019 6:47 am

Re: error in program aptdaemon message when installing applications

Post by dileo65 » Mon Sep 30, 2019 12:33 pm

for Joe :lol: ... and other helpers

detail text with this error window message:

org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

gm10
Level 19
Level 19
Posts: 9806
Joined: Thu Jun 21, 2018 5:11 pm

Re: error in program aptdaemon message when installing applications

Post by gm10 » Mon Sep 30, 2019 1:24 pm

Did you try rebooting (or at least logging out and back in)?
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

dileo65
Level 1
Level 1
Posts: 8
Joined: Mon Sep 30, 2019 6:47 am

Re: error in program aptdaemon message when installing applications

Post by dileo65 » Mon Sep 30, 2019 1:30 pm

Well, it seems this version isn't running that stable on my laptop.
It looks the connection gets lost with authorization for installing applications.
It happens randomly, so if you get the windowbox to enter the password, the program is installed, if not, a reboot is required and hopefully in the retry it asks for the user password.

gm10
Level 19
Level 19
Posts: 9806
Joined: Thu Jun 21, 2018 5:11 pm

Re: error in program aptdaemon message when installing applications

Post by gm10 » Mon Sep 30, 2019 1:38 pm

Weird, never heard of such a problem. Is that a multi-user environment where another user might be using the service at the same time? aptdaemon is kinda bad but it should be functional. Instead of rebooting, in a terminal window try reloading the daemon when it happens again:

Code: Select all

sudo aptd -r
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

dorsetUK
Level 2
Level 2
Posts: 68
Joined: Thu Sep 19, 2019 4:40 am

Re: error in program aptdaemon message when installing applications

Post by dorsetUK » Mon Sep 30, 2019 2:10 pm

Hi, trying to install Opera and I got the same error.

Code: Select all

jon@jon-AOD255:~$ sudo aptd -r
[sudo] password for jon:         
18:47:23 AptDaemon [INFO]: Initializing daemon
18:47:23 AptDaemon [WARNING]: Replacing already running daemon
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:35: PyGIWarning: PackageKitGlib was imported without specifying a version first. Use gi.require_version('PackageKitGlib', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PackageKitGlib as pk
18:57:26 AptDaemon [INFO]: Quitting due to inactivity
18:57:28 AptDaemon [INFO]: Quitting was requested
Just a little beyond me.

A hopeful Jon.

Sorry - single user and the only other thing running was Firefox 69 0 1.

Thanks.

gm10
Level 19
Level 19
Posts: 9806
Joined: Thu Jun 21, 2018 5:11 pm

Re: error in program aptdaemon message when installing applications

Post by gm10 » Mon Sep 30, 2019 2:36 pm

That output shows that the daemon was running and you successfully replaced it with a new instance. I have no idea why that would not be working then unless you are running some additional software blocking the connection like anti-virus software, or maybe you played around with Firejail or AppArmor? If it's none of that then I don't have an answer for you right now, sorry.

As a workaround you can install via Synaptic Package Manager or the command line though:

Code: Select all

apt install opera-stable
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

dorsetUK
Level 2
Level 2
Posts: 68
Joined: Thu Sep 19, 2019 4:40 am

Re: error in program aptdaemon message when installing applications

Post by dorsetUK » Mon Sep 30, 2019 3:23 pm

Thanks for your reply gm10, but I'm just playing with my - 1GB of RAM - Acer Aspire One, which can be very slow with Firefox.

I just thought that as I had the aptdaemon problem I'd back up dileo65.

Could it be an Opera problem?

Thanks Jon.

gm10
Level 19
Level 19
Posts: 9806
Joined: Thu Jun 21, 2018 5:11 pm

Re: error in program aptdaemon message when installing applications

Post by gm10 » Mon Sep 30, 2019 3:38 pm

dorsetUK wrote:
Mon Sep 30, 2019 3:23 pm
Could it be an Opera problem?
I cannot see how that could be related unless you did something strange to add the repository (Opera isn't in the official repository, in fact I'm surprised you are trying to install it via Software Manager when usually you would download a .deb package from opera.com to install), but even then this should not happen.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

dileo65
Level 1
Level 1
Posts: 8
Joined: Mon Sep 30, 2019 6:47 am

Re: error in program aptdaemon message when installing applications

Post by dileo65 » Tue Oct 01, 2019 2:41 am

thanks guys, for getting in the error issue.

its a single user enviroment and the laptop is used for some browsing and controlling the music-server ;-)

so far, the error comes with installing new software and no "user-password popup window" comes up to authorize the installation.
I will use the reset command instead of rebooting the system

dorsetUK
Level 2
Level 2
Posts: 68
Joined: Thu Sep 19, 2019 4:40 am

Re: error in program aptdaemon message when installing applications

Post by dorsetUK » Tue Oct 01, 2019 4:39 am

Morning from the Dis-uk.

Code: Select all

jon@jon-AOD255:~$ inxi -F
System:
  Host: jon-AOD255 Kernel: 5.0.0-29-generic x86_64 bits: 64 
  Desktop: Xfce 4.12.3 Distro: Linux Mint 19.2 Tina 
So far as I remember, apart from the kernel, this is an unaltered - vanilla? - install.

After a reboot I downloaded Opera again from https://www.opera.com/features/free-vpn
set to 'open with GDebi package installer' and got the same error.

Code: Select all

An unhandled error occured

There seems to be a programming error in aptdaemon. This is the software that allows you to install/remove software and to perform other package management related tasks.

org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
As I'm only playing with this laptop, are there any tests I can run, as even if they were to break things, I wouldn't be worried.

An experimental Jon.

gm10
Level 19
Level 19
Posts: 9806
Joined: Thu Jun 21, 2018 5:11 pm

Re: error in program aptdaemon message when installing applications

Post by gm10 » Tue Oct 01, 2019 10:20 am

dorsetUK wrote:
Tue Oct 01, 2019 4:39 am
are there any tests I can run,
Sure, for I have no clear idea of what's wrong. First run this to reinstall the involved components and reboot :

Code: Select all

apt install --reinstall aptdaemon python3-aptdaemon dbus
After the reboot, see if you still get the same error. If yes, does this produce the same error?

Code: Select all

aptdcon --clean
If yes, does this as well?

Code: Select all

busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanHibernate
If still yes, post the output of these:

Code: Select all

systemctl status dbus
busctl status org.debian.apt
python3 --version
Otherwise try to install something using aptdaemon via the command line:

Code: Select all

aptdcon -i zzuf
Did that work?
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

dorsetUK
Level 2
Level 2
Posts: 68
Joined: Thu Sep 19, 2019 4:40 am

Re: error in program aptdaemon message when installing applications

Post by dorsetUK » Tue Oct 01, 2019 11:02 am

Thanks for your reply gm10.
gm10 wrote:
Tue Oct 01, 2019 10:20 am
dorsetUK wrote:
Tue Oct 01, 2019 4:39 am
are there any tests I can run,
Sure, for I have no clear idea of what's wrong. First run this to reinstall the involved components and reboot :

Code: Select all

apt install --reinstall aptdaemon python3-aptdaemon dbus
After the reboot, see if you still get the same error.
I've done that, and now GDebi installer says -

Code: Select all

Dialogue box says - Package file could not be opened

Please copy the file to your local computer and check the file 

permissions.

Clicking on the little triangle says - 

tmp/mozilla_jon0/opera-stable_63.0.3368.94_amd64.deb
Thanks again, but I think it's best if I stop and wait for further advice.

An appreciative Jon

gm10
Level 19
Level 19
Posts: 9806
Joined: Thu Jun 21, 2018 5:11 pm

Re: error in program aptdaemon message when installing applications

Post by gm10 » Tue Oct 01, 2019 11:16 am

dorsetUK wrote:
Tue Oct 01, 2019 11:02 am
Thanks again, but I think it's best if I stop and wait for further advice.
Sure, that was the idea. Ok, so reinstalling those packages changed the behaviour, indicating that something was indeed wrong with the installed files on your system originally.

As to the error message, I suppose that's either a corrupt download or you're running something like Firejail after all. Let's take the browser out of the equation:

Code: Select all

wget https://download3.operacdn.com/pub/opera/desktop/63.0.3368.94/linux/opera-stable_63.0.3368.94_amd64.deb
gdebi-gtk opera-stable_63.0.3368.94_amd64.deb
Same error or does this work?
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

dorsetUK
Level 2
Level 2
Posts: 68
Joined: Thu Sep 19, 2019 4:40 am

Re: error in program aptdaemon message when installing applications

Post by dorsetUK » Tue Oct 01, 2019 11:30 am

Thanks gm10 but GDebi resorts to this, again.

Code: Select all

An unhandled error occured

There seems to be a programming error in aptdaemon. This is the software that allows you to install/remove software and to perform other package management related tasks.

Further Info.

org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
I can't remember if I had to do this before but when I went to close GDebi it had frozen and I had to use Task Master to kill it.

Jon

gm10
Level 19
Level 19
Posts: 9806
Joined: Thu Jun 21, 2018 5:11 pm

Re: error in program aptdaemon message when installing applications

Post by gm10 » Tue Oct 01, 2019 11:32 am

Hmm, carry on with the list of commands I originally gave you then.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

dorsetUK
Level 2
Level 2
Posts: 68
Joined: Thu Sep 19, 2019 4:40 am

Re: error in program aptdaemon message when installing applications

Post by dorsetUK » Tue Oct 01, 2019 12:00 pm

I have a no.

Code: Select all

jon@jon-AOD255:~$ aptdcon --clean
[+] 100%  Successful   
                                                          
jon@jon-AOD255:~$ busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanHibernate
s "no"
Any use?

gm10
Level 19
Level 19
Posts: 9806
Joined: Thu Jun 21, 2018 5:11 pm

Re: error in program aptdaemon message when installing applications

Post by gm10 » Tue Oct 01, 2019 12:02 pm

Yes, that means that dbus works and that aptdaemon does too, in principle.

Try the last step then, install a package using aptdaemon via the command line:

Code: Select all

aptdcon -i zzuf
If it fails, are you getting the authentication popup or does it fail before that already?

PS: I will be offline for a few hours so take your time. ;)
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

dorsetUK
Level 2
Level 2
Posts: 68
Joined: Thu Sep 19, 2019 4:40 am

Re: error in program aptdaemon message when installing applications

Post by dorsetUK » Tue Oct 01, 2019 12:19 pm

gm10 wrote:
Tue Oct 01, 2019 12:02 pm
PS: I will be offline for a few hours so take your time. ;)

Code: Select all

jon@jon-AOD255:~$ aptdcon -i zzuf
The following NEW package will be installed (1):                                
  zzuf
Need to get 59.7KB of archives.
After this operation, 182.0KB of additional disk space will be used.
Do you want to continue [Y/n]?y
Selecting previously unselected package zzuf.                                   
(Reading database ... 289878 files and directories currently installed.)
Preparing to unpack .../archives/zzuf_0.15-1_amd64.deb ...
Unpacking zzuf (0.15-1) ...
Setting up zzuf (0.15-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
/usr/lib/python3/dist-packages/aptdaemon/console.py:337: Warning: Source ID 24 was not found when attempting to remove it
  GLib.source_remove(wid)
/usr/lib/python3/dist-packages/aptdaemon/console.py:337: Warning: Source ID 25 was not found when attempting to remove it
  GLib.source_remove(wid)
[+] 100%  Successful  
I had to verify, and now it's my teatime.

A hungry Jon.

Post Reply

Return to “Software & Applications”