dpkg: error processing package ubuntu-make (--configure):
Solution 1
Remove the ubuntu-make:
sudo apt-get remove --purge --auto-remove ubuntu-make
Show the available python3-argcomplete versions:
sudo apt-cache showpkg python3-argcomplete
Install the correct python3-argcomplete version (in my case):
sudo apt-get install python3-argcomplete=0.8.1-1ubuntu2
Reinstall ubuntu-make:
sudo apt-get install ubuntu-make
Solution 2
I'm aware this question was asked in 2012, but you can encounter the same error message in 2016 with Ubuntu 16.04, as I did.
This is the ubuntu-make issue #350.
Most probable issue is that you use the postgres ppa which upgraded python3-argcomplete
from 0.8.1 to 1.0.0 wich is not yet compatible with ubuntu-make
.
Solution is either to deactivate the ppa or to tell apt
not to use the postgres version of python3-argcomplete
by creating a preference file like the following one:
$ cat /etc/apt/preferences.d/pgdg.pref
Package: *
Pin: release o=apt.postgresql.org
Pin-Priority: 500
Package: python*
Pin: release o=apt.postgresql.org
Pin-Priority: 400
Then reinstall ubuntu-make
and confirm it's the 0.8.1 version (not the 1.0.0 one).
Solution 3
Try 'apt-file register-python-argcomplete3' to find what other package provides the missing package the install command is stumbling upon. After you find another package providing that file, install it, and try this install again.
Sorry, I'm on my phone and it's not letting me scroll over to see the debug output anymore.
Related videos on Youtube
![sagarr](https://i.stack.imgur.com/koKO1.jpg?s=256&g=1)
Comments
-
sagarr almost 2 years
I'm getting ubuntu-make error whenever I'm using apt-get install command, can some one help?
~ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up ubuntu-make (16.09~trusty1) ... /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: ubuntu-make E: Sub-process /usr/bin/dpkg returned an error code (1)
-
Elder Geek over 7 yearsI'm sorry, but can you edit your answer to clarify what "register-python-argcomplete3" has to do with the question?
-
sagarr over 7 years@kyle-h, I did not install apt-file, but search it here, I tried force reinstall for referred package but no luck, so i finally removed 'ubuntu-make' :( Thanks for your help!
-
Kyle H over 7 yearswhat about if you use the pip python package manager, can you find it there? just looking for that package on Google I don't see a version 3 deb at all. only see 1.5.1
-
Abe Voelker over 7 yearsThis worked for me, thanks! Although since I had already upgraded
python3-argcomplete
and had cleared my apt cache due to running out of space, I had to uninstall it (sudo apt-get remove python3-argcomplete
), then download the old version's .deb manually from here: ftp.ubuntu.com/ubuntu/ubuntu/pool/universe/p/python-argcomplete and install withdpkg -i python3-argcomplete_0.8.1-1ubuntu2_all.deb
. -
cwhisperer over 6 yearssudo apt-get remove --purge --auto-remove ubuntu-make made it for me