I think that yum and my keyboard are plotting …

I think that yum and my keyboard are plotting my demise:

So… For hours, I was receiving this error whenever I attempted anything with yum (literally…. anything)

[lunal@localhost bin]$ sudo yum install gparted Loaded plugins: aliases, auto-update-debuginfo, axelget, changelog, copr, : dellsysid, fastestmirror, filter-data, fs-snapshot, : fusioninventory-agent, kabi, keys, langpacks, list-data, local, : merge-conf, ovl, post-transaction-actions, priorities, : protectbase, ps, refresh-packagekit, remove-with-leaves, rpm- : warm-cache, show-leaves, tmprepo, tsflags, upgrade-helper, : verify, versionlock Loading support for Red Hat kernel ABI 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 370, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 179, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 583, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 445, in doCommand return base.installPkgs(extcmds, basecmd=basecmd) File "/usr/share/yum-cli/cli.py", line 983, in installPkgs txmbrs = self.install(pattern=arg) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4825, in install mypkgs = self.pkgSack.returnPackages(patterns=pats, File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1074, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 778, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.7/site-packages/yum/repos.py", line 347, in populateSack self.doSetup() File "/usr/lib/python2.7/site-packages/yum/repos.py", line 122, in doSetup self.ayum.plugins.run('prereposetup') File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/axelget.py", line 393, in prereposetup_hook os.utime(localMDFile, None) 

I had attempted coutntless troubleshooting steps before I started looking into the line errors listed, beginning with

File "/bin/yum", line 29, in <module> 

I don’t know that I’m a newb, but I am not all that keen and investigating that many line errors, especially if they are found in my /bin/yum and subsequent subdirectories. Alas, I was at a loss; so I set off on a quest through the bowels of yum. Upon confronting the third error,

File "/usr/share/yum-cli/yummain.py", line 179, in main result, resultmsgs = base.doCommands() 

I opened yummain.py and navigated down to line 179, the first line of the following:

try: result, resultmsgs = base.doCommands() except plugins.PluginYumExit, e: return exPluginExit(e) except Errors.RepoError, e: return exRepoError(e) except Errors.YumBaseError, e: result = 1 resultmsgs = [exception2msg(e)] except KeyboardInterrupt: return exUserCancel() except IOError, e: return exIOError(e) 

Confused, I noticed that the 4th ‘except’ mentions KeyboardInterrupt. Hours earlier, I experienced a hanging boot; grub’s last words none other than, ‘KeyboardInterrupt.’ I thought to myself, “there’s no way that they are connected. I have rebooted multiple times since then. I have sucessfuly ran multiple yum commands since then!”

I decided to step out for a cigarette, in order to clear my head of nonsensical yum errors and spare my eyes a few minutes of terminal hell. I sat down at my desk and unlocked my desktop and my blood preasure immediately re-spiked. “Fine, I’ll try it… what’s it gonna hurt!?” I asked my dear Lunal. I briefly (and I mean briefly) unplugged from the rear of the computer my keyboard’s USB (disconnected for no more than a second). I grab my shell and re-type my yum command,

[lunal@localhost yum-cli]$ sudo yum groupinstall "Development Tools" 

To my surprise, I no longer received the error which had been plaguing my Kernel! Yum churrned and hollered at repos while I waited with anticipation. I was all too releived by yum’s output:

[lunal@localhost yum-cli]$ sudo yum groupinstall "Development Tools" Loaded plugins: aliases, auto-update-debuginfo, axelget, changelog, copr, : dellsysid, fastestmirror, filter-data, fs-snapshot, : fusioninventory-agent, kabi, keys, langpacks, list-data, local, : merge-conf, ovl, post-transaction-actions, priorities, : protectbase, ps, refresh-packagekit, remove-with-leaves, rpm- : warm-cache, show-leaves, tmprepo, tsflags, upgrade-helper, : verify, versionlock Loading support for Red Hat kernel ABI There is no installed groups file. Maybe run: yum groups mark convert (see man yum) No metadata available for _local No metadata available for base No metadata available for centos-yum4 No metadata available for epel No metadata available for extras No metadata available for updates Loading mirror speeds from cached hostfile * base: mirrors.centos.webair.com * epel: mirror.beyondhosting.net * extras: mirrors.centos.webair.com * updates: mirrors.centos.webair.com 0 packages excluded due to repository protections Warning: Group development does not have any packages to install. Maybe run: yum groups mark install (see man yum) No packages in any requested group available to install or update 

Alas, the error which I had been receiving hours earlier, when my keyboard decided that it hated me…… Hooray

Edit: dropped the ball on my formatting, but I fixed it

submitted by /u/LunalSmojo
[link] [comments] via Linux 101 stuff. Questions are encouraged, noobs are welcome!