Quote:
Originally Posted by sjkline
[root@localhost ~]# echo 'protect=1' >> /etc/yum.repos.d/yellowdog-updates.repo
Config Error: File contains no section headers.
|
I strongly suspect you typed ">" instead of ">>" and overwrote the file rather than appending to it. If I'm right, you'll see "1" if you run:
wc -l /etc/yum.repos.d/yellowdog-updates.repo
If so, then you'll need to recover that file. If you can, get it from another YDL user/site; if not check if it's part of a package with:
rpm -qf /etc/yum.repos.d/yellowdog-updates.repo
Good luck,
NVRAM