This question already has an answer here:
apt install does not work, for example:
$ apt install uget Reading package lists... Done Building dependency tree Reading state information... Done E: The package intellij-idea-ultimate needs to be reinstalled, but I can't find an archive for it.
This problem arose after I installed
intellij idea using this
.deb file from Launchpad.