I used terminal window to install IntelliJ at first, which happened without disruption.When I tried for Pycharm instead, it didn't happen. Further I tried it with Ubuntu Software center, and it showed me this message:
Unable to install pycharm CE: snap "pycharm-community" has install-snap change in progress.