yumが、TypeError: unsubscriptable object で失敗。
先日管理人用のメール鯖が復活したので、
溜まりに溜まったメールを捌いていると・・・なにやら数日前から
光輪サーバーのyumがエラーを吐いてる様子。
● まずは手動で実行
# yum update
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* updates: www.ftp.ne.jp
* addons: www.ftp.ne.jp
* extras: www.ftp.ne.jp
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package pango.i386 0:xxxxxxxx set to be updated
—> Package audit-libs.i386 0:xxxxxxxx set to be updated
—> Package audit.i386 0:xxxxxxxx set to be updated
—> Package poppler.i386 0:xxxxxxxx set to be updated
—> Package file.i386 0:xxxxxxxx set to be updated
—> Package audit-libs-python.i386 0:xxxxxxxx set to be updated
—> Package sos.noarch 0:xxxxxxxx set to be updated
—> Package kexec-tools.i386 0:xxxxxxxx set to be updated
Traceback (most recent call last):
File “/usr/bin/yum”, line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
(中略)
setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object
軽くググってみるとyumのデータベースが壊れると
こんな症状になるらしい。
・・・確かにftpサーバのアドレスとかオカシイねぇ。。。
# yum clean all
Loaded plugins: downloadonly, fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
● 直ったか試してみる
# yum update
Loaded plugins: downloadonly, fastestmirror
Determining fastest mirrors
* base: rsync.atworks.co.jp
* updates: rsync.atworks.co.jp
* addons: rsync.atworks.co.jp
* extras: rsync.atworks.co.jp
base | 1.1 kB 00:00
primary.xml.gz | 878 kB 00:00
base 2508/2508
updates | 951 B 00:00
primary.xml.gz | 136 kB 00:00
updates 210/210
addons | 951 B 00:00
primary.xml.gz | 157 B 00:00
extras | 1.1 kB 00:00
primary.xml.gz | 90 kB 00:00
extras 298/298
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package kexec-tools.i386 0:xxxxxxxx set to be updated
—> Package audit.i386 0:xxxxxxxx set to be updated
—> Package audit-libs.i386 0:xxxxxxxx set to be updated
—> Package poppler.i386 0:xxxxxxxx set to be updated
—> Package file.i386 0:xxxxxxxx set to be updated
—> Package sos.noarch 0:xxxxxxxx set to be updated
—> Package pango.i386 0:xxxxxxxx set to be updated
—> Package audit-libs-python.i386 0:xxxxxxxx set to be updated
filelists.xml.gz | 2.8 MB 00:00
filelists.xml.gz | 1.0 MB 00:00
filelists.xml.gz | 133 kB 00:00
filelists.xml.gz | 150 B 00:00
–> Finished Dependency Resolution
Dependencies Resolved
=============================================
Package Arch Version Repository Size
=============================================
Updating:
audit i386 xxxxxxxx updates 365 k
audit-libs i386 xxxxxxxx updates 77 k
audit-libs-python i386 xxxxxxxx updates 77 k
file i386 xxxxxxxx updates 316 k
kexec-tools i386 xxxxxxxx updates 526 k
pango i386 xxxxxxxx updates 335 k
poppler i386 xxxxxxxx updates 3.0 M
sos noarch xxxxxxxx updates 116 k
Transaction Summary
=============================================
Install 0 Package(s)
Update 8 Package(s)
Remove 0 Package(s)
Total download size: 4.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): audit-libs-python-xxxxxxxx.i386.rpm | 77 kB 00:00
(2/8): audit-libs-xxxxxxxx.i386.rpm | 77 kB 00:00
(3/8): sos-xxxxxxxx.noarch.rpm | 116 kB 00:00
(4/8): file-xxxxxxxx.i386.rpm | 316 kB 00:00
(5/8): pango-xxxxxxxx.i386.rpm | 335 kB 00:00
(6/8): audit-xxxxxxxx.i386.rpm | 365 kB 00:00
(7/8): kexec-tools-xxxxxxxx.i386.rpm | 526 kB 00:00
(8/8): poppler-xxxxxxxx.i386.rpm | 3.0 MB 00:00
——————————————————————————–
Total 4.1 MB/s | 4.8 MB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : audit-libs [ 1/16]
Updating : pango [ 2/16]
Updating : poppler [ 3/16]
Updating : file [ 4/16]
Updating : audit-libs-python [ 5/16]
Updating : sos [ 6/16]
Updating : kexec-tools [ 7/16]
Updating : audit [ 8/16]
Cleanup : audit-libs-python [ 9/16]
Cleanup : pango [10/16]
Cleanup : audit-libs [11/16]
Cleanup : poppler [12/16]
Cleanup : file [13/16]
Cleanup : sos [14/16]
Cleanup : kexec-tools [15/16]
Cleanup : audit [16/16]
Updated: audit.i386 0:xxxxxxxx audit-libs.i386 0:xxxxxxxx audit-libs-python.i386 0:xxxxxxxx file.i386 0:xxxxxxxx kexec-tools.i386 0:xxxxxxxx pango.i386 0:xxxxxxxx poppler.i386 0:xxxxxxxx sos.noarch 0:xxxxxxxx
Complete!
無事完了できました。
※ バージョン情報はなんとなく伏字