Vmware下的Linux系统,安装WPS报错:[Errno 256] No more mirrors to try

时间:2023-03-08 20:50:14

最近新装了虚拟环境Vmware下的Linux系统,准备看doc文档发现不能读取,才想起来一起都是重新开始的~没别的~开始安装吧:

1、关虚拟机Linux,添加cdrom镜像ISO文件--开虚拟机---挂在cdrom

mount /dev/cdrom /mnt

2、搭建yum仓库

vim /etc/yum.repos.d/rhel7.repo

[rhel7]

name=rhel7

baseurl=file:///mnt

enabled=1

gpgcheck=0

结束编辑,保存退出

3、yum repolist

[root@svr7 桌面]# yum repolist

已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

rhel7                                                    | 4.1 kB     00:00

(1/2): rhel7/group_gz                                      | 136 kB   00:00

(2/2): rhel7/primary_db                                    | 3.6 MB   00:00

源标识                               源名称                                状态

rhel7                                rhel7.2                               4,620

repolist: 4,620

如上显示,挂在成功~

4、开始安装wps------(软件包网上有很多,需要的可以联系我:ykliuxingtao@sina.com)

# yum -y install wps-office-10.1.0.5672-1.a21.x86_64.rpm

结果~~报错了~~~,反正一坨英文,我只看“依赖关系”和报错信息

依赖包: libpng12.x86_64.0.1.2.50-6.el7 找不到软件包,

去网上搜 ----下载-----在安装----还是报错:[Errno 256] No more mirrors to try

重点来了::

感觉是yum方面出问题了:

1yum clean all

2yum makecache

[root@svr7 桌面]# yum makecache

已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

rhel7                                                    | 4.1 kB     00:00

(1/2): rhel7/filelists_db                                  | 3.2 MB   00:00

(2/2): rhel7/other_db                                      | 1.4 MB   00:00

元数据缓存已建立

 

3、yum update

已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

No packages marked for update

4、再次执行安装WPS

# yum -y install wps-office-10.1.0.5672-1.a21.x86_64.rpm

最后完美解决依赖安装

  “完毕”

以上是个人安装经历,有问题欢迎来共同探讨、总结、分享~~谢谢!