I have created a local repo for CentOS 6 x86_64. I use a machine at 192.168.1.14 for that and created a directory structure /var/www/html/centos/6.2/updates/x86_64 then there are these directories at the location.
Packages repodata
Both are populated with many files.
In my kickstart file I have a line: #repo --name=Updates --baseurl=http://192.168.1.14/centos/6.2/updates/x86_64/
All seems fine. If the line is comment as above the install is fine, just base 6.2 with no updates.
If I uncomment the line I get some error about dbus package is incorrect.
Is there something I am missing???
My script to keep the local repo up to date is: for VERSION in "6.2" do mkdir -p /var/www/html/centos/$VERSION/updates/x86_64/Packages mkdir -p /var/www/html/centos/$VERSION/updates/x86_64/repodata
PLACE="mirror.team-cymru.org/CentOS" rsync -av rsync://$PLACE/$VERSION/updates/x86_64/Packages/* /var/www/html/centos/$VERSION/updates/x86_64/Packages rsync -av rsync://$PLACE/$VERSION/updates/x86_64/repodata/* /var/www/html/centos/$VERSION/updates/x86_64/repodata done
Thanks,
Jerry
I have created a local repo for CentOS 6 x86_64.
try:
cd /var/www/html/centos/6.2/updates/x86_64 createrepo .
then chown -R all the files so they're readable by the web server.
See if that updates the repodata properly.
From: Jerry Geis geisj@pagestation.com
If I uncomment the line I get some error about dbus package is incorrect. for VERSION in "6.2" do mkdir -p /var/www/html/centos/$VERSION/updates/x86_64/Packages
Did you check your apache logs for 404s? Try with VERSION = '6'...
JD
I tried the two suggestions:
I am now using "createrepo ." and chown -R and chmod -R to make sure they are readable by apache.
I also change my repo line from using 6.2 to just use 6. repo --name=Updates --baseurl=http://192.168.1.14/centos/6/updates/x86_64/
I have a symbolic link from 6 to 6.2
There error I get is the same: "fatal error occured when installing the dbus package." Exit installer.
Doing ALT-F2 at that point and looking around at files in /tmp I see no errors, nothing is in /var/log/
What else can I try? Thanks,
Jerry
On 04/20/2012 06:08 PM, Jerry Geis wrote:
I tried the two suggestions:
I am now using "createrepo ." and chown -R and chmod -R to make sure they are readable by apache.
I also change my repo line from using 6.2 to just use 6. repo --name=Updates --baseurl=http://192.168.1.14/centos/6/updates/x86_64/
I have a symbolic link from 6 to 6.2
There error I get is the same: "fatal error occured when installing the dbus package." Exit installer.
Doing ALT-F2 at that point and looking around at files in /tmp I see no errors, nothing is in /var/log/
You should post entire error text. Are you sure that that dbus package is not corrupted? Try downloading it fo local directory and install from there. Or just delete dbus rpm and run rsync again (or whatever) and then createrepo.
You should post entire error text. Are you sure that that dbus package is not corrupted? Try downloading it fo local directory and install from there. Or just delete dbus rpm and run rsync again (or whatever) and then createrepo.
The rest of the message had no additional information so I did not include it. However the entire message is this:
A fatal error occurred when installing the dbus package. This could indicate errors when reading the installation media. Installation cannot continue.
Exit Installer
Funny thing is there is no dbus "update" at this time. There is no dbus* file in my /var/www/html/centos/6/updates/x86_64/Packages directory.
This must be the original dbus package from the 6.2 DVD download. If I comment the "repo" line in my kickstart file - the install goes fine.
So the dbus package should be good. It works without the "repo" line.
my repo line in my kickstart file is: repo --name=Updates --baseurl=http://192.168.1.14/centos/6/updates/x86_64/
I have re-ran the "createrepo ." and tried my install again with the same results.
I am confused. What do I do next?
Jerry
On Fri, Apr 20, 2012 at 1:59 PM, Jerry Geis geisj@pagestation.com wrote:
my repo line in my kickstart file is: repo --name=Updates --baseurl=http://192.168.1.14/centos/6/updates/x86_64/
Test your repo with yum, try `yum info` on the packages, etc. Take kickstart out of the picture first.
On Apr 20, 2012, at 12:59 PM, Jerry Geis wrote:
You should post entire error text. Are you sure that that dbus package is not corrupted? Try downloading it fo local directory and install from there. Or just delete dbus rpm and run rsync again (or whatever) and then createrepo.
The rest of the message had no additional information so I did not include it. However the entire message is this:
A fatal error occurred when installing the dbus package. This could indicate errors when reading the installation media. Installation cannot continue.
Exit Installer
Funny thing is there is no dbus "update" at this time. There is no dbus* file in my /var/www/html/centos/6/updates/x86_64/Packages directory.
This must be the original dbus package from the 6.2 DVD download. If I comment the "repo" line in my kickstart file - the install goes fine.
So the dbus package should be good. It works without the "repo" line.
my repo line in my kickstart file is: repo --name=Updates --baseurl=http://192.168.1.14/centos/6/updates/x86_64/
I have re-ran the "createrepo ." and tried my install again with the same results.
I am confused. What do I do next?
Jerry _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I may have missed if this was already said: have you looked at /var/log/httpd/error_log and access_log on the repository machine to see the status of the request for the dbus package?
Tony Schreiner