CentOS 8离线内网安装失败
CentOS 8内网安装,把用的是lnmp1.8-full.tar.gz和镜像CentOS-8-x86_64-1905-dvd1.iso,修改 vim etc/yum.repos.d/CentOS-Media.repo 保存后
name=CentOS-$releasever - Media
baseurl=file:///mnt/dvd/
gpgcheck=1
enabled=1
gpgkey=file:///mnt/dvd/RPM-GPG-KEY-CentOS-8
name=LocalRepository-BaseOS
baseurl=file:///mnt/dvd/BaseOS
gpgcheck=1
enabled=1
name=LocalRepository-AppSteam
baseurl=file:///mnt/dvd/AppStream
enbled=1
gpgecheck=0
安装到测试yum处,
# yum clean all
Failed to set locale, defaulting to C
12 files removed
# yum makecache
Failed to set locale, defaulting to C
# 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=
报错,这个咋弄,求助
上面编码问题改好了,后面安装
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。 #name=CentOS-$releasever - Media
#baseurl=file:///mnt/dvd/
#gpgcheck=1
#enabled=1
#gpgkey=file:///mnt/dvd/RPM-GPG-KEY-CentOS-8
name=LocalRepository_BaseOS
baseurl=file:///mnt/dvd/BaseOS
gpgcheck=0
enabled=1
name=LocalRepository_AppSteam
baseurl=file:///mnt/dvd/AppStream
enbled=1
gpgecheck=0 你系统上都没有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 上搜索:离线安装
按反馈必读要求上传完整日志,要不我们无法判断什么原因
页:
[1]