jefferbrecht opened a new issue, #4001:
URL: https://github.com/apache/couchdb/issues/4001
[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^
)
## Description
I get this error when installing couchdb 3.2.2 on Ubuntu 20.04:
```
$ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y couchdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libpolkit-gobject-1-0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libmozjs-68-0
The following NEW packages will be installed:
couchdb libmozjs-68-0
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 30.6 MB of archives.
After this operation, 62.2 MB of additional disk space will be used.
Get:1 http://us-central1.gce.archive.ubuntu.com/ubuntu focal/main amd64
libmozjs-68-0 amd64 68.6.0-1ubuntu1 [3201 kB]
Get:2 https://apache.jfrog.io/artifactory/couchdb-deb focal/main amd64
couchdb amd64 3.2.2~focal [27.4 MB]
Fetched 30.6 MB in 2s (14.2 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libmozjs-68-0:amd64.
(Reading database ... 46447 files and directories currently installed.)
Preparing to unpack .../libmozjs-68-0_68.6.0-1ubuntu1_amd64.deb ...
Unpacking libmozjs-68-0:amd64 (68.6.0-1ubuntu1) ...
Selecting previously unselected package couchdb.
Preparing to unpack .../couchdb_3.2.2~focal_amd64.deb ...
Unpacking couchdb (3.2.2~focal) ...
Setting up libmozjs-68-0:amd64 (68.6.0-1ubuntu1) ...
Setting up couchdb (3.2.2~focal) ...
dpkg: error processing package couchdb (--configure):
installed couchdb package post-installation script subprocess returned
error exit status 30
Processing triggers for systemd (245.4-4ubuntu3.16) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Errors were encountered while processing:
couchdb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
## Steps to Reproduce
1. Follow the installation steps from
https://docs.couchdb.org/en/stable/install/unix.html:
```
sudo apt update && sudo apt install -y curl apt-transport-https gnupg
curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | sudo tee
/usr/share/keyrings/couchdb-archive-keyring.gpg
>/dev/null 2>&1
source /etc/os-release
echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg]
https://apache.jfrog.io/artifactory/couchdb-deb/
${VERSION_CODENAME} main" \
| sudo tee /etc/apt/sources.list.d/couchdb.list >/dev/null
sudo apt update
sudo apt install -y couchdb
```
## Expected Behaviour
Installation should complete successfully.
## Your Environment
* CouchDB version used: 3.2.2
* Browser name and version: N/A
* Operating system and version: Ubuntu 20.04 (running on Google Cloud
Compute Engine, specifically the image being used is
`ubuntu-minimal-2004-focal-v20220419a`)
The VM environment is completely "vanilla": the error is reproducible
immediately after booting up a fresh Ubuntu 20.04 instance on Google Cloud
Compute Engine.
## Additional Context
This was working fine for couchdb 3.2.1.
In my debugging I believe I've isolated the failure to the `exec
/usr/share/debconf/frontend /var/lib/dpkg/info/couchdb.postinst configure`
command, but I'm not sure how to proceed:
```
$ sudo DEBIAN_FRONTEND=noninteractive DEBCONF_DEBUG=developer
/usr/share/debconf/frontend /var/lib/dpkg/info/couchdb.postinst configure
debconf (developer): frontend started
debconf (developer): frontend running, package name is couchdb
debconf (developer): starting /var/lib/dpkg/info/couchdb.config configure
debconf (developer): <-- SET couchdb/cookie
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT high couchdb/mode
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- GET couchdb/mode
debconf (developer): --> 0 standalone
debconf (developer): <-- FSET couchdb/nodename seen false
debconf (developer): --> 0 false
debconf (developer): <-- INPUT high couchdb/cookie
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- GET couchdb/cookie
debconf (developer): --> 0
debconf (developer): <-- INPUT critical couchdb/no_cookie
debconf (developer): --> 30 question skipped
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]