重庆思庄Oracle、Redhat认证学习论坛
标题:
配置yum本地源后报错:Bad id for repo
[打印本页]
作者:
刘泽宇
时间:
2023-4-3 21:26
标题:
配置yum本地源后报错:Bad id for repo
在一个新的Linux系统中配置yum源时,yum makecache报错
Bad id for repo: yum, byte = 6
There are no enabled repos.
检查yum源的配置信息,发现[]里面的内容存在空格
[CentOS 7.9]
name=CentOS79
baseurl=file:///mnt/
enable=1
gpgcheck=0
进行修改:
[CentOS7.9]
name=CentOS79
baseurl=file:///mnt/
enable=1
gpgcheck=0
再次makecache正常
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
yum resource | 3.4 kB 00:00:00
(1/4): yumresource/ group_gz | 153 kB 00:00:00
(2/4): yumresource / filelists_db | 3.3 MB 00:00:00
(3/4): yumresource/ primary_db | 3.3 MB 00:00:00
(4/4): yumresource /other_db | 1.3 MB 00:00:00
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/)
Powered by Discuz! X3.2