Sub-process /usr/bin/dpkg returned an error code (1) error resolution

Sub-process /usr/bin/dpkg returned an error code (1) error resolution

Foreword:
When installing software with apt-get, something similar to:

install-info: No dir file specified; try --help for more information.dpkg:
处理 gettext (--configure)时出错: 子进程 post-installation script 返回了错误
号 1 在处理时有错误发生:findutils E: Sub-process /usr/bin/dpkg returned an
 error code (1)
  •  

The solution is as follows:

1. Now rename the info folder

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old 
  •  

2. Create a new info folder

 sudo mkdir /var/lib/dpkg/info 
  •  

3. Update the source as usual

sudo apt-get update
sudoapt-get -f install 
  •  

4. After performing the previous step, some files will be generated in the new info folder, now all these files are moved to the info_old folder

sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old 
  •  

5. Delete your newly created info folder

sudo rm -rf /var/lib/dpkg/info 
  •  

6. Change the previous info folder back to the name

 sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info 
  •  

At this point, the problem has been solved smoothly! 

Guess you like

Origin blog.csdn.net/u012798683/article/details/113239155