YUM Error CentOS Template [message #152] |
Fri, 23 September 2005 04:15  |
|
I just installed all the latest RPM's and used the down loadable CentOS template from the OVZ website. I installed YUM into the newly created VPS via vzyum. When I try and use YUM from inside the VPS I get the following error:
# yum install nano
Setting up Install Process
Setting up Repos
dag 100% |=========================| 1.1 kB 00:00
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Traceback (most recent call last):
File "/usr/bin/yum", line 7, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 68, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 406, in doCommands
return self.installPkgs()
File "/usr/share/yum-cli/cli.py", line 813, in installPkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 89, in doRepoSetup
self.doSackSetup()
File "__init__.py", line 143, in doSackSetup
File "repos.py", line 243, in populateSack
File "mdcache.py", line 103, in getPrimary
File "mdcache.py", line 90, in _getGeneric
File "mdcache.py", line 62, in _unpickle
EOFError
Any ideas how to solve this?
Just Because You Have One, Doesn't Mean You Have To Be One!
|
|
|
|
Re: YUM Error CentOS Template [message #161 is a reply to message #152] |
Fri, 23 September 2005 18:01   |
|
Ok, you brought up some important questions which I should have included in my original post. I did find a fix though 
I used the following once and it solved my YUM problems then and thereafter:
PYTHONPATH=/usr/lib/python2.3/site-packages yum update
I'm guessing if I installed Python-Devel It might have cleared it up too. As always, thanks for assisting, It is much appreciated.
**EDIT**
I should explain that I used "vzpkgcache centos-4" to make a centos tar.gz for the /vz/templates/cache I tryed the above on a newly built VPS (102) with the new tar.gz file and it corrected the error. I tried the above on the original VPS (101) and it DID NOT correct the yum error even after installing python-devel.
So VPS 102 has a working YUM. As a side note "DF" yields no output on this CentOS install.
VPS 101 Does not have a working YUM but "DF" works as it should
Just Because You Have One, Doesn't Mean You Have To Be One!
[Updated on: Fri, 23 September 2005 18:15] Report message to a moderator
|
|
|
|
|
Re: YUM Error CentOS Template [message #171 is a reply to message #169] |
Mon, 26 September 2005 08:28  |
|
This is a bug in centos-4 template that claimed to be fixed in 1.0-5 version of template metadata, but not actually fixed.
I just put the issue to bugzilla as bug #45. For now, to fix the bug please add the following lines to the end of /vz/template/centos/4/config/install-post file:
# Link /etc/mtab to /proc/mounts
rm -f $VE_ROOT/etc/mtab
ln -s /proc/mounts $VE_ROOT/etc/mtab
After that, you have to recreate template cache from scratch:
Kir Kolyshkin
|
|
|