系统:CentOS 8.4 配置Yum后,如图:
[root@localhost ~]# yum makecache
报错Errors during downloading metadatafor repository 'appstream' ,如图:
此原因为路径不对,识别不到.所以必须写到/mnt/AppStream/.
修改Yum源配置,如图:
再次yum makecache
[root@localhost ~]# yummakecache
测试结果OK,但当[root@localhost~]# yum install libnsl.so.1 执行结果失败
原因为CentOS8.4的Yum源有两个,BaseOS和AppStream,而此前只配置了AppStream.
修改Yum源配置,执行OK.
再次[root@localhost ~]# yum installlibnsl.so.1 执行OK.