VPS侦探论坛

 找回密码
 注册
查看: 2905|回复: 3

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

[复制链接]
发表于 2019-4-29 08:31:36 | 显示全部楼层 |阅读模式

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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 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: 信息下面的软件包全部修复安装一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-4-29 15:00:52 | 显示全部楼层

已经解决,原因如下:安装系统的时候我选择了最小安装,导致安装lnmp的时候一直失败,重新安装ubuntu,不要选择最小安装,然后安装lnmp1.6是没有问题的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-4-29 18:02:01 | 显示全部楼层



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

这个和最新安装是没关系的,本地虚拟机测试,我们都是最小化安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 21:17 , Processed in 0.032779 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表