这样做sudo apt-get upgrade
已经有几个星期或更长时间了,我已经看到了此消息,但是我没有注意它,因为我已经exercism
几个月没有使用这个程序了。
Illegal option -d
Usage: install [<option>...] [<path>]
Install exercism client to <path>. Default:
但是现在它真的很烦人,因为它会弹each我安装postgresql-9.6
当我执行sudo apt-get upgrade
这里是我的日志。好像执行install
命令绕过了其他命令。嗯,这就是我理解的方式。
Setting up postgresql-common (182.pgdg14.04+1) ...
Illegal option -d Usage: install [<option>...] [<path>]
Install exercism client to <path>. Default:
* determined interactively if possible
* /usr/local/bin if run as root
* /usr/local/bin if it is writable
* /home/code/bin otherwise
Options:
-v <version> Install client version <version>. Default: v2.4.0
-o <operating system> Install client for <operating system>. Default: linux
-a <architecture> Install client for <architecture>. Default: 64bit
dpkg: error processing package postgresql-common (--configure): subprocess installed post-installation script returned error exit status 64 dpkg: dependency problems prevent configuration of postgresql-9.6: postgresql-9.6 depends on postgresql-common (>= 171~); however: Package postgresql-common is not configured yet.
dpkg: error processing package postgresql-9.6 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of postgresql: postgresql depends on postgresql-9.6; however: Package postgresql-9.6 is not configured yet.
我该如何确定apt-get update调用的哪个命令导致了问题,从而确定系统中哪些执行已损坏。这就是我的假设。
不幸的是我没有安装exercism
带checkinstall
,所以我不能这样做dpkg -r exercism
,从我的系统安全地将其删除。真可惜,我通常都会这么做...
有没有办法让apt-get指示我现在什么命令失败了?它仅显示“非法选项-d” ...但这不足以查找问题。
从日志中,显式引用install
:
Illegal option -d
Usage: install [<option>...] [<path>]
我解释说这install
很奇怪。
为了知道确实调用了哪个可执行文件,我在shell中问:
which install
结果是它不是/usr/bin/install
被调用,而是被调用/usr/local/bin/install
。
我改名/usr/local/bin/install
为/usr/local/bin/install_exercism
,一切顺利。
which install
现在通常指 /usr/bin/install
并且Postgresql可以很好地安装,没有任何错误消息。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句