相关疑难解决方法(0)

添加 PPA 后如何解决未满足的依赖项?

有时,当我安装东西时,我会收到如下错误:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

package-management apt ppa dependencies software-installation

617
推荐指数
10
解决办法
119万
查看次数

由于 debconf 无法更新 nginx

我在 14.04.5 LTS 上。运行正常的 apt-get 升级时出现此错误:

Setting up nginx-common (1.10.1-3+trusty1) ...
dpkg: error processing package nginx-common (--configure):  
 subprocess installed post-installation script returned error exit status 1
Run Code Online (Sandbox Code Playgroud)

我已经省略了由此引起的所有后续错误,“尚未配置包 nginx-common。”等。

我按照这个答案中的过程来调试它.postinst,它永远不会超出第 3 行:. /usr/share/debconf/confmodule– 这就是返回1.

我已经尝试过这个解决方案,但没有帮助,debconf 绝对可以访问。而这些(错误仍然存​​在)。据我所知,我在任何包含的 conf 文件中都没有 ipv6 监听指令。

我不知道如何调试 debconf 以查看它失败的原因。有谁知道我接下来应该尝试什么?


编辑:新的更新,他们安装,但最后我得到这个错误:

Setting up nginx-full (1.10.1-3+trusty2) ...
initctl: invalid command: upgrade
Try `initctl --help' for more information.
invoke-rc.d: initscript nginx, action "upgrade" failed.
Run Code Online (Sandbox Code Playgroud)

不确定我是否应该标记为已解决。

apt dpkg nginx debconf 14.04

5
推荐指数
3
解决办法
3138
查看次数