pdagent icon indicating copy to clipboard operation
pdagent copied to clipboard

Ubuntu 20 Install Fails

Open misilot opened this issue 5 years ago • 5 comments

Following the install directions for Ubuntu the system ends up in a dirty state, and breaks apt.

 Reading package lists... Done
Building dependency tree
Reading state information... Done
pdagent is already the newest version (1.7.2).
pdagent-integrations is already the newest version (1.6.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up pdagent (1.7.2) ...
/var/lib/dpkg/info/pdagent.postinst: 61: pycompile: not found
dpkg: error processing package pdagent (--configure):
installed pdagent package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of pdagent-integrations:
pdagent-integrations depends on pdagent; however:
Package pdagent is not configured yet.

dpkg: error processing package pdagent-integrations (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
pdagent
pdagent-integrations
E: Sub-process /usr/bin/dpkg returned an error code (1)

I also tried downloading the the latest tar file and running pd-send and because of how Ubuntu 20.04LTS only comes with python3 installed at /usr/bin/python3 it fails as /usr/bin/python does not exist by design.

Thanks, and please let me know if you need any other information.

Tom

misilot avatar Jun 11 '20 20:06 misilot

Thanks Tom, we'll look into it!

rwalbergpd avatar Jun 12 '20 18:06 rwalbergpd

I am also finding this issue on a Ubuntu 18.04 LTS fresh install, without having installed Python 2 anywhere.

rwalbergpd avatar Jun 22 '20 01:06 rwalbergpd

In the meantime, as a workaround, you can:

$ cd /usr/bin
$ ln -s py3clean pyclean
$ ln -s py3compile pycompile

and the installation and uninstallation works (until we fix this).

The actual runtime isn't working because it expects #!/usr/bin/env python and that doesn't resolve.

rwalbergpd avatar Jun 22 '20 02:06 rwalbergpd

Hello,

Just checking in on this.

Thanks!

misilot avatar Dec 08 '21 20:12 misilot

Just checking in on this, since ubuntu 22 also has been released since. Thanks!

misilot avatar Jun 28 '22 14:06 misilot