![Ubuntu 23.04 破坏了 Nginx](https://linux22.com/image/1030570/Ubuntu%2023.04%20%E7%A0%B4%E5%9D%8F%E4%BA%86%20Nginx.png)
我刚刚更新到 Ubuntu 23.04,Nginx 提示
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
和sudo nginx -t
:
nginx: [emerg] open() "/etc/nginx/modules-enabled/50-mod-http-passenger.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:3
但是,我尝试从系统中完全删除 Nginx,然后尝试安装它时:
$ sudo apt install nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
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-extras : Depends: perlapi-5.18.2 but it is not installable
Depends: libgeoip1 but it is not installable
Depends: liblua5.1-0 but it is not installable
Depends: libperl5.18 (>= 5.18.2) but it is not installable
Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
Recommends: passenger (< 6.0.3) but 1:6.0.18-1~bionic1 is to be installed
E: Unable to correct problems, you have held broken packages.
什么都不再起作用了......