[RaspberryPi][Pidora] Kernel の更新がうまくいかなかったので、どうにか対処してみた。

2013-11-19 10:35:12AIX、UNIX、Linuxkernel, linux, Pidora, Raspberry Pi

raspberrypi-kernel-3.11.6-4.20131023git10bc582.rpfr18 | Build Info | koji /
http://koji.pidora.ca/koji/buildinfo?buildID=72909

自宅のRaspberryPi(Pidora)環境で、yum updateを実行した際に、以下の様な問題が発生しました。

# uname -a
Linux patty.kometch.local 3.6.11 #1 PREEMPT Wed Oct 2 16:19:09 EDT 2013 armv6l armv6l armv6l GNU/Linux
# yum update
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package raspberrypi-kernel.armv6hl 0:3.6.11-5.20130415git197d15b.rpfr18 will be obsoleted
---> Package raspberrypi-kernel.armv6hl 0:3.6.11-7.20130415git197d15b.rpfr18 will be obsoleted
---> Package raspberrypi-kernel.armv6hl 0:3.6.11-12.20130920git966efc7.rpfr18 will be obsoleted
---> Package raspberrypi-kernel.armv6hl 0:3.11.6-3.20131023git10bc582.rpfr18 will be obsoleting
---> Package raspberrypi-kernel-headers.armv6hl 0:3.6.11-12.20130920git966efc7.rpfr18 will be updated
---> Package raspberrypi-kernel-headers.armv6hl 0:3.11.6-3.20131023git10bc582.rpfr18 will be an update
---> Package raspberrypi-vc-demo-source.armv6hl 0:20130918gitfadc4cb-2.rpfr18 will be updated
---> Package raspberrypi-vc-demo-source.armv6hl 0:20131018git4c14569-5.rpfr18 will be an update
---> Package raspberrypi-vc-firmware.armv6hl 0:20130918gitfadc4cb-2.rpfr18 will be updated
---> Package raspberrypi-vc-firmware.armv6hl 0:20131018git4c14569-5.rpfr18 will be an update
---> Package raspberrypi-vc-libs.armv6hl 0:20130918gitfadc4cb-2.rpfr18 will be updated
---> Package raspberrypi-vc-libs.armv6hl 0:20131018git4c14569-5.rpfr18 will be an update
---> Package raspberrypi-vc-libs-devel.armv6hl 0:20130918gitfadc4cb-2.rpfr18 will be updated
---> Package raspberrypi-vc-libs-devel.armv6hl 0:20131018git4c14569-5.rpfr18 will be an update
---> Package raspberrypi-vc-static.armv6hl 0:20130918gitfadc4cb-2.rpfr18 will be updated
---> Package raspberrypi-vc-static.armv6hl 0:20131018git4c14569-5.rpfr18 will be an update
---> Package raspberrypi-vc-utils.armv6hl 0:20130918gitfadc4cb-2.rpfr18 will be updated
---> Package raspberrypi-vc-utils.armv6hl 0:20131018git4c14569-5.rpfr18 will be an update
--> Finished Dependency Resolution
--> Running transaction check
---> Package raspberrypi-kernel.armv6hl 0:3.6.11-5.20130415git197d15b.rpfr18 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
Package                    Arch    Version                      Repository           Size
===========================================================================================
Installing:
raspberrypi-kernel         armv6hl 3.11.6-3.20131023git10bc582.rpfr18
pidora-rpfr-updates  12 M
replacing  raspberrypi-kernel.armv6hl 3.6.11-5.20130415git197d15b.rpfr18
replacing  raspberrypi-kernel.armv6hl 3.6.11-7.20130415git197d15b.rpfr18
replacing  raspberrypi-kernel.armv6hl 3.6.11-12.20130920git966efc7.rpfr18
Updating:
raspberrypi-kernel-headers armv6hl 3.11.6-3.20131023git10bc582.rpfr18
pidora-rpfr-updates 779 k
raspberrypi-vc-demo-source armv6hl 20131018git4c14569-5.rpfr18  pidora-rpfr-updates  30 M
raspberrypi-vc-firmware    armv6hl 20131018git4c14569-5.rpfr18  pidora-rpfr-updates 2.9 M
raspberrypi-vc-libs        armv6hl 20131018git4c14569-5.rpfr18  pidora-rpfr-updates 218 k
raspberrypi-vc-libs-devel  armv6hl 20131018git4c14569-5.rpfr18  pidora-rpfr-updates 235 k
raspberrypi-vc-static      armv6hl 20131018git4c14569-5.rpfr18  pidora-rpfr-updates 152 k
raspberrypi-vc-utils       armv6hl 20131018git4c14569-5.rpfr18  pidora-rpfr-updates 115 k
Removing:
raspberrypi-kernel         armv6hl 3.6.11-5.20130415git197d15b.rpfr18
@anaconda-0/bluesky  39 M

Transaction Summary
===========================================================================================
Install  1 Package
Upgrade  7 Packages
Remove   1 Package

Total size: 47 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
ERROR with transaction check vs depsolve:
raspberrypi-kernel < 3.11.6 is obsoleted by raspberrypi-kernel-3.11.6-3.20131023git10bc582.rpfr18.armv6hl
Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=rawhide&component=yum
You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2013-11-12.19-13.4dczfJ.yumtx
#

Raspberrypi-kernelがConflictしているような感じになっています。
最新版のKernelパッケージを個別にダウンロードし、インストールしてやることで回避出来るようなので実施してみました。

wget 
wget http://japan.proximity.on.ca/kojifiles/packages/raspberrypi-kernel/3.11.6/4.20131023git10bc582.rpfr18/armv6hl/raspberrypi-kernel-devel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm
wget http://japan.proximity.on.ca/kojifiles/packages/raspberrypi-kernel/3.11.6/4.20131023git10bc582.rpfr18/armv6hl/raspberrypi-kernel-headers-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm
# ls -l
total 13448
-rw-r--r-- 1 root root 12960636 Nov 12 19:37 raspberrypi-kernel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm
-rw-r--r-- 1 root root     6692 Nov 12 19:37 raspberrypi-kernel-devel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm
-rw-r--r-- 1 root root   797556 Nov 12 19:37 raspberrypi-kernel-headers-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm
drwx------ 3 root root       60 Jul 25 02:18 systemd-private-A9c1dW
# yum localinstall raspberrypi-kernel-*
Loaded plugins: langpacks
Examining raspberrypi-kernel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm: raspberrypi-kernel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl
Marking raspberrypi-kernel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm as an update to raspberrypi-kernel-3.11.6-3.20131023git10bc582.rpfr18.armv6hl
Examining raspberrypi-kernel-devel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm: raspberrypi-kernel-devel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl
Marking raspberrypi-kernel-devel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm as an update to raspberrypi-kernel-devel-3.11.6-3.20131023git10bc582.rpfr18.armv6hl
Examining raspberrypi-kernel-headers-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm: raspberrypi-kernel-headers-3.11.6-4.20131023git10bc582.rpfr18.armv6hl
Marking raspberrypi-kernel-headers-3.11.6-4.20131023git10bc582.rpfr18.armv6hl.rpm as an update to raspberrypi-kernel-headers-3.11.6-3.20131023git10bc582.rpfr18.armv6hl
Resolving Dependencies
--> Running transaction check
---> Package raspberrypi-kernel.armv6hl 0:3.11.6-4.20131023git10bc582.rpfr18 will be installed
---> Package raspberrypi-kernel-devel.armv6hl 0:3.11.6-3.20131023git10bc582.rpfr18 will be updated
---> Package raspberrypi-kernel-devel.armv6hl 0:3.11.6-4.20131023git10bc582.rpfr18 will be an update
---> Package raspberrypi-kernel-headers.armv6hl 0:3.11.6-3.20131023git10bc582.rpfr18 will be updated
---> Package raspberrypi-kernel-headers.armv6hl 0:3.11.6-4.20131023git10bc582.rpfr18 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
Package
Arch    Version
Repository                                                              Size
===========================================================================================
Installing:
raspberrypi-kernel
armv6hl 3.11.6-4.20131023git10bc582.rpfr18
/raspberrypi-kernel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl          39 M
Updating:
raspberrypi-kernel-devel
armv6hl 3.11.6-4.20131023git10bc582.rpfr18
/raspberrypi-kernel-devel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl   0.0
raspberrypi-kernel-headers
armv6hl 3.11.6-4.20131023git10bc582.rpfr18
/raspberrypi-kernel-headers-3.11.6-4.20131023git10bc582.rpfr18.armv6hl 2.7 M

Transaction Summary
===========================================================================================
Install  1 Package
Upgrade  2 Packages

Total size: 42 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating   : raspberrypi-kernel-devel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl     1/5
Installing : raspberrypi-kernel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl           2/5
Updating   : raspberrypi-kernel-headers-3.11.6-4.20131023git10bc582.rpfr18.armv6hl   3/5
Cleanup    : raspberrypi-kernel-devel-3.11.6-3.20131023git10bc582.rpfr18.armv6hl     4/5
Cleanup    : raspberrypi-kernel-headers-3.11.6-3.20131023git10bc582.rpfr18.armv6hl   5/5
Verifying  : raspberrypi-kernel-headers-3.11.6-4.20131023git10bc582.rpfr18.armv6hl   1/5
Verifying  : raspberrypi-kernel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl           2/5
Verifying  : raspberrypi-kernel-devel-3.11.6-4.20131023git10bc582.rpfr18.armv6hl     3/5
Verifying  : raspberrypi-kernel-headers-3.11.6-3.20131023git10bc582.rpfr18.armv6hl   4/5
Verifying  : raspberrypi-kernel-devel-3.11.6-3.20131023git10bc582.rpfr18.armv6hl     5/5

Installed:
raspberrypi-kernel.armv6hl 0:3.11.6-4.20131023git10bc582.rpfr18

Updated:
raspberrypi-kernel-devel.armv6hl 0:3.11.6-4.20131023git10bc582.rpfr18
raspberrypi-kernel-headers.armv6hl 0:3.11.6-4.20131023git10bc582.rpfr18

Complete!
# shutdown -r now
# uname -a
Linux patty.kometch.local 3.6.11-4.20131023git10bc582.rpfr18.bcm2708 #1 PREEMPT Tue Nov 12 05:33:05 EST 2013 armv6l armv6l armv6l GNU/Linux

というわけで無事にKernelの更新が出来ました。
ところで、Kernelパッケージのバージョニングと実際に導入されるパッケージのバージョン表記が違うのは気のせいなのでしょうか?

この記事を書いた人

kometchtech

うつ病を患いながら、IT業界の末席にいるおっさんエンジニア。科学計算をしたことがないのに、HPC分野にお邪魔している。

興味のある分野で学習したことをblogにまとめつつ、うつ病の経過症状のメモも置いておく日々。

じつはRouterboard User Group JPの中の人でもある。

Amazon欲しいものリスト / Arm板を恵んでくれる人募集中

2013-11-19 10:35:12AIX、UNIX、Linuxkernel, linux, Pidora, Raspberry Pi