Looks like there was issue with dpkg database. Anyway this is a serious bug in gnome software as no error message is given and no graphical way to recover from the situation.
$ sudo apt install /tmp/mozilla_vranki0/code_1.26.1-1534444688_amd64.deb
[sudo] password for vranki:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Update:
Looks like there was issue with dpkg database. Anyway this is a serious bug in gnome software as no error message is given and no graphical way to recover from the situation.
$ sudo apt install /tmp/mozilla_ vranki0/ code_1. 26.1-1534444688 _amd64. deb
[sudo] password for vranki:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.