Local Repository FAILED

Issues related to applications and software problems and general support
Post Reply
gharib.imam
Posts: 1
Joined: 2019/12/28 12:41:32

Local Repository FAILED

Post by gharib.imam » 2019/12/28 12:48:12

Hello,
I'm trying to create a local repo on my VM, I mounted the CD under /mnt and this is my local.repo file

Code: Select all

[localrepo]
name= local repo for centOS 8
baseur=file://mnt
enabled=1
gpgcheck=0
but unfortunately, I get this error

Code: Select all

Local Repo for RHEL8                              0.0  B/s |   0  B     00:00    
Error: Failed to synchronize cache for repo 'LocalRepo'


I tried to clean dnf cache and run dnf clean all but still the same problem.

User avatar
TrevorH
Forum Moderator
Posts: 27720
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Local Repository FAILED

Post by TrevorH » 2019/12/28 12:59:58

You have typos all over your localrepo.repo file. First it is baseurl= not baseur= then there is one too few /'s in file:// and 3rd, the path should be /mnt/BaseOS not just /mnt.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”