Home > Backend Development > PHP Tutorial > How to solve dpkg: error processing install-info

How to solve dpkg: error processing install-info

WBOY
Release: 2016-08-08 09:28:27
Original
1326 people have browsed it
正在设置 install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: CLASS_PATH: command not found
dpkg: error processing package install-info (--configure):
 子进程 已安装 post-installation 脚本 返回了错误号 127
E: Sub-process /usr/bin/dpkg returned an error code (1)
Copy after login

Solution:

1. Rename the info folder: mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/

2. Create a new one info folder : mkdir /var/lib/dpkg/info/

3.apt-get update: apt-get update

4. Reinstall : apt-get -f install

5. After performing the previous step, some files will be generated in the new info folder. Now move all these files to the info_old folder: mv /var/lib/dpkg/info /* /var/lib/dpkg/info_old/

6. Delete your newly created info folder: rm -rf /var/lib/dpkg/info

7. Change the info_old folder back to info : mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info/

8. Reinstall the software that needs to be installed

The above introduces how to solve dpkg: error processing install-info, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template