ubuntu install package Error: subprocess installed post-installation script returned error exit status 10

foreword

When using the Ubuntu environment to sudo apt-get installinstall package, an error will be reported

XXX is the installation package

copy code
dpkg:error processing package XXX (--configure):
subprocess installed post-installation script returned error exit status 10

The reason for the error is actually a permission problem

Solution:

copy code
# If this error has already occurred, you need to delete these leftover packages that you just downloaded and download them again
sudo rm /var/lib/dpkg/info/XXX*

sudo dpkg --configure -D 777 XXX

# Repairing installer dependencies
sudo apt-get  -f install

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *