CentOS 5 :: Yum Repolist Config Error 'File Contains No Section Headers'
Mar 7, 2010i try to run yum update and now i get this error Config Error: File contains no section headers.
[code]....
i try to run yum update and now i get this error Config Error: File contains no section headers.
[code]....
After install CentOS 5.3, when execute yum update in a terminal, with root I had this error:
yum update
Loaded plugins: fastestmirror
Config Error: File contains no section headers.
file: file://///etc/yum.repos.d/CentOS-Media.repo, line: 17
' #file:///media/cdrom/
'
I think I have something wrong with the repositories but I'm not sure.
I am getting a strange font problem (see attached screenshot) for a user logging in over VNC Server, I am also logged in over VNC however I am no experiancing any problems... This was the case on CentOS 5.3 and on 5.4. I have tried removing the .vnc dir in the users home dir and re running vncserver so that it recreates it, I found this in the logs:
1. (nautilus:14718): Pango-WARNING **: No builtin or dynamically
2.loaded modules were found. Pango will not work correctly.
3.This probably means there was an error in the creation of:
4.'/etc/pango/pango.modules'
5. You should create this file by running pango-querymodules.
6.Fontconfig error: Cannot load default config file
[code]....
I installed VMWare WorkStation 7.x.x . When It started that I have taken "Kernel Header" error and It want to enter path of Kernel. I tried many commands ;
yum -y gcc kernel header
uname -r
2.6.18-238.19.1.el5xen
rpm -qa kernel-devel
kernel-devel-2.6.18-238.19.1.el5
Actually, It uses same kernel but VMWare is not working. I searched about Kernel Headers error when run VMWare on Internet. But I couldn't solve my problem.
Which directly is accessible during the %pre section? I try to use wget to retrieve a file from FTP to /root but after the machine is build, I don't see that file in /root directory.
View 3 Replies View RelatedAnyone able to compile kernel 2.6.38.6 on Slackware 13.37 successfully using the config from testing/2.6.38.4? I was able to get .4 and .5 to compile successfully, but with .6 I get the following after running "make modules".
Code:
WARNING: modpost: Found 11 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
Running "make CONFIG_DEBUG_SECTION_MISMATCH=y 2>&1 > outfile" gives me a bunch of WARNINGS as follows:
Code:
WARNING: vmlinux.o(.text+0xe656a): Section mismatch in reference from the function build_all_zonelists() to the function .meminit.text:setup_zone_pageset.clone.56()
The function build_all_zonelists() references
the function __meminit setup_zone_pageset.clone.56().
This is often because build_all_zonelists lacks a __meminit
annotation or the annotation of setup_zone_pageset.clone.56 is wrong.....
WARNING: drivers/watchdog/nv_tco.o(.devinit.text+0x14): Section mismatch in reference from the function nv_tco_init() to the function .init.text:nv_tco_getdevice()
The function __devinit nv_tco_init() references
a function __init nv_tco_getdevice().
If nv_tco_getdevice is only used by nv_tco_init then
annotate nv_tco_getdevice with a matching annotation.
I tried to run system-config-kickstart when after full installed CentOS 5.3,it report error as following,does anyone face the same problem?
[root@localhost ~]# system-config-kickstart
Loaded plugins: fastestmirror, kernel-module, priorities, protectbase,
: versionlock
[code]....
Yesterday, I think I did something stupid: I removed kernel-headers, gcc, glibc-devel and glibc-headers. My box is a CentOS 5.4 webserver (it has loads of packages installed, but that was done through Virtualmin config, so it's quite coherent all in all). The thing is that now I need to reinstall at least the headers and glibc, but hey! this is what I get :
[Code]...
For security reasons I need to ensure all of my users screensaver is set to come on after 10 minutes of inactivity. My thought was to find the screensaver config file, modify a setting in the file to 10 minutes and change ownership of the file to be root (so the user can't undo my changes either in the file or via the gui). However, I can't find the screensaver config file to do this. I'm running Centos 5.2. Anyone know where I can find the screensaver config file?
View 2 Replies View Relatedi have a VPS server running centOS 5 and i need to edit the boot loader config file but my VPS does not seem to have the usual suspects of grub.conf or lilo any where on the system.
where the boot loader config file might be or what it might be called ?
If it helps to know, the VPS was setup instantly the moment i bought it.
I tried to installed Centos5.4 version on Dell PC intel corei3 inspiron580s and succeeded but found some issues following below
1 Hardware issue for LAN driver ( Broadcomlink(TM)gigabit ethernet)
2 Display Driver not support and also missing Xorg.config file (i.e ., My Screen Starts from center of screen )
3. What is minimum configuration for centos 5.4 ?
I did a yum update this morning that included a dnsmasq update. Subsequently, for an unrelated reason, I restarted dnsmasq, but it failed because /etc/dnsmasq.d didn't exist. It looks like my /etc/dnsmasq.conf file now includes "conf-dir=/etc/dnsmasq.d" at the end. Since dnsmasq was starting and I didn't remove dnsmasq.d, I assume this line was added by the update. Commenting the line resolves the issue.
An alternative hypothesis, given that I don't really know what the state of /etc/dnsmasq.conf and /etc/dnsmasq.d/ was before the update, might be that the directory did exist, but was removed by the update. I find this the least likely of my 2 stated hypotheses. (There are other hypotheses, but I think they are even less likely). Am I correct is concluding the conf-dir line was added by the update? If so, shouldn't the updated RPM create the directory during install?
I am using ubuntu 9.10 and I updated by ubuntu machine. It updated but at the end it gave me a message that "You have new mail in /var/mail/root". When I checked it via the command "tail /var/mail/root" it showed me this.
tail /var/mail/root
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <20100318051502.0D1ABB1C01@Infosec-Lab04>
Date: Thu, 18 Mar 2010 10:15:02 +0500 (PKT)
WARNING: "MaxBytes[leased]" not specified
ERROR: Please fix the error(s) in your config file
I am trying to change the configuration of sendmail so that I can relay mail through google smtp server as suggested here.
First I ran 'm4 sendmail,mc > sendmail.cf' with the original .mc file that came with Fedora 10. There was no error.
I added the following lines.
Quote:
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo','hash /etc/mail/auth/client-info.db')dnl
define(`SMART_HOST',`smtp.gmail.com')dnl
define(`RELAY_MAILER_ARGS�, `TCP $h 587′)
define(`ESMTP_MAILER_ARGS�, `TCP $h 587′)
I ran ''m4 sendmail,mc > sendmail.cf' again and got this message:
Quote:
m4:/usr/share/sendmail-cf/mailer/procmail.m4:33: ERROR: end of file in argument list
I did not change anything in the procmail.m4 file. What do you think caused this error?
I've been racking my brains over the past few days trying to figure out why my NIC card (network interface card) won't show up in the ifcfg-eth0 file.When I configure a new server (like this one) I always go to:/etc/sysconfig/network-scripts/ifcfg-eth0 and from there I usally see the name of my NIC's manufacturer's name and the hardware MAC address.Then it's only a simple process of entering the server's IP address, netmask and gateway and I'm up and running in no time...But not in this case! the ifcfg-eth0 file is completely blank! There's not ONE single line of config info in it... (?)The server runs an Intel core 2 duo (dual-core) CPU with 1 gig of RAM.
I've even re-formatted the drive and re-installed Centos 5.1 on the darn thing 3 times and it simply won't work.The server cannot resolve when I do a wgetIt also gives me a 'resolution problem in the named configuration'.What I don't understand is that the 2 small LEDs on the Cat 5 cable lights up and flash at what appear to be regular intervals here.
We have been struggling with a problem with the mysql-server package. This might be in the wrong category because our problems are with it on x86_64. Where the problem happens variables that should populate from the my.cnf don't, on other servers, they do, the my.cnf files are identical except for the server-id
The problem occurs on some of our machines but not others. All are using the mysql-server-5.0.45-7.el5.x86_64 The ones that work, when you connect with a client respond with server version 5.0.45-log source distribution The ones that don't work respond with 5.0.45 source distribution
It's unclear what the differences are between the two source versions and how we wind up with two different versions. One thing that might be involved, the mysql package is installed with both the i386 and x86_64
I was tryin to deploy svn on centos 5 with respect to [URL] I am stuck understandin the location svnpath parameter on svn config
[Code]...
You maybe know that VirtualBox has an "immutable" feature for HDD images. I.e. setup the system, if the stuff is in place, you can set the image to IMMUTABLE to prevent any changes to the image. Differences are written to a separated image. So on the next boot you'll see that all the (unintended) changes are gone and the "old" system is up & running again. I run an old SuSE 10.3 on a write-protected SD-IDE-Adapter. Changing and playing with RPMs is a mess due to around 50 changes I had to do to make that work. Is there any option to mount an SD-card as RO and having all the changes written to e.g. /dev/sda3? To make it clear: I thought about something like a RAID-X system, but could not find any description on how to setup a raidtab.
View 3 Replies View RelatedIn an attempt to get wireless working on my dell Latitude e6400 under Fedora 13 (64bit)I have downloaded and installed rpm-fusion with the understanding that it contained the driver necessary (Broadcom_wl i think). though the package manager installed both packages just fine, they are not acknowledged by yum repolist wich yeilds the results:
[Code]....
Something go wrong with php and Apache, at first, the $GLOBALS array is looking like this
Code:
Array
(
[code]....
I currently can run an old swf on my Chumby 8 device by storing and using these three files on a USB plugged into the device
config
<?xml version="1.0" encoding="utf-8" ?>
- <config>
[code]...
I have a file like this:
I would like to remove a section between [first] and [second]:
Is almost what I want. I would like the section header to say in place.
Desired output:
How would I go about splitting a file by section? Imagine the file looks like this:
Lots of text 1
Lots of text 2
[HEY, SPLIT HERE]
[code]....
I want to use a command that would split this file, but look for the text "[HEY, SPLIT HERE]" to get the split points.
I am a long time Unix system admin and this one has got me stumped.When I try to run the system-config-network (or any of the system-config-xxx programs) from the links on the GNOME interface, I get a message pop-up that says, "Unknown error" and no additional information. I have also opened a terminal and run it from the command line (/usr/bin/system-network-config) and I get the same "Unknown error" pop-up. I was not the one who originally configured this server, so I am not sure of the history or how it might have been broken. I can't seem to find any debugging information or even any command line parameters that might give me a clue what the complaint is. There is no error number or any other helpful hint as to the cause of the problem.
I have been manually editing the config files so the server is up and running but it is tedious to manage the server without the GUI.Has anyone seen this before? I assume it is a configuration issue, but I am not sure where to look.uname -aLinux xxxxserver 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux/etc/redhat-releaseCentOS release 5.4 (Final)
Code:
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty-updates_universe_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
Get this kind of error while trying to update Natty.
I have an error message that I do not understand nor know how to resolve:
E: encountered a section with no Package:header
E: Problem with MergeList/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_natty_partner_b inary-i386_Packages
E: The package lists or status file could not be parsed or opened.
E: _cache>open() failed, please report.
I hope this is simple for some of you!!! I do not have a clue what this means, I'm pathetic.
I was reading over and checking the How to section on the Wiki for Postfix TLS / SASL. I followed it completely and everything seems to be working fine however I am confused about the following section:
smtpd_tls_security_level = may
smtpd_tls_key_file = /etc/pki/tls/private/mail.example.com.key
smtpd_tls_cert_file = /etc/pki/tls/certs/mail.example.com.cert[code].....
So I have file which looks something like this:
cat .opera/operaprefs.ini
Code:
[User Prefs]
Language Files Directory=
[code]...
I have a file which looks something like this:
##########
some
text
text also includes empty lines
##########
some
more
text
##########
Basically all sections are separated by 10 hashes and I need to somehow only print all lines in the last section (the "some more text" part in the example above"). I tried all kind of things with sed and awk but I didn't find any way to identify the last "section".
I've upgrade the kernel from '2.6.18-128.el5' to '2.6.18-128.1.10.el5':
yum install kernel
yum install kernel-devel
yum install kernel-headers
yum install kernel-doc
But the system run into problem with WLAN, and I've search in this site and sombody posted in here: [URL] It's almost the same, the different is the card I use is TP-LINK. Then I decided to remove the newly installed kernel:
[Code]...