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

installed couchdb package post-installation script subprocess returned error exit status 20 #5005

Open
jungalwala opened this issue Mar 15, 2024 · 3 comments

Comments

@jungalwala
Copy link

Description

Post install script after upgrading from 3.3.1 -> 3.3.3-1 I now get the following errors when I perform any "apt-get"

1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up couchdb (3.3.3-1~bullseye) ... dpkg: error processing package couchdb (--configure): installed couchdb package post-installation script subprocess returned error exit status 20 Errors were encountered while processing: couchdb

Note, couchdb is running 3.3.3.-1 now, but it is blocking me from installing other packages because apt-get thinks the post install script for couchdb did not complete.

Steps to Reproduce

apt-get install

Expected Behaviour

Post install script to run

Your Environment

Running Debian 11: Linux amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 GNU/Linux

Additional Context

This happens to all three of the nodes in my cluster.

@jungalwala
Copy link
Author

I just tried uninstalling couchdb and it worked with no errors (etc files kept).
I tried to install again using "apt-get install couchdb -y" and it again fails.

`
apt-get install couchdb -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
gyp libc-ares2 libfile-basedir-perl libfile-desktopentry-perl libfile-mimeinfo-perl libfontenc1 libipc-system-simple-perl libjs-highlight.js libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer liblua5.3-0 libnet-dbus-perl libssl-dev libtext-iconv-perl libtie-ixhash-perl
libuv1-dev libvte-2.91-0 libvte-2.91-common libx11-protocol-perl libxaw7 libxcb-shape0 libxkbfile1 libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxmu6 libxmuu1 libxv1 libxxf86dga1 node-abbrev node-agent-base node-ajv node-ansi node-ansi-regex node-ansi-styles node-ansistyles
node-aproba node-archy node-are-we-there-yet node-asap node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-brace-expansion node-builtins node-cacache node-caseless node-chalk node-chownr node-clone node-color-convert node-color-name
node-colors node-columnify node-combined-stream node-concat-map node-console-control-strings node-copy-concurrently node-core-util-is node-dashdash node-debug node-defaults node-delayed-stream node-delegates node-depd node-ecc-jsbn node-encoding node-err-code node-escape-string-regexp
node-extend node-extsprintf node-fast-deep-equal node-forever-agent node-form-data node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge node-getpass node-glob node-graceful-fs node-har-schema node-har-validator node-has-flag node-has-unicode node-hosted-git-info
node-http-signature node-https-proxy-agent node-iconv-lite node-iferr node-imurmurhash node-indent-string node-inflight node-inherits node-ini node-ip node-ip-regex node-is-typedarray node-isarray node-isexe node-isstream node-jsbn node-json-parse-better-errors node-json-schema
node-json-schema-traverse node-json-stable-stringify node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream node-jsprim node-leven node-lockfile node-lru-cache node-mime node-mime-types node-minimatch node-mkdirp node-move-concurrently node-ms node-mute-stream node-nopt
node-normalize-package-data node-npm-bundled node-npm-package-arg node-npmlog node-number-is-nan node-oauth-sign node-object-assign node-once node-opener node-osenv node-p-map node-path-is-absolute node-performance-now node-process-nextick-args node-promise-inflight node-promise-retry
node-promzard node-psl node-puka node-punycode node-qs node-read node-read-package-json node-readable-stream node-request node-resolve node-resolve-from node-retry node-rimraf node-run-queue node-safe-buffer node-semver node-set-blocking node-signal-exit node-slash node-spdx-correct
node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri node-string-decoder node-string-width node-strip-ansi node-supports-color node-tar node-text-table node-through node-tough-cookie node-tunnel-agent node-tweetnacl node-typedarray-to-buffer
node-unique-filename node-universalify node-uri-js node-util-deprecate node-uuid node-validate-npm-package-license node-validate-npm-package-name node-verror node-wcwidth.js node-which node-wide-align node-wrappy node-write-file-atomic node-yallist python3-pkg-resources termit x11-utils
x11-xserver-utils xdg-utils
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
couchdb
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/30.9 MB of archives.
After this operation, 54.2 MB of additional disk space will be used.
Preconfiguring packages ...
couchdb failed to preconfigure, with exit status 128
Selecting previously unselected package couchdb.
(Reading database ... 103815 files and directories currently installed.)
Preparing to unpack .../couchdb_3.3.3-1bullseye_amd64.deb ...
Unpacking couchdb (3.3.3-1
bullseye) ...
Setting up couchdb (3.3.3-1~bullseye) ...
dpkg: error processing package couchdb (--configure):
installed couchdb package post-installation script subprocess returned error exit status 128
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
couchdb
E: Sub-process /usr/bin/dpkg returned an error code (1)

`

I think it may have to do with the configuration directory existing already.

@SijiaCui
Copy link

I just tried uninstalling couchdb and it worked with no errors (etc files kept). I tried to install again using "apt-get install couchdb -y" and it again fails.

` apt-get install couchdb -y Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: gyp libc-ares2 libfile-basedir-perl libfile-desktopentry-perl libfile-mimeinfo-perl libfontenc1 libipc-system-simple-perl libjs-highlight.js libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer liblua5.3-0 libnet-dbus-perl libssl-dev libtext-iconv-perl libtie-ixhash-perl libuv1-dev libvte-2.91-0 libvte-2.91-common libx11-protocol-perl libxaw7 libxcb-shape0 libxkbfile1 libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxmu6 libxmuu1 libxv1 libxxf86dga1 node-abbrev node-agent-base node-ajv node-ansi node-ansi-regex node-ansi-styles node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-brace-expansion node-builtins node-cacache node-caseless node-chalk node-chownr node-clone node-color-convert node-color-name node-colors node-columnify node-combined-stream node-concat-map node-console-control-strings node-copy-concurrently node-core-util-is node-dashdash node-debug node-defaults node-delayed-stream node-delegates node-depd node-ecc-jsbn node-encoding node-err-code node-escape-string-regexp node-extend node-extsprintf node-fast-deep-equal node-forever-agent node-form-data node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge node-getpass node-glob node-graceful-fs node-har-schema node-har-validator node-has-flag node-has-unicode node-hosted-git-info node-http-signature node-https-proxy-agent node-iconv-lite node-iferr node-imurmurhash node-indent-string node-inflight node-inherits node-ini node-ip node-ip-regex node-is-typedarray node-isarray node-isexe node-isstream node-jsbn node-json-parse-better-errors node-json-schema node-json-schema-traverse node-json-stable-stringify node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream node-jsprim node-leven node-lockfile node-lru-cache node-mime node-mime-types node-minimatch node-mkdirp node-move-concurrently node-ms node-mute-stream node-nopt node-normalize-package-data node-npm-bundled node-npm-package-arg node-npmlog node-number-is-nan node-oauth-sign node-object-assign node-once node-opener node-osenv node-p-map node-path-is-absolute node-performance-now node-process-nextick-args node-promise-inflight node-promise-retry node-promzard node-psl node-puka node-punycode node-qs node-read node-read-package-json node-readable-stream node-request node-resolve node-resolve-from node-retry node-rimraf node-run-queue node-safe-buffer node-semver node-set-blocking node-signal-exit node-slash node-spdx-correct node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri node-string-decoder node-string-width node-strip-ansi node-supports-color node-tar node-text-table node-through node-tough-cookie node-tunnel-agent node-tweetnacl node-typedarray-to-buffer node-unique-filename node-universalify node-uri-js node-util-deprecate node-uuid node-validate-npm-package-license node-validate-npm-package-name node-verror node-wcwidth.js node-which node-wide-align node-wrappy node-write-file-atomic node-yallist python3-pkg-resources termit x11-utils x11-xserver-utils xdg-utils Use 'apt autoremove' to remove them. The following NEW packages will be installed: couchdb 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/30.9 MB of archives. After this operation, 54.2 MB of additional disk space will be used. Preconfiguring packages ... couchdb failed to preconfigure, with exit status 128 Selecting previously unselected package couchdb. (Reading database ... 103815 files and directories currently installed.) Preparing to unpack .../couchdb_3.3.3-1bullseye_amd64.deb ... Unpacking couchdb (3.3.3-1bullseye) ... Setting up couchdb (3.3.3-1~bullseye) ... dpkg: error processing package couchdb (--configure): installed couchdb package post-installation script subprocess returned error exit status 128 Processing triggers for man-db (2.9.4-2) ... Errors were encountered while processing: couchdb E: Sub-process /usr/bin/dpkg returned an error code (1)

`

I think it may have to do with the configuration directory existing already.

I just stuck with the same issue "post-installation script subprocess returned error exit status 128", have you fixed the error?

@jungalwala
Copy link
Author

I had to upgrade my VM to debian 12 in order to get it to install.

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

No branches or pull requests

2 participants