Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20 Install Fails #152

Open
misilot opened this issue Jun 11, 2020 · 5 comments
Open

Ubuntu 20 Install Fails #152

misilot opened this issue Jun 11, 2020 · 5 comments

Comments

@misilot
Copy link

misilot commented Jun 11, 2020

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

@rwalbergpd
Copy link

Thanks Tom, we'll look into it!

@rwalbergpd
Copy link

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

@rwalbergpd
Copy link

rwalbergpd commented Jun 22, 2020

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.

dobs added a commit that referenced this issue Jun 22, 2020
Notably this should help resolve:

* Issues related to using `python` and `pycompile` rather than their
Python 3 variants (see:
#152).
* Updated HOWTO with new gnupg paths (see:
#151).
* Issues attempting to install to `/lib/systemd/system` when not
available.
@misilot
Copy link
Author

misilot commented Dec 8, 2021

Hello,

Just checking in on this.

Thanks!

@misilot
Copy link
Author

misilot commented Jun 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants