正在设置 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)
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.