While installing some software using linux terminal, we may encounter error like this
Sub-process /usr/bin/dpkg returned an error code (1)
I got this error while installing a library file “libpam0g:i386”.
Just see the 4th line of this error.
dpkg: error processing /var/cache/apt/archives/libpam0g_1.1.3-7ubuntu3_i386.deb (–unpack):
The error can be rectified by using the command
sudo dpkg -i –force-overwrite /var/cache/apt/archives/libpam0g_1.1.3-7ubuntu3_i386.deb