E: Sub-process /usr/bin/dpkg returned an error code (1)
If you are installing any package in Ubuntu or Debian and it gives above error
Solution : 1
Run following command in terminal
Solution : 2
Run following command in terminal
If you are installing any package in Ubuntu or Debian and it gives above error
Solution : 1
Run following command in terminal
sudo dpkg --configure -a
Now try to install your package again.Solution : 2
Run following command in terminal
sudo apt-get -f install
Now try to install your package again.
Solution : 3
Open file /var/lib/dpkg/status and remove the whole block of corrupted packages.
Now try to install your package again.