Skip to content

How to Resolve DataType Error During Yum-Update

Summary

This article will explain how to resolve caching issues with the XCP-NG repo when running yum-update.

What Caused This Issue?

When trying to upgrade XCP-NG from 7.6 to 8.0, I overwrote the xcp-ng.repo located at /etc/yum.repos.d/, but overlooked purging the cache.

Attempts to Resolve

Taken from the XCP-NG Upgrade How-To on Github

  • Download the files
wget https://updates.xcp-ng.org/7/xcp-ng-$VER.repo -O xcp-ng-$VER.repo
wget https://updates.xcp-ng.org/7/SHA256SUMS -O SHA256SUMS
wget https://updates.xcp-ng.org/7/SHA256SUMS.asc -O SHA256SUMS.asc
cp xcp-ng-$VER.repo /etc/yum.repos.d/xcp-ng.repo
# help yum taking the change into account immediately
yum clean metadata
  • Run yum update

The following error is thrown:

Error: requested datatype primary not available

How to Resolve

By renaming, then recreating the cache file located at /var/cache/, it allowed for the removal of any previous caching issues and caused yum update to begin working again.

# cd /var/cache
# mv yum yum.whatever
# yum update

References

https://www.centos.org/forums/viewtopic.php?t=13888

https://github.com/xcp-ng/xcp/wiki/Upgrade-Howto