Hi @"VirtuBox" I am attempting to resolve this issue again. Previously I downgraded nginx-common
as a workaround, as removing ppa:ondrej/nginx-mainline
did not resolve the issue.
Today I have upgraded WO again, and same issue occurred. NGINX gets uninstalled due to a dependancy issue. As shown here:
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nginx-custom : Depends: nginx-common (= 1.24.0-1ppa~stable~ubuntu20.04.1) but 1.25.3-1+ubuntu20.04.1+deb.sury.org+1 is to be installed
nginx-wo : Depends: nginx-common (= 1.24.0-1ppa~stable~ubuntu20.04.1) but 1.25.3-1+ubuntu20.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
2024-01-07 18:30:03,064 (INFO) wo : Oops Something went wrong!!
2024-01-07 18:30:03,064 (ERROR) wo : Check the WordOps log for more details `tail /var/log/wo/wordops.log` and please try again...
I have again had to manually downgrade nginx-common
, as shown here:
natnut@nhnut:~$ sudo aptitude install nginx-wo
The following NEW packages will be installed:
nginx-wo{b}
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.7 kB of archives. After unpacking 34.8 kB will be used.
The following packages have unmet dependencies:
nginx-wo : Depends: nginx-common (= 1.24.0-1ppa~stable~ubuntu20.04.1) but 1.25.3-1+ubuntu20.04.1+deb.sury.org+1 is installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) nginx-wo [Not Installed]
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Downgrade the following packages:
1) nginx-common [1.25.3-1+ubuntu20.04.1+deb.sury.org+1 (now) -> 1.24.0-1ppa~stable~ubuntu20.04.1 (focal)]
Accept this solution? [Y/n/q/?] y
The following packages will be DOWNGRADED:
nginx-common
The following NEW packages will be installed:
nginx-wo
0 packages upgraded, 1 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 57.0 kB of archives. After unpacking 112 kB will be freed.
Do you want to continue? [Y/n/?] y
Get: 1 http://ppa.launchpad.net/wordops/nginx-wo/ubuntu focal/main amd64 nginx-common all 1.24.0-1ppa~stable~ubuntu20.04.1 [35.3 kB]
Get: 2 http://ppa.launchpad.net/wordops/nginx-wo/ubuntu focal/main amd64 nginx-wo amd64 1.24.0-1ppa~stable~ubuntu20.04.1 [21.7 kB]
Fetched 57.0 kB in 1s (41.2 kB/s)
dpkg: warning: downgrading nginx-common from 1.25.3-1+ubuntu20.04.1+deb.sury.org+1 to 1.24.0-1ppa~stable~ubuntu20.04.1
(Reading database ... 146070 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.24.0-1ppa~stable~ubuntu20.04.1_all.deb ...
Unpacking nginx-common (1.24.0-1ppa~stable~ubuntu20.04.1) over (1.25.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package nginx-wo.
Preparing to unpack .../nginx-wo_1.24.0-1ppa~stable~ubuntu20.04.1_amd64.deb ...
Unpacking nginx-wo (1.24.0-1ppa~stable~ubuntu20.04.1) ...
Setting up nginx-common (1.24.0-1ppa~stable~ubuntu20.04.1) ...
Installing new version of config file /etc/init.d/nginx ...
Installing new version of config file /etc/logrotate.d/nginx ...
Installing new version of config file /etc/nginx/fastcgi.conf ...
Installing new version of config file /etc/nginx/fastcgi_params ...
Installing new version of config file /etc/nginx/mime.types ...
Configuration file '/etc/nginx/nginx.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.
*** nginx.conf (Y/I/N/O/D/Z) [default=N] ? N
Installing new version of config file /etc/nginx/scgi_params ...
Configuration file '/etc/nginx/sites-available/default'
==> 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.
*** default (Y/I/N/O/D/Z) [default=N] ? N
Installing new version of config file /etc/nginx/snippets/fastcgi-php.conf ...
Installing new version of config file /etc/nginx/uwsgi_params ...
Setting up nginx-wo (1.24.0-1ppa~stable~ubuntu20.04.1) ...
Processing triggers for systemd (245.4-4ubuntu3.22) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ufw (0.36-6ubuntu1.1) ...
But I don't want to have to keep doing this every time I update WordOps.
So you have any other suggestions? I'd really like to resolve this, as it has been going on for a couple of years.