Fix "E sub-process /usr/bin/dpkg returned an error code (1)" error

Today when I try to install NodeJS a new error occurs. I saw a variety of videos on YouTube to solve this problem and also searched Google, but the solution was not found. I am going to tell its solution in this article.


dpkg error


To fix this error just follow my steps:

┌──(mrdev㉿kali)-[~/]
└─$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_silet
Now make a new directory:

┌──(mrdev㉿kali)-[~/]
└─$ sudo mkdir /var/lib/dpkg/info
Now update your system:

┌──(mrdev㉿kali)-[~/]
└─$ sudo apt-get update
Now move all files in info directory:

┌──(mrdev㉿kali)-[~/]
└─$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_silet
Now remove info directory:
┌──(mrdev㉿kali)-[~/]
└─$ sudo rm -rf /var/lib/dpkg/info/
Now move again all files:
┌──(mrdev㉿kali)-[~/]
└─$ sudo mv /var/lib/dpkg/info_silent/ /var/lib/dpkg/info

In this way, you can solve this error.

Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Ok, Go it!