关于yum软件管理
今天新装的fedaro,用yum安装gcc的过程中,网掉了,然后 sudo yum install gcc 再次重新安装,结果出问题了。
Error: clean requires an option: headers, packages, metadata, dbcache, plugins, expire-cache, rpmdb, all
Could not create lock at /var/run/yum.pid: [Errno 22] Invalid argument: '/var/run/yum.pid'
Another app is currently holding the yum lock; waiting for it to exit...
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 258, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 104, in main
show_lock_owner(e.pid, logger)
File "/usr/share/yum-cli/utils.py", line 107, in show_lock_owner
ps = get_process_info(pid)
File "/usr/share/yum-cli/utils.py", line 62, in get_process_info
if (not os.path.exists("/proc/%d/status" % pid) or
TypeError: %d format: a number is required, not str
这个问题该怎么解决?
还有关于yum还有apt方面的软件管理的资料谁提供些,实用一些的,谢了。
------解决方案--------------------Could not create lock at /var/run/yum.pid: [Errno 22] Invalid argument: '/var/run/yum.pid'
Another app is currently holding the yum lock; waiting for it to exit...
你是不是打开了另一个yum实例,什么也不会的话直接注销或者重启再运行命令就行
话说gcc这么中重要的东西说删除就删。。。