当我使用apt-get安装命令时,我会出错,有人能帮忙吗?
~ 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)发布于 2017-01-03 16:09:40
移除ubuntu-make:
sudo apt-get remove --purge --auto-remove ubuntu-make
显示可用的python3 3- the完整版本:
sudo apt-cache showpkg python3-argcomplete
安装正确的python3 3- the完整版本(在我的例子中):
sudo apt-get install python3-argcomplete=0.8.1-1ubuntu2
重新安装ubuntu-make:
sudo apt-get install ubuntu-make
发布于 2016-11-09 14:33:03
我知道这个问题是在2012年提出的,但是在2016年Ubuntu16.04会遇到同样的错误信息,就像我一样。
这是ubuntu制造的第350期。
最可能的问题是,您使用postgres,它将python3-argcomplete从0.8.1升级到1.0.0,与ubuntu-make还不兼容。
解决方案要么是禁用ppa,要么告诉apt不要使用postgres版本的python3-argcomplete,方法是创建一个像下面这样的首选项文件:
$ 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然后重新安装ubuntu-make并确认它是0.8.1版本(不是1.0.0版本)。
发布于 2016-10-12 17:21:55
尝试‘apt-文件寄存器-python-arg完备3’,以查找其他包提供了安装命令遇到的缺少的包。在找到另一个提供该文件的包后,请安装它,然后再次尝试此安装。
对不起,我正在用我的手机,它不让我滚动看到调试输出。
https://askubuntu.com/questions/836180
复制相似问题