Yum Fails with Error: database disk image is malformed

How To Resolve Yum Fails with "Error: database disk image is malformed" in /var/log/messages


This Issue is applies for:

Linux OS - Version Oracle Linux 6.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86

Issue:

You cannot run any command related to yum and below the error messages in the / var / log / Messages file.
Incorrect configuration or damaged yum database
Error: database disk image is malformed
# yum update Loaded plugins: aliases, changelog, downloadonly, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock 
Loading support for kernel ABI 
Setting up Install Process 
Ol6_latest | 3.0 kB 00:00 
Ol6_latest/primary_db | 78 MB 00:10 

 [Errno 2] No such file or directory: '/var/cache/yum/x86_64/6Server/Ol6_latest/primary.sqlite.bz2' 
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock 
Loading support for kernel ABI 
Setting up Update Process 
Ol6_latest/primary_db | 78 MB 00:10 
Resolving Dependencies 
--> Running transaction check 
---> Package expat.x86_64 0:2.0.1-11.el6_2 will be updated Error: database disk image is malformed

Solution for Yum Fails with error database disk image is malformed:

  1. Check and delete any unwanted or wrongly configured files under the path /etc/yum.repos.d/ 
  2. Run "yum clean all" command. 
  3. Now try to perform "yum update"
Do not forget to add your valuable comments on this post.
SHARE

pavan

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

1 Comments:

  1. Casino of the Year 2022 | JM Hub
    in the slot machine 울산광역 출장샵 casino. The slots machines 안산 출장샵 are all made 논산 출장안마 up of classic mechanical designs. The main object of the game is to 서귀포 출장마사지 play  Rating: 4.1 · 삼척 출장안마 ‎Review by JM Hub

    ReplyDelete

Subscribe Us