I have yum working with dags and dries, etc, but I have done something to the main repo file that causes yum to error. Can anyone tell me what is wrong with this file? CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-4 - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os baseurl=http://mirror.centos.org/centos/4/os/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #released updates [update] name=CentOS-4 - Updates #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates baseurl=http://mirror.centos.org/centos/4/updates/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #packages used/produced in the build but not released [addons] name=CentOS-4 - Addons #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons baseurl=http://mirror.centos.org/centos/4/addons/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #additional packages that may be useful [extras] name=CentOS-4 - Extras #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras baseurl=http://mirror.centos.org/centos/4/extras/i386/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-4 - Plus #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus baseurl=http://mirror.centos.org/centos/4/centosplus/i386/ gpgcheck=1 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #contrib - packages by Centos Users [contrib] name=CentOS-4 - Contrib #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib baseurl=http://mirror.centos.org/centos/4.2/contrib/i386/ gpgcheck=1 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 By the way, I have just subscribed to this list, and already see that it has it''s share of complainers. I have only used CentOS for a few weeks, but I am enjoying the experience. I tried FC4, but yum would hang each time I tried it, so it has been good to have things work. Good work on this distro! For whatever that is worth from a newbie. TIA ~Lorin
On 3/19/06, Lorin B Pino <ljpino@grundyec.net> wrote:> I have yum working with dags and dries, etc, but I have done something > to the main repo file that causes yum to error. Can anyone tell me what > is wrong with this file?What is the error that yum gives you? -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'''' Benjamin Franklin 1775
Jim Perrin wrote:>On 3/19/06, Lorin B Pino <ljpino@grundyec.net> wrote: > > >>I have yum working with dags and dries, etc, but I have done something >>to the main repo file that causes yum to error. Can anyone tell me what >>is wrong with this file? >> >> > >What is the error that yum gives you? > > >-- >"They that can give up essential liberty to obtain a little temporary >safety deserve neither liberty nor safety'''' >Benjamin Franklin 1775 >_______________________________________________ >CentOS mailing list >CentOS@centos.org >http://lists.centos.org/mailman/listinfo/centos > > >Error: Bad repository file ///etc/yum.repos.d/CentOS-Base.repo. Setting up Update Process Setting up repositories dries 100% |=========================| 951 B 00:00 dag 100% |=========================| 1.1 kB 00:00 kbs-CentOS-Extras 100% |=========================| 951 B 00:00 kbs-CentOS-Misc 100% |=========================| 951 B 00:00 jpackage-rhel 100% |=========================| 951 B 00:00 macromedia 100% |=========================| 951 B 00:00 jpackage-generic 100% |=========================| 951 B 00:00 Everything works, but the repo file provided by CentOS. I am assuming I edited something wrong. I just checked the permissions, and they are the same as the other repo files. Any ideas? Will I get access to any other programs with the CentOS repo, or is everything provided through the others that are working? ~Lorin
On Sun, 2006-03-19 at 19:11 -0600, Lorin B Pino wrote:> Jim Perrin wrote: > > >On 3/19/06, Lorin B Pino <ljpino@grundyec.net> wrote: > > > > > >>I have yum working with dags and dries, etc, but I have done something > >>to the main repo file that causes yum to error. Can anyone tell me what > >>is wrong with this file? > >> > >> > > > >What is the error that yum gives you? > > > > > >-- > >"They that can give up essential liberty to obtain a little temporary > >safety deserve neither liberty nor safety'''' > >Benjamin Franklin 1775 > >_______________________________________________ > >CentOS mailing list > >CentOS@centos.org > >http://lists.centos.org/mailman/listinfo/centos > > > > > > > Error: Bad repository file ///etc/yum.repos.d/CentOS-Base.repo. > Setting up Update Process > Setting up repositories > dries 100% |=========================| 951 B 00:00 > dag 100% |=========================| 1.1 kB 00:00 > kbs-CentOS-Extras 100% |=========================| 951 B 00:00 > kbs-CentOS-Misc 100% |=========================| 951 B 00:00 > jpackage-rhel 100% |=========================| 951 B 00:00 > macromedia 100% |=========================| 951 B 00:00 > jpackage-generic 100% |=========================| 951 B 00:00 > > > Everything works, but the repo file provided by CentOS. I am assuming I > edited something wrong. I just checked the permissions, and they are > the same as the other repo files. Any ideas? Will I get access to any > other programs with the CentOS repo, or is everything provided through > the others that are working?--- you didn''t by some chance edit it with Windows did you? Edit it with another editor? Which editor? Craig
I suggest you try coping the file somewhere else (ie making a backup) and then cutting out everything except for one [..] section from it and seeing which if any of those work/break... Cheers, MaZe. On Sun, 19 Mar 2006, Lorin B Pino wrote:> Craig White wrote: > >> On Sun, 2006-03-19 at 19:11 -0600, Lorin B Pino wrote: >> >>> Jim Perrin wrote: >>> >>> >>>> On 3/19/06, Lorin B Pino <ljpino@grundyec.net> wrote: >>>> >>>> >>>> >>>>> I have yum working with dags and dries, etc, but I have done something >>>>> to the main repo file that causes yum to error. Can anyone tell me what >>>>> is wrong with this file? >>>>> >>>>> >>>> What is the error that yum gives you? >>>> >>>> >>>> -- >>>> "They that can give up essential liberty to obtain a little temporary >>>> safety deserve neither liberty nor safety'''' >>>> Benjamin Franklin 1775 >>>> _______________________________________________ >>>> CentOS mailing list >>>> CentOS@centos.org >>>> http://lists.centos.org/mailman/listinfo/centos >>>> >>>> >>>> >>>> >>> Error: Bad repository file ///etc/yum.repos.d/CentOS-Base.repo. >>> Setting up Update Process >>> Setting up repositories >>> dries 100% |=========================| 951 B 00:00 >>> dag 100% |=========================| 1.1 kB 00:00 >>> kbs-CentOS-Extras 100% |=========================| 951 B 00:00 >>> kbs-CentOS-Misc 100% |=========================| 951 B 00:00 >>> jpackage-rhel 100% |=========================| 951 B 00:00 >>> macromedia 100% |=========================| 951 B 00:00 >>> jpackage-generic 100% |=========================| 951 B 00:00 >>> >>> >>> Everything works, but the repo file provided by CentOS. I am assuming I >>> edited something wrong. I just checked the permissions, and they are the >>> same as the other repo files. Any ideas? Will I get access to any other >>> programs with the CentOS repo, or is everything provided through the >>> others that are working? >>> >> --- >> you didn''t by some chance edit it with Windows did you? >> >> Edit it with another editor? Which editor? >> >> Craig >> >> _______________________________________________ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> >> > No! I am transferring from Suse 9.2, and have not used windows for a year > and a half. I found Windows ME (Multidysfunctional Edition) to be a great > reason to try something else! From console(after su and password), I ran > nautilus. Accessed the file from nautilus, and edited it with gedit. If > this is a problem, I may have to overcome my phobias and learn to edit things > direct from console. > ~Lorin > _______________________________________________ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos >
Craig White wrote:>On Sun, 2006-03-19 at 19:11 -0600, Lorin B Pino wrote: > > >>Jim Perrin wrote: >> >> >> >>>On 3/19/06, Lorin B Pino <ljpino@grundyec.net> wrote: >>> >>> >>> >>> >>>>I have yum working with dags and dries, etc, but I have done something >>>>to the main repo file that causes yum to error. Can anyone tell me what >>>>is wrong with this file? >>>> >>>> >>>> >>>> >>>What is the error that yum gives you? >>> >>> >>>-- >>>"They that can give up essential liberty to obtain a little temporary >>>safety deserve neither liberty nor safety'''' >>>Benjamin Franklin 1775 >>>_______________________________________________ >>>CentOS mailing list >>>CentOS@centos.org >>>http://lists.centos.org/mailman/listinfo/centos >>> >>> >>> >>> >>> >>Error: Bad repository file ///etc/yum.repos.d/CentOS-Base.repo. >>Setting up Update Process >>Setting up repositories >>dries 100% |=========================| 951 B 00:00 >>dag 100% |=========================| 1.1 kB 00:00 >>kbs-CentOS-Extras 100% |=========================| 951 B 00:00 >>kbs-CentOS-Misc 100% |=========================| 951 B 00:00 >>jpackage-rhel 100% |=========================| 951 B 00:00 >>macromedia 100% |=========================| 951 B 00:00 >>jpackage-generic 100% |=========================| 951 B 00:00 >> >> >>Everything works, but the repo file provided by CentOS. I am assuming I >>edited something wrong. I just checked the permissions, and they are >>the same as the other repo files. Any ideas? Will I get access to any >>other programs with the CentOS repo, or is everything provided through >>the others that are working? >> >> >--- >you didn''t by some chance edit it with Windows did you? > >Edit it with another editor? Which editor? > >Craig > >_______________________________________________ >CentOS mailing list >CentOS@centos.org >http://lists.centos.org/mailman/listinfo/centos > > >No! I am transferring from Suse 9.2, and have not used windows for a year and a half. I found Windows ME (Multidysfunctional Edition) to be a great reason to try something else! From console(after su and password), I ran nautilus. Accessed the file from nautilus, and edited it with gedit. If this is a problem, I may have to overcome my phobias and learn to edit things direct from console. ~Lorin
On Mon, 2006-03-20 at 02:43 +0100, Maciej ?enczykowski wrote:> I suggest you try coping the file somewhere else (ie making a backup) and > then cutting out everything except for one [..] section from it and seeing > which if any of those work/break... > > Cheers, > MaZe. > > > On Sun, 19 Mar 2006, Lorin B Pino wrote: > > > Craig White wrote: > > > >> On Sun, 2006-03-19 at 19:11 -0600, Lorin B Pino wrote: > >> > >>> Jim Perrin wrote: > >>> > >>> > >>>> On 3/19/06, Lorin B Pino <ljpino@grundyec.net> wrote: > >>>> > >>>> > >>>> > >>>>> I have yum working with dags and dries, etc, but I have done something > >>>>> to the main repo file that causes yum to error. Can anyone tell me what > >>>>> is wrong with this file? > >>>>> > >>>>> > >>>> What is the error that yum gives you? > >>>><snip sigs and yum output>> >> --- > >> you didn''t by some chance edit it with Windows did you? > >> > >> Edit it with another editor? Which editor? > >> > >> Craig > >><snip sigs and "no I didn''t edit...>To eliminate editor concerns, may I suggest an "od -c" of the files? If your line endings of other than "\n" you have a problem. Otherwise not likely. Also, see if you see unexpected whitespace embedded or at the end of something. Lastly, "man -k yum" and man the docs listed there. Something might jump out at you that makes you go "hmmmm...." GL, HTH Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.centos.org/pipermail/centos/attachments/20060320/3b7f7b3b/attachment.bin
On Mon, 2006-03-20 at 08:01 -0500, William L. Maltby wrote:> <snip>> To eliminate editor concerns, may I suggest an "od -c" of the files? If > your line endings of other than "\n" you have a problem. Otherwise not > likely. Also, see if you see unexpected whitespace embedded or at the > end of something. > > Lastly, "man -k yum" and man the docs listed there. Something might jump > out at you that makes you go "hmmmm...." > <snip sig>OOPS! Sorry to reply to myself. Forgot that not everyone has run makewhatis. Needed for "man -k yum" to work. "man makewhatis" for details. Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.centos.org/pipermail/centos/attachments/20060320/f6bab9d9/attachment.bin