apt-get damage repaired

When using apt-get or dpkg the installation package, while similar to the following error:

dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
python3
python3-apt
python3-dbus
lsb-release
ssh-import-id


1. to under / var / lib / dpkg / info directory, delete these names package for the beginning of the file
, for example:
cd / var / lib / dpkg / info
RM Python *
RM lsb *
RM * SSH


2. Execute the command to repair the damaged system relies on
sudo apt-get -f install

 

Guess you like

Origin www.cnblogs.com/maluscalc/p/11116689.html