Unable to install PBS under Ununtu 18

I can not install OpenPBS.
I already delete /etc/pbs.conf and /etc/profile.d/pbs.csh.
And there is no $PBS_HOME in my system.
But still can not install OpenPBS.

This is command lines:

root@%%%%:/home/@@@@/works/openpbs_22.05.11.ubuntu_18.04# ls -g
total 21288
-rwxrwxr-x 1 @@@@ 1584 5월 11 16:56 COPYRIGHT
-rwxrwxr-x 1 @@@@ 49638 5월 11 16:56 LICENSE
-rwxrwxr-x 1 @@@@ 4602 5월 11 16:56 README.md
-rwxrwxr-x 1 @@@@ 2421248 5월 11 16:56 openpbs-client_22.05.11-1_amd64.deb
-rwxrwxr-x 1 @@@@ 12440860 5월 11 16:56 openpbs-debuginfo_22.05.11-1_amd64.deb
-rwxrwxr-x 1 @@@@ 487896 5월 11 16:56 openpbs-devel_22.05.11-1_amd64.deb
-rwxrwxr-x 1 @@@@ 2781548 5월 11 16:56 openpbs-execution_22.05.11-1_amd64.deb
-rwxrwxr-x 1 @@@@ 3587836 5월 11 16:56 openpbs-server_22.05.11-1_amd64.deb

root@%%%%:/home/shpark/works/openpbs_22.05.11.ubuntu_18.04# dpkg -i openpbs-server_22.05.11-1_amd64.deb
(Reading database … 1018674 files and directories currently installed.)
Preparing to unpack openpbs-server_22.05.11-1_amd64.deb …
Unpacking openpbs-server (22.05.11-1) …
dpkg: error processing archive openpbs-server_22.05.11-1_amd64.deb (–install):
trying to overwrite ‘/etc/profile.d/pbs.csh’, which is also in package openpbs-execution 22.05.11-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

NOTE: /etc/pbs.conf and the PBS_HOME directory must be deleted manually

Processing triggers for libc-bin (2.27-3ubuntu1.6) …
Errors were encountered while processing:
openpbs-server_22.05.11-1_amd64.deb
root@%%%%:/home/@@@@/works/openpbs_22.05.11.ubuntu_18.04#

Hi
My guess: openpbs-server is for the head node, openpbs-execution is for your execution nodes. You can’t have both those packages installed at the same time. Remove package openpbs-execution to install openpbs-server. You need to remove the “package” not just a few files.
Mike

1 Like

How can I remove the package?

when I tried remove openpbs-execution, the belows were happen :

root@7033112U01:/home/shpark/works/openpbs_22.05.11.ubuntu_18.04# dpkg -r openpbs-execution
dpkg: error processing package openpbs-execution (–remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
openpbs-execution

And if I tried to reinsall,

root@7033112U01:/home/shpark/works/openpbs_22.05.11.ubuntu_18.04# dpkg -i openpbs-execution_22.05.11-1_amd64.deb
Selecting previously unselected package openpbs-execution.
(Reading database … 1018674 files and directories currently installed.)
Preparing to unpack openpbs-execution_22.05.11-1_amd64.deb …
/var/lib/dpkg/info/openpbs-execution.prerm: line 6: /opt/pbs/libexec/pbs_preuninstall: No such file or directory
dpkg: warning: old openpbs-execution package pre-removal script subprocess returned error exit status 127
dpkg: trying script from the new package instead …
/var/lib/dpkg/tmp.ci/prerm: line 6: /opt/pbs/libexec/pbs_preuninstall: No such file or directory
dpkg: error processing archive openpbs-execution_22.05.11-1_amd64.deb (–install):
new openpbs-execution package pre-removal script subprocess returned error exit status 127
/var/lib/dpkg/info/openpbs-execution.postinst: line 14: /opt/pbs/libexec/pbs_postinstall: No such file or directory
dpkg: error while cleaning up:
installed openpbs-execution package post-installation script subprocess returned error exit status 127
Processing triggers for libc-bin (2.27-3ubuntu1.6) …
Errors were encountered while processing:
openpbs-execution_22.05.11-1_amd64.deb