Raspbian のアップデート方法をまとめておく。
◆カーネルアップデート
◆ OSパッケージアップデート
あれ? 古くなった。
◆カーネルアップデート
pi@rasp$ date2016年 1月 11日 月曜日 10:01:39 JSTpi@rasp$ uname -aLinux raspberrypi 4.1.14-v7+ #828 SMP PREEMPT Thu Dec 10 13:22:08 GMT 2015 armv7l GNU/Linux
pi@rasp$pi@rasp$ sudo rpi-update*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom*** Performing self-update*** Relaunching after update*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom#############################################################This update bumps to rpi-4.1.y linux treeBe aware there could be compatibility issues with some driversDiscussion here:https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=113753##############################################################*** Downloading specific firmware revision (this will take a few minutes)% Total % Received % Xferd Average Speed Time Time Time CurrentDload Upload Total Spent Left Speed100 168 0 168 0 0 224 0 --:--:-- --:--:-- --:--:-- 306100 47.9M 100 47.9M 0 0 1107k 0 0:00:44 0:00:44 --:--:-- 1158k*** Updating firmware*** Updating kernel modules*** depmod 4.1.15-v7+*** depmod 4.1.15+*** Updating VideoCore libraries*** Using HardFP libraries*** Updating SDK*** Running ldconfig*** Storing current firmware revision*** Deleting downloaded files*** Syncing changes to disk*** If no errors appeared, your firmware was successfully updated to 12f0636cd11ebd7ec189534147ea23ce4f702e90*** A reboot is needed to activate the new firmware
pi@rasp$pi@rasp$ sudo reboot
<再起動後>pi@rasp$ uname -aLinux raspberrypi 4.1.15-v7+ #830 SMP Tue Dec 15 17:02:45 GMT 2015 armv7l GNU/Linuxpi@rasp$
◆ OSパッケージアップデート
pi@rasp$ sudo apt-get update:pi@rasp$ sudo apt-get upgradeパッケージリストを読み込んでいます... 完了依存関係ツリーを作成しています状態情報を読み取っています... 完了以下のパッケージは保留されます:iceweasel iceweasel-l10n-ja lxpanel lxpanel-data minecraft-pi nuscratchraspberrypi-ui-mods以下のパッケージはアップグレードされます:libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0libsmbclient libwbclient0 libxml2 libxml2-utils python-libxml2python-rpi.gpio python3-rpi.gpio raspberrypi-bootloader samba-commonsmbclientアップグレード: 14 個、新規インストール: 0 個、削除: 0 個、保留: 7 個。71.6 MB のアーカイブを取得する必要があります。この操作後に追加で 795 kB のディスク容量が消費されます。続行しますか [Y/n]? y取得:1 http://archive.raspberrypi.org/debian/ wheezy/main python-rpi.gpio armhf 0.6.1~wheezy-1 [47.9 kB]取得:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libxml2 armhf 2.8.0+dfsg1-7+wheezy5 [825 kB]:
:libraspberrypi-bin (1.20151118-1) を設定しています ...pi@rasp$
<再起動>pi@rasp$ uname -aLinux raspberrypi 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linuxpi@rasp$