19
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[メモ] (らずぱい) Raspbian: Jessie から Stretchへアップグレード

Last updated at Posted at 2017-07-24

(2017/8/18): 公式イメージがStretchになった模様

RASPBIAN STRETCH HAS ARRIVED FOR RASPBERRY PI

概要

  • Raspbianを Jessie(Debian 8)から、Stretch(Debian 9)にアップグレード
  • 参考元記事: Raspbian GNU/Linux upgrade from Jessie to Raspbian Stretch 9
  • 素のままのらずびあん(他のパッケージをインストールしない)からの、Stretchへのアップグレードのみ確認。

環境

  • Raspberry Pi 2
  • Raspbian:
    • 2017-07-05-raspbian-jessie-lite

手順

  1. Raspbianを焼いて、起動。

  2. 現状のパッケージを更新・再起動

    # 現状のパッケージを更新・再起動
    sudo sh -c 'apt update && apt upgrade -y && reboot'
    
  3. Stretchへアップグレード

    # パッケージレポジトリを `jessie` から、`stretch`へ変更
    sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
    sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/raspi.list #2017.8.18追記
    
    # パッケージ情報更新
    sudo apt update
    
    # シミュレートモードで、様子見
    apt --simulate upgrade -y
    
    # パッケージ更新・再起動 ... 途中、設定とかどうするかとか、きかれる。。とりあえず、Y.
    time sudo sh -c 'apt upgrade -y && apt dist-upgrade -y && reboot'
    
  4. 再起動後

    お好みで
    # 不要なパッケージ削除
    sudo apt-get autoremove --purge -y
    
    • 再起動後、IPアドレスが変わっている場合もあるよ.

その他

  • ssh経由でもできた。

  • /etc/os-release

     pi@raspberrypi:~ $ cat /etc/os-release
     PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
     NAME="Raspbian GNU/Linux"
     VERSION_ID="9"
     VERSION="9 (stretch)"
     ID=raspbian
     ID_LIKE=debian
     HOME_URL="http://www.raspbian.org/"
     SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
     BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
     pi@raspberrypi:~ $ uname -a
     Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
     pi@raspberrypi:~ $
    
  • raspbian-liteにて、

     real    39m59.530s
     user    8m40.870s
     sys    7m9.640s
    
19
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?