Как исправить пакет nginx?

Я установил nginx.

dpkg -l nginx
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend 
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  nginx          1.6.2-5      all          small, powerful, scalable web/pro

Каждый раз, когда я иду, чтобы установить другой пакет, отображается информация об ошибке.

dpkg: warning: files list file for package 'nginx-full' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'nginx-common' missing; assuming package has no files currently installed

Как это исправить, чтобы не допустить повторного отображения информации при установке другого пакета?

2
задан 5 September 2015 в 11:04

2 ответа

Это - ничего серьезного. Переустановите пакеты:

sudo apt-get install --reinstall nginx-full nginx-common

Пример

После удаления /var/lib/dpkg/info/mc.list через

sudo rm sudo rm /var/lib/dpkg/info/mc.list

Я получаю followning

% sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  gimp-gmic numix-icon-theme
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 5.130 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ppa.launchpad.net/otto-kesselgulasch/gimp-edge/ubuntu/ vivid/main gimp-gmic amd64 1:1.6.5.2-0v0~ppa~edge [1.828 kB]
Get:2 http://ppa.launchpad.net/numix/ppa/ubuntu/ vivid/main numix-icon-theme all 0.3+524~201509050731~ubuntu15.04.1 [3.302 kB]
Fetched 5.130 kB in 4s (1.172 kB/s)           
dpkg: warning: files list file for package 'mc' missing; assuming package has no files currently installed

Зафиксированный с

sudo apt-get install --reinstall mc
2
ответ дан 5 September 2015 в 21:04
  • 1
    Это работает, но по крайней мере я думаю, что необходимо отбросить часть сессии зазывалы, которая абсолютно не связана. – Gunnar Hjalmarsson 26 November 2016 в 12:07
Şub 06 12:36:40 mapeg systemd[1]: nginx.service: Control process exited, code=exited status=1
Şub 06 12:36:40 mapeg systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Şub 06 12:36:40 mapeg systemd[1]: nginx.service: Unit entered failed state.
Şub 06 12:36:40 mapeg systemd[1]: nginx.service: Failed with result 'exit-code'.
dpkg: error processing package nginx-full (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libssh2-1:amd64 (1.5.0-2ubuntu0.1) ...
Setting up mc-data (3:4.8.15-2) ...
Setting up mc (3:4.8.15-2) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Errors were encountered while processing:
 nginx-full

Я получаю ошибки ....

0
ответ дан 6 February 2020 в 06:37

Другие вопросы по тегам:

Похожие вопросы: