huanfeifei 发表于 2019-4-29 08:31:36

VirtualBox 安装Ubuntu18.04 安装lnmp1.6失败

VirtualBox 安装Ubuntu18.04 安装lnmp1.6失败 ,日志在附件中,麻烦大神看下,感谢

licess 发表于 2019-4-29 10:39:54

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:
build-essential : Depends: gcc (>= 4:7.2) but it is not going to be installed
                   Depends: g++ (>= 4:7.2) but it is not going to be installed
                   Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Reading package lists...
Building dependency tree...
Reading state information...
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:
gcc : Depends: gcc-7 (>= 7.3.0-12~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
。。。。。。
The following packages have unmet dependencies:
libncurses5-dev : Depends: libtinfo5 (= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is to be installed
                   Depends: libncurses5 (= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is to be installed
                   Depends: libtinfo-dev (= 6.1-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
。。。。。。
The following packages have unmet dependencies:
libssl-dev : Depends: libssl1.1 (= 1.1.0g-2ubuntu4) but 1.1.0g-2ubuntu4.3 is to be installed
E: Unable to correct problems, you have held broken packages.

等等巨多依赖关系错误,有可能之前设置错了系统源或者通过其他方式安装了错误版本的依赖导致的
最简单的方法重装系统,恢复原始正确的状态
或者使用 aptitude install 软件包名 命令将日志中提示 The following packages have unmet dependencies: 信息下面的软件包全部修复安装一下

huanfeifei 发表于 2019-4-29 15:00:52

已经解决,原因如下:安装系统的时候我选择了最小安装,导致安装lnmp的时候一直失败,重新安装ubuntu,不要选择最小安装,然后安装lnmp1.6是没有问题的

licess 发表于 2019-4-29 18:02:01

huanfeifei 发表于 2019-4-29 15:00
已经解决,原因如下:安装系统的时候我选择了最小安装,导致安装lnmp的时候一直失败,重新安装ubuntu,不要 ...

这个和最新安装是没关系的,本地虚拟机测试,我们都是最小化安装
页: [1]
查看完整版本: VirtualBox 安装Ubuntu18.04 安装lnmp1.6失败