Skip to content

How to Resolve DataType Error During Yum-Update


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$VER.repo -O xcp-ng-$VER.repo
wget -O SHA256SUMS
wget -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