• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Fix E: Sub-process /usr/bin/dpkg returned an error code (1)

By Abhishek Ghosh February 11, 2017 7:52 pm Updated on February 11, 2017

Fix E: Sub-process /usr/bin/dpkg returned an error code (1)

Advertisement

There are various types of odd errors on servers which actually do not have any common way of fix. Here is One Fix For E: Sub-process /usr/bin/dpkg returned an error code (1) Error Which Makes APT To Fail to Update Packages on Ubuntu 16.04. Inventing the way of error probably helps in fixing similar types of errors. Please carefully read the next each and every sentences.

 

Before You Proceed For Our Way To Fix E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Before proceeding to use our way to fix, you must try the common ways described on standard Q&A websites like StackExchange, AskUbuntu. Our way possibly last way and better to be used as last resort.

 

Fix E: Sub-process /usr/bin/dpkg returned an error code (1)

 

I am describing what exactly happened in our case. I can apt update, then apt upgrade. In the middle of running upgrade the things got broken and started to throw odd errors which has nothing to do with real problem. It was impossible to update, upgrade, install or remove packages in any method we normally know (except brutally deleting everything).

Advertisement

---

After many trial and error, I understood that the problem is either with the sources as first source of error :

Vim
1
2
/etc/apt/sources.list.d
/etc/apt/sources.list

I went to /etc/apt/sources.list.d and ran ls, deleted some files with .save extension, some unnecessary. I opened /etc/apt/sources.list and commented which are not need or do not have GPG key.

Thereafter I went to /var/lib/dpkg/info and ran ls :

Vim
1
2
cd /var/lib/dpkg/info
ls

Then I brutally deleted all the .postinst files :

Vim
1
rm *.postinst

Thereafter I ran :

Vim
1
sudo apt-get clean

Thereafter exactly what I needed to perform :

Vim
1
2
sudo apt update
sudo apt upgrade

I faced no trouble after running the above commands. I really do not know how exactly the commands worked but they worked for me. I hope this guide will be useful to someone in condition like that of me. What I saw from various Q&A sites that experts give importance to the below line on screenshot :

Fix E Sub-process -usr-bin-dpkg returned an error code-1

They are :

nsserv: warning: script ‘wide-dhcpv6-client’ missing LSB tags and overrides
insserv: warning: script ‘bind9’ missing LSB tags and overrides
insserv: There is a loop between service nginx and bind9 if stopped
insserv: loop involving service bind9 at depth 2
insserv: loop involving service nginx at depth 1
insserv: loop involving service syslog-ng at depth 4
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header

But, basically their methods not worked for me. Lot of peoples searches how to fix update-rc.d: error: insserv rejected the script header error. I guess my case will help them.

Tagged With E: Sub-process /usr/bin/dpkg returned an error code (1) , Sub-process /usr/bin/dpkg returned an error code (1) , e: sub-process returned an error code , what is E: Sub-process /usr/bin/dpkg returned an error code (1) , sub-process /usr/bin/dpkg return with error (1) , sub process usr bin dpkg returned an error code 1 , sub process returned error fix parrot os , sub peocess /usr/bin/dpkg returned an error code (1) , resolve /usr/bin/dpkg , parrot dpkg error
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Fix E: Sub-process /usr/bin/dpkg returned an error code (1)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Fix : openssh-server E: Sub-process /usr/bin/dpkg returned an error

    Here is how to fix openssh-server E: Sub-process /usr/bin/dpkg returned an error. Do not close active SSH session with this error.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy