web-dev-qa-db-fra.com

Comment réparer le paquet nginx?

J'ai installé 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

Chaque fois que je vais installer un autre paquet, les informations d'erreur affichées.

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

Comment résoudre ce problème, pour ne pas laisser les informations affichées à nouveau lors de l'installation d'un autre paquet?

2
it_is_a_literature

Ce n'est rien de grave. Réinstallez les packages:

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

Exemple

Après avoir supprimé /var/lib/dpkg/info/mc.list via

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

Je reçois le suivant

% 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

Fixe avec

Sudo apt-get install --reinstall mc
2
A.B.