VPS侦探论坛

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

ubuntu20.04 离线安装报错

[复制链接]
发表于 2022-6-26 20:56:25 | 显示全部楼层 |阅读模式


只有mysql安装成功
找了方法挂了本地光盘,然后还做了一个本地源(另一个虚拟机通过外网一键安装lnmp的依赖包全部拿过来)

然后挂了盘,也加了本地源。
执行
apt-get update  
apt-get dist-upgrade --allow-unauthenticated
然后就进入了lnmp目录 按照上面说的执行
CheckMirror=n ./install.sh lnmp
执行到最后结果就跟第一个图一样了。
安装的日志文件,已经压缩上传到附件

本帖子中包含更多资源

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

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-6-27 12:19:55 | 显示全部楼层


[quote[WARNING: The following packages cannot be authenticated!
  debian-archive-keyring
E: There were unauthenticated packages and -y was used without --allow-unauthenticated[/quote]
首先你系统源设置上就有问题,本地源都要加上[trusted=yes]  如果要加--allow-unauthenticated的方法,需要去修改安装脚本中所有apt-get install 的代码
另外ubuntu的光盘里面的文件根本就不全无法满足全部依赖包的安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-6-27 12:23:53 | 显示全部楼层

licess 发表于 2022-6-27 12:19
[quote[WARNING: The following packages cannot be authenticated!
  debian-archive-keyring
E: There we ...

那我试试加上[trusted=yes]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-6-27 12:25:22 | 显示全部楼层



licess 发表于 2022-6-27 12:19
[quote[WARNING: The following packages cannot be authenticated!
  debian-archive-keyring
E: There we ...

就是想到了这点所以我才用另一个镜像先装一次环境然后把var下面的依赖全部拉出来,放到内网镜像里面做本地源,但是没有加上[trusted=yes]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-20 13:49 , Processed in 0.026554 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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