I try to undestand what kind of requirement is php-fpm
for mongodb. I tried to upgrade mongodb to 6.0.3 (latest) on Ubuntu 22.04. Since the upgrade process failed on php-fpm
I must specify that I replaced the php 8.0
which is default on Ubuntu 22.04 with php7.4-fpm
. I have no standard php installed on the server, just php-fpm
.
Can someone analize the following error and tell me what’s going on?
install mongodb --version 6.0.3 '<======================================================================================='
deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libssl1.1
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
mongodb-org mongodb-org-database mongodb-org-mongos mongodb-org-server
mongodb-org-shell mongodb-org-tools
6 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
1 not fully installed or removed.
Need to get 53.3 MB of archives.
After this operation, 2,583 kB disk space will be freed.
Get:1 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0/multiverse amd64 mongodb-org-shell amd64 6.0.3 [2,986 B]
Get:2 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0/multiverse amd64 mongodb-org-server amd64 6.0.3 [31.2 MB]
Get:3 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0/multiverse amd64 mongodb-org-mongos amd64 6.0.3 [22.1 MB]
Get:4 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0/multiverse amd64 mongodb-org-database amd64 6.0.3 [3,424 B]
Get:5 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0/multiverse amd64 mongodb-org-tools amd64 6.0.3 [2,768 B]
Get:6 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0/multiverse amd64 mongodb-org amd64 6.0.3 [2,804 B]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 53.3 MB in 6s (9,359 kB/s)
(Reading database ... 112930 files and directories currently installed.)
Preparing to unpack .../0-mongodb-org-shell_6.0.3_amd64.deb ...
Unpacking mongodb-org-shell (6.0.3) over (5.0.10) ...
Preparing to unpack .../1-mongodb-org-server_6.0.3_amd64.deb ...
Unpacking mongodb-org-server (6.0.3) over (5.0.10) ...
Preparing to unpack .../2-mongodb-org-mongos_6.0.3_amd64.deb ...
Unpacking mongodb-org-mongos (6.0.3) over (5.0.10) ...
Preparing to unpack .../3-mongodb-org-database_6.0.3_amd64.deb ...
Unpacking mongodb-org-database (6.0.3) over (5.0.10) ...
Preparing to unpack .../4-mongodb-org-tools_6.0.3_amd64.deb ...
Unpacking mongodb-org-tools (6.0.3) over (5.0.10) ...
Preparing to unpack .../5-mongodb-org_6.0.3_amd64.deb ...
Unpacking mongodb-org (6.0.3) over (5.0.10) ...
Setting up php7.4-fpm (1:7.4.30-5+ubuntu22.04.1+deb.sury.org+1) ...
Configuration file '/etc/php/7.4/fpm/pool.d/www.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** www.conf (Y/I/N/O/D/Z) [default=N] ?
Configuration file '/etc/php/7.4/fpm/pool.d/www.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** www.conf (Y/I/N/O/D/Z) [default=N] ?
Configuration file '/etc/php/7.4/fpm/pool.d/www.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** www.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package php7.4-fpm (--configure):
end of file on stdin at conffile prompt
Setting up mongodb-org-server (6.0.3) ...
Installing new version of config file /etc/mongod.conf ...
Setting up mongodb-org-shell (6.0.3) ...
Setting up mongodb-org-tools (6.0.3) ...
Setting up mongodb-org-mongos (6.0.3) ...
Setting up mongodb-org-database (6.0.3) ...
Setting up mongodb-org (6.0.3) ...
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
php7.4-fpm
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)