dpkg-deb: error: सबप्रोसेस पेस्ट को सिग्नल (ब्रोकन पाइप) नेगनेक्स द्वारा मार दिया गया था


21

सॉफ़्टवेयर अप-टू-डेट विकल्प स्वचालित रूप से अपग्रेड को डाउनलोड करता है 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इस फोल्डर में मौजूद नहीं है।

जवाबों:


38

अपने टर्मिनल पर नीचे दिए गए कमांड चलाएं,

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*

sudo apt-get purge -s nginx*अपने प्रश्न के आउटपुट पोस्ट करें ।
— अविनाश राज

मैं पूरे nginx purged और इसे फिर से स्थापित किया गया था। वास्तव में यह मेरी मदद करता है।
— zay7sev

हां, यही मैं कहना चाह रहा हूं।
— अविनाश राज

यदि आपको यह WSL पर मिलता है (विंडोज़ सब-सिस्टम ubuntu), व्यवस्थापक अधिकारों के साथ बैश को पुनरारंभ करें, और इसे ठीक करना चाहिए।
— निक-एस
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.