在一个新的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 |
重庆思庄Linux技术分享-配置yum本地源后报错:Bad id for repo
最新推荐文章于 2024-07-09 19:37:11 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)