yum Error – TypeError: unsubscriptable object

We use yum as the patching mechanism for our CentOS servers. It has worked smoothly for several years without incidents. I ran into a problem related to yum yesterday. Whenever I tried to update my system using the yum update command, I got a lot of error messages on the screen and it crashed. The last message shown is

TypeError: unsubscriptable object

Using Google, I was able to find this post about how to fix it. The proposed fix is to use this command:

yum clean metadata

. If this does not fix your yum problem, use this command:

yum clean all


This post may contain affiliated links. When you click on the link and purchase a product, we receive a small commision to keep us running. Thanks.

Be the first to comment

Leave a Reply