VPS侦探论坛

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

CentOS 8离线内网安装失败

[复制链接]
发表于 2022-4-8 14:45:11 | 显示全部楼层 |阅读模式

CentOS 8内网安装,把用的是lnmp1.8-full.tar.gz和镜像CentOS-8-x86_64-1905-dvd1.iso,
修改 vim
etc/yum.repos.d/CentOS-Media.repo 保存后[local-media]
name=CentOS-$releasever - Media
baseurl=file:///mnt/dvd/
gpgcheck=1
enabled=1
gpgkey=file:///mnt/dvd/RPM-GPG-KEY-CentOS-8

[localRepo-BaseOS]
name=LocalRepository-BaseOS
baseurl=file:///mnt/dvd/BaseOS
gpgcheck=1
enabled=1

[LocalRepo-AppStream]
name=LocalRepository-AppSteam
baseurl=file:///mnt/dvd/AppStream
enbled=1
gpgecheck=0

安装到测试yum处,
[root@sudiankj home]# yum clean all
Failed to set locale, defaulting to C
12 files removed
[root@sudiankj home]# yum makecache
Failed to set locale, defaulting to C



[root@sudiankj home]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=



报错,这个咋弄,求助
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-4-8 15:07:32 | 显示全部楼层


上面编码问题改好了,后面安装
Error: MySQL install failed.
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum

一直提示
同步仓库 'local-media' 缓存失败,忽略这个 repo。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-4-8 16:53:20 | 显示全部楼层

#name=CentOS-$releasever - Media
#baseurl=file:///mnt/dvd/
#gpgcheck=1
#enabled=1
#gpgkey=file:///mnt/dvd/RPM-GPG-KEY-CentOS-8

[localRepo_BaseOS]
name=LocalRepository_BaseOS
baseurl=file:///mnt/dvd/BaseOS
gpgcheck=0
enabled=1

[LocalRepo_AppStream]
name=LocalRepository_AppSteam
baseurl=file:///mnt/dvd/AppStream
enbled=1
gpgecheck=0
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-4-8 18:47:37 | 显示全部楼层



你系统上都没有zh_CN的语言包,但是却设置了中文,肯定就报错,yum install -y langpacks-zh_CN
或修改 /etc/locale.conf 将里面的内容更改成  LANG=en_US.UTF-8 保存
关掉窗口重新ssh登录

PS:设成中文基本上没实际用途

另外你贴出的CentOS-Media.repo 是有问题,为啥要加上centos7格式的配置文件,具体可以 https://www.vpser.net 上搜索:离线安装

按反馈必读要求上传完整日志,要不我们无法判断什么原因
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2022-5-18 00:55 , Processed in 0.017959 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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