TypeError: Can not create providesname index: database or disk is full
If you see below error while using yum; it means “/var/tmp” on your system is full or dont have enough free space.
**/var/tmp is used by yum for temporary storage to build the repository database
ERROR:
Traceback (most recent call last):
File “/bin/yum”, line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File “/usr/share/yum-cli/yummain.py”, line 375, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 184, in main
result, resultmsgs = base.doCommands()
File “/usr/share/yum-cli/cli.py”, line 585, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File “/usr/share/yum-cli/yumcommands.py”, line 2154, in doCommand
base.repos.populateSack()
File “/usr/lib/python2.7/site-packages/yum/repos.py”, line 386, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File “/usr/lib/python2.7/site-packages/yum/yumRepo.py”, line 263, in populate
dobj = repo_cache_function(xml, csum)
File “/usr/lib64/python2.7/site-packages/sqlitecachec.py”, line 46, in getPrimary
self.repoid))
TypeError: Can not create providesname index: database or disk is full
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
Solutions:
=> Clear the /var/tmp
or
=> Extend the /var/tmp