在做sudo apt-get upgrade的时候,我已经看了好几周甚至更多的时间了,但是我没有注意到它,因为我已经几个月没有使用这个应用程序exercism了。
Illegal option -d
Usage: install [<option>...] [<path>]
Install exercism client to <path>. Default:但是现在它变得非常烦人,因为它弹劾我安装PostgreSQL9.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告诉我现在什么命令失败了吗?上面写着“非法选择-d"..。但这还不足以找到问题所在。
发布于 2017-05-15 10:17:20
在日志中,明确引用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安装得很好,没有任何错误消息。
https://unix.stackexchange.com/questions/365135
复制相似问题