1. 确认网络连接正常:在安装CentOS时,确保网络连接正常,可以通过ping命令测试网络连接是否正常。
2. 检查安装源是否可用:CentOS安装程序默认使用网络安装源,如果安装源不可用,可能会导致安装卡住。可以尝试更改安装源为其他可用的源,或使用本地安装源。
3. 检查镜像完整性:如果使用的是ISO镜像安装,则需要验证镜像的完整性,以确保镜像没有损坏。可以使用校验和文件来验证镜像的完整性。
4. 检查硬件兼容性:如果硬件与CentOS 8.3不兼容,也可能会导致安装卡住。可以尝试更换硬件或安装其他版团埋本的CentOS。
5. 检查安全设置:安全设置可能会导致安装塌友蚂卡住,例如防火墙或SELinux。可以尝试禁用这些设置,或配置相应的规则来允许安装程序正常运行。
以上是一些可能的解决方法,如果问题仍然存在,建议查看安装日志以获取更多信息。告戚
首先,我们需要一张CentOS安装盘。然后,需要做三步。
第一部,把安装盘做一个iso文件。颤稿
这需要一点时间,而且命令行不会显示进度。可以通过另一个终端运行
ls -l /opt/
来查看iso文件的制作进度山含。
第二步,配置yum的repo文件。
将/etc/yum.repo.d/文件夹中的.repo文件全部备份一份到别的地方,存着!要是哪天.repo文件出错了也好用这些备份的文件来恢复!
现在来在/etc/yum.repo.d/文件夹下面建立一个local.repo文件,来作为本地源的配置文件。其实可以用CentOS-Medial.repo改一改就能用做local.repo了。
需要改两处:
一处是本地软件库的地址,因为我们的软件库是通过mount命令挂载到/mnt/cdrom/目录下的。所以,local.repo文件中的目录换成file:///mnt/cdrom/
另一处是,enabled=1
第三步,挂载iso文件。
最后就是测试了逗洞笑~~~看看本地源能不能用。
yum list
如果有软件清单显示出来,,,说明,本地yum配置成功。
yum更新源配置局滚神文件:/etc/yum.repos.d/CentOS-Base.repo1. 在修改前先备份该文件
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2. 修改更新源配置文件(CentOS6地址,其桐亏他版本类似)
vim打开配置文件:
vim /etc/yum.repos.d/CentOS-Base.repo
复制以下内容备旅粘贴到配置文件中进行:
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.oschina.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.oschina.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[addons]
name=CentOS-$releasever - Addons
baseurl=http://mirrors.oschina.com/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.oschina.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.oschina.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
最后保存配置文件。
3. 更新yum源配置
yum update
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)