dpkg-deb : 오류 : 하위 프로세스 붙여 넣기가 신호 (깨진 파이프) nginx에 의해 종료되었습니다. 0 not upgraded. Need to get 0

소프트웨어 최신 옵션이에 대한 업그레이드를 자동으로 다운로드합니다 nginx. 그러나 설치하는 동안 다음과 같은 오류가 발생합니다.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  nginx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/434 kB of archives.
After this operation, 977 kB of additional disk space will be used.
(Reading database ... 291344 files and directories currently installed.)
Unpacking nginx (from .../nginx_1.4.7-1~precise_amd64.deb) ...
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/

----------------------------------------------------------------------
dpkg: error processing /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb (--unpack):
 trying to overwrite '/etc/logrotate.d/nginx', which is also in package nginx-common 1.4.6-1+precise0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

실제로 해당 파일 /etc/logrotate.d/nginx이이 폴더에 없습니다.



답변

터미널에서 아래 명령을 실행하십시오.

sudo dpkg -P nginx-common
sudo apt-get install -f

위의 nginx-common패키지를 제거 할 때 종속성 문제가 표시되면 nginx-common패키지와 해당 패키지의 종속성 을 제거하십시오 .

sudo apt-get purge nginx*

위 명령을 실행하기 전에 nginx와 함께 제거 될 종속성 패키지를 확인하는 것을 잊지 마십시오.

sudo apt-get purge -s nginx*


답변