+3 votes
in Operating Systems by (59.4k points)

I am trying to install pycharm-community on my machine using umake. It downloads and partially installs, but in the end, it fails with the following error message. I also tried to install using PPA, but got the same error. How can I fix it?

Setting up ubuntu-make (17.03~xenial1) ...
/var/lib/dpkg/info/ubuntu-make.postinst: 6: /var/lib/dpkg/info/ubuntu-make.postinst: register-python-argcomplete3: not found
dpkg: error processing package ubuntu-make (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

1 Answer

+1 vote
by (71.8k points)
selected by
Best answer

If you read the error message carefully, you will find that the issue is with python-argcomplete3

 /var/lib/dpkg/info/ubuntu-make.postinst: register-python-argcomplete3

You don't have correct version of python-argcomplete3. You need to reinstall it. That's how I fixed this issue. The steps are as follows:

  1. Remove the ubuntu-make:  sudo apt-get remove --purge --auto-remove ubuntu-make
  2. Show the available python3-argcomplete versions:  sudo apt-cache showpkg python3-argcomplete
  3. Install the correct python3-argcomplete version:  sudo apt-get install python3-argcomplete=0.8.1-1ubuntu2
  4. Reinstall ubuntu-make: sudo apt-get install ubuntu-make