Can Not Install Software in Linux Error as Dpkg Was Interrupted

How to handle dpkg was interrupted error?

What you need to do is repair DPKG with following command:

sudo dpkg --configure -a 

Hope this helps

ubuntu error when install app E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem

Well, just follow what the command says. Try to run 'sudo dpkg --configure -a'

how to tell dpkg to NOT to download / install a broken source?

You need to define does this package depends on something and do you need it. If not just force to purge it with

aptitude purge oracle-java7-installer

or even

dpkg --force-all --purge oracle-java7-installer

If you need it try to determine why it is broken. Due to your posted error there is broken script in installer. So you'll need to fix it. The simplest way is to unpack it, fix script and repack. After that install should success.

`dpkg --configure -a` hangs

This is a confirmed bug.

https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1621336

A workaround is listed:

https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1621336/comments/4

Adding the workaround from Axel Kämpfe since the links seems to be broken:

  1. Start a rootshell with "sudo -i"
  2. Run echo "bash -c 'service snapd.boot-ok start'" | at now + 4 min
  3. Then run apt install snapd (if it argues about canceled dpkg processes use the dpkg --configure -a. Then wait for at least 4 minutes. The hanging should gone then.

Good luck! :)

/Patrik



Related Topics



Leave a reply



Submit