rootになってみよう。とりあえずsudoしてみると、すんなりrootになれた。
pi@raspberrypi:~ $ sudo -s root@raspberrypi:/home/pi#
初期はどうなってるか確認しておこう。とりあえず割と普通。
root@raspberrypi:/home/pi# cd /root root@raspberrypi:~# pwd /root root@raspberrypi:~# ls -aFC ./ ../ .bashrc .profile
updateをかけてみたくなったのでやってみる。Debian系だからapt-getでできるはず。
まずはパッケージリスト自体の更新を行う。
root@raspberrypi:~# apt-get update Get:1 http://archive.raspberrypi.org jessie InRelease [13.4 kB] Get:2 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB] Get:3 http://archive.raspberrypi.org jessie/main armhf Packages [109 kB] Get:4 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,962 kB] Get:5 http://archive.raspberrypi.org jessie/ui armhf Packages [7,639 B] Ign http://archive.raspberrypi.org jessie/main Translation-en_GB Ign http://archive.raspberrypi.org jessie/main Translation-en Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB Ign http://archive.raspberrypi.org jessie/ui Translation-en Get:6 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB] Get:7 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB] Get:8 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B] Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB Ign http://mirrordirector.raspbian.org jessie/main Translation-en Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en Fetched 9,217 kB in 40s (226 kB/s) Reading package lists... Done root@raspberrypi:~#
この後、インストールされているパッケージのアップデートを行う。apt-get dist-upgradeを使うと依存関係も含めてパッケージをアップデートしてくれる。
# apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: apt apt-utils bind9-host ca-certificates dpkg dpkg-dev file isc-dhcp-client isc-dhcp-common libapt-inst1.5 libapt-pkg4.12 libbind9-90 libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libdns-export100 libdns100 libdpkg-perl libirs-export91 libisc-export95 libisc95 libisccc90 libisccfg-export90 libisccfg90 liblwres90 libmagic1 libpam-modules libpam-modules-bin libpam-runtime libpam0g libpcre3 libpng12-0 libpng12-dev libssl1.0.0 libsystemd0 libudev1 libwbclient0 libxml2 locales login multiarch-support openssh-client openssh-server openssh-sftp-server openssl passwd perl perl-base perl-modules python-rpi.gpio raspi-config rsyslog samba-common ssh sudo systemd systemd-sysv tzdata udev 61 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 42.1 MB of archives. After this operation, 38.9 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://archive.raspberrypi.org/debian/ jessie/main python-rpi.gpio armhf 0.6.1-1 [23.1 kB] Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main dpkg armhf 1.17.26 [2,927 kB] Get:3 http://archive.raspberrypi.org/debian/ jessie/main raspi-config all 20160108 [13.4 kB] Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main login armhf 1:4.2-3+deb8u1 [716 kB] Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main perl-modules all 5.20.2-3+deb8u3 [2,545 kB] Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main perl armhf 5.20.2-3+deb8u3 [2,055 kB] Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main libapt-pkg4.12 armhf 1.0.9.8.2 [711 kB] : (省略) : Get:56 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsystemd0 armhf 215-17+deb8u3 [84.0 kB] Get:57 http://mirrordirector.raspbian.org/raspbian/ jessie/main systemd armhf 215-17+deb8u3 [2,214 kB] Get:58 http://mirrordirector.raspbian.org/raspbian/ jessie/main systemd-sysv armhf 215-17+deb8u3 [34.8 kB] Get:59 http://mirrordirector.raspbian.org/raspbian/ jessie/main passwd armhf 1:4.2-3+deb8u1 [927 kB] Get:60 http://mirrordirector.raspbian.org/raspbian/ jessie/main multiarch-support armhf 2.19-18+deb8u2 [179 kB] Get:61 http://mirrordirector.raspbian.org/raspbian/ jessie/main rsyslog armhf 8.4.2-1+deb8u2 [497 kB] Fetched 42.1 MB in 4min 1s (174 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 30215 files and directories currently installed.) Preparing to unpack .../dpkg_1.17.26_armhf.deb ... Unpacking dpkg (1.17.26) over (1.17.25) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up dpkg (1.17.26) ... (Reading database ... 30215 files and directories currently installed.) Preparing to unpack .../login_1%3a4.2-3+deb8u1_armhf.deb ... Unpacking login (1:4.2-3+deb8u1) over (1:4.2-3) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up login (1:4.2-3+deb8u1) ... (Reading database ... 30215 files and directories currently installed.) Preparing to unpack .../perl_5.20.2-3+deb8u3_armhf.deb ... Unpacking perl (5.20.2-3+deb8u3) over (5.20.2-3+deb8u1) ... Preparing to unpack .../perl-base_5.20.2-3+deb8u3_armhf.deb ... Unpacking perl-base (5.20.2-3+deb8u3) over (5.20.2-3+deb8u1) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up perl-base (5.20.2-3+deb8u3) ... : (省略) :
電源OFFしてもバージョンアップできているか確認してみる。
電源OFFはshutdown -h nowでできる。電源ONはUSBケーブルを抜き差しする。
$ dpkg -l openssh-server Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-========================-=================-=================-===================================================== ii openssh-server 1:6.7p1-5+deb8u1 armhf secure shell (SSH) server, for secure access from rem
無事アップデートは完了していた。
0 件のコメント:
コメントを投稿