Я использую ubuntu
18.04. я попытался удалить nginx
и удалил каталог /etc/nginx
. Теперь я хочу переустановить nginx
на моем сервере, но я получаю следующую ошибку.
root@localhost:~# apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
nginx is already the newest version (1.14.0-0ubuntu1.2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libnginx-mod-http-geoip : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
libnginx-mod-http-image-filter : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
libnginx-mod-http-xslt-filter : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
libnginx-mod-mail : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
libnginx-mod-stream : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
nginx : Depends: nginx-core (< 1.14.0-0ubuntu1.2.1~) but it is not going to be installed or
nginx-full (< 1.14.0-0ubuntu1.2.1~) but it is not going to be installed or
nginx-light (< 1.14.0-0ubuntu1.2.1~) but it is not going to be installed or
nginx-extras (< 1.14.0-0ubuntu1.2.1~) but it is not going to be installed
Depends: nginx-core (>= 1.14.0-0ubuntu1.2) but it is not going to be installed or
nginx-full (>= 1.14.0-0ubuntu1.2) but it is not going to be installed or
nginx-light (>= 1.14.0-0ubuntu1.2) but it is not going to be installed or
nginx-extras (>= 1.14.0-0ubuntu1.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Я пытался решить эту ошибку, но не смог найти никакого решения. Пожалуйста, помогите мне решить эту ошибку. Большое спасибо.