yum升级提示TypeError: unsubscriptable object
2012-04-16 15:20
330 查看
为保证服务器安全,需要经常做yum update。可是今天执行是提示
TypeError: unsubscriptable object
baidu后找到答案:
写道问题是由于yum的原数据损坏导致的,需要先删除原数据和数据库缓存,然后重建,问题即可解决
解决方法,依次运行以下命令:
yum clean metadata //通常执行这句就能解决,如果这句不能解决问题,继续下面操作
yum clean dbcache
yum makecache
原帖地址:http://hi.baidu.com/cajecx/blog/item/9f75e7cda000f65b0eb34547.html
我的问题执行第一行命令即解决。
环境:CentOS 5.3
TypeError: unsubscriptable object
baidu后找到答案:
写道问题是由于yum的原数据损坏导致的,需要先删除原数据和数据库缓存,然后重建,问题即可解决
解决方法,依次运行以下命令:
yum clean metadata //通常执行这句就能解决,如果这句不能解决问题,继续下面操作
yum clean dbcache
yum makecache
原帖地址:http://hi.baidu.com/cajecx/blog/item/9f75e7cda000f65b0eb34547.html
我的问题执行第一行命令即解决。
环境:CentOS 5.3
相关文章推荐
- Androidstudio下Generate signed apk提示Error: Expected resource of type id [ResourceType]解决办法
- command line option syntax error,type command/? for help安装数据库的时候提示错误,然后跳过
- Android studio升级3.0,提示“Error:Cannot choose between the following configurations of project”错误
- 真正解决方法之装不上vcredist_x86 提示Command line option syntax error. Type Command /? for Help.
- Centos中Python升级为3.X时yum出现except OSError, e: ^ SyntaxError: invalid syntax问题
- python机器学习实战3.2提示错误AttributeError: type object 'str' has no attribute '_name_'
- Python 3.5 Socket TypeError: a bytes-like object is required, not 'str' 错误提示
- 在flex中使用RemoteObject保存数据提示Type Error#1009 错误解决
- Qt 编译错误 提示TypeError: Property 'asciify' of object Core::Internal::UtilsJsExtension(0x27a9278) is not
- 使用yum提示Error: rpmdb open failed
- 读取页面返回字典值提示错误:TypeError: string indices must be integers, not str
- thinkphp5 返回数组提示variable type error: array
- 程序是没有问题的但是提示Uncaught TypeError: Cannot read property 'linear' of undefined
- qtp 版本为9.5 安装的时候提示“command line option syntax error.Type Command/? for help”
- 真正解决方法之装不上vcredist_x86 提示Command line option syntax error. Type Command /? for Help.
- centos openstack安装 - 解决yum错误Error - requested datatype primary not available
- Androidstudio下打包apk提示Error: Expected resource of type id [ResourceType]解决办法
- 多个ec:table无法正常点击列进行排序,提示uncaught typeerror
- 升级CocoaPod遇到ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String问题的解决方法
- 使用ajaxfileupload插件提示Uncaught TypeError:has no method 'handleError'