[참고] Raspbian : buster에서 bullseye로 업그레이드

Debian 11.0 "bullseye"가 2021년 8월 14일에 출시된
그래서 RaspiOS도 Bullseye로 해보자.

  • 이런 느낌.
    pi@raspberrypi:~ $ uname -a
    Linux raspberrypi 5.10.52-v7l+ #1441 SMP Tue Aug 3 18:11:56 BST 2021 armv7l GNU/Linux
    pi@raspberrypi:~ $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="11"
    VERSION="11 (bullseye)"
    VERSION_CODENAME=bullseye
    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:~ $ gcc --version
    gcc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110
    Copyright (C) 2020 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    pi@raspberrypi:~ $ python3 --version
    Python 3.9.2
    pi@raspberrypi:~ $
    

  • 개요


  • Raspberry Pi OS를 Buster (Debian 10)에서 Bullseye (Debian 11)로 업그레이드
  • 원래대로 남아있는 (다른 패키지를 설치하지 않음)에서 업그레이드 만 확인.

  • 이것↓과 같은 순서

    [참고] Raspbian : Jessie에서 Stretch로 업그레이드

  • 공식이 대응할 때까지 무리하게 이행하지 않는 것이 좋을까 생각한다.

  • 환경


  • Raspberry Pi 4B

  • Raspbian:
  • 2021-05-07-raspios-buster-armhf-lite

  • 2021-05-07-raspios-buster-armhf는 ↓와 같은 메시지가 나온다. sudo apt install gcc-8-base 그러면 먼저 진행됩니다.
    The following packages have unmet dependencies:
    libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
    


  • 절차


  • Raspbian을 구워서 시작.

  • 현재 패키지를 업데이트 및 재부팅
    # 現状のパッケージを更新・再起動
    sudo sh -c 'apt update && apt upgrade -y && reboot'
    

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

  • 재부팅 후

    취향에
    # 不要なパッケージ削除
    sudo apt-get autoremove --purge -y
    
  • ※python 2.xx계는 삭제된다.


  • 실행 예


    pi@raspberrypi:~ $ sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list
    pi@raspberrypi:~ $ sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/raspi.list
    pi@raspberrypi:~ $ sudo apt update
    Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
    Get:2 http://archive.raspberrypi.org/debian bullseye InRelease [23.5 kB]
    Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
    Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [115 kB]
    Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/contrib armhf Packages [60.2 kB]
    Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/non-free armhf Packages [106 kB]
    Get:7 http://raspbian.raspberrypi.org/raspbian bullseye/rpi armhf Packages [1,360 B]
    Fetched 13.5 MB in 7s (1,875 kB/s)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    1061 packages can be upgraded. Run 'apt list --upgradable' to see them.
    pi@raspberrypi:~ $
    pi@raspberrypi:~ $ time sudo sh -c 'apt upgrade -y && apt dist-upgrade -y'
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages were automatically installed and are no longer required:
      ...
      ...
      ...
    Use 'sudo apt autoremove' to remove them.
    The following NEW packages will be installed:
      ...
      ...
      ...
    The following packages have been kept back:
      ...
      ...
      ...
    The following packages will be upgraded:
      ...
      ...
      ...
    319 upgraded, 38 newly installed, 0 to remove and 79 not upgraded.
    Need to get 96.9 MB of archives.
    After this operation, 38.9 MB of additional disk space will be used.
    Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf base-files armhf 11.1+rpi1 [70.2 kB]
      ...
      ...
      ...
    Get:357 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf xauth armhf 1:1.1-1 [36.6 kB]
    Fetched 96.9 MB in 13s (7,226 kB/s)
    apt-listchanges: Reading changelogs...
    apt-listchanges: News
    ---------------------
      ...
      ...
      ...
    Extracting templates from packages: 100%
    Preconfiguring packages ...
    (Reading database ... 98827 files and directories currently installed.)
      ...
      ...
      ...
    Setting up passwd (1:4.8.1-1) ...
    
    Configuration file '/etc/default/useradd'
     ==> Modified (by you or by a script) since installation.
     ==> Package distributor has shipped an updated version.
       What would you like to do about it ?  Your options are:
        Y or I  : install the package maintainer's version
        N or O  : keep your currently-installed version
          D     : show the differences between the versions
          Z     : start a shell to examine the situation
     The default action is to keep your current version.
    *** useradd (Y/I/N/O/D/Z) [default=N] ? Y
    Installing new version of config file /etc/default/useradd ...
    Removing obsolete conffile /etc/cron.daily/passwd ...
    Selecting previously unselected package libmd0:armhf.
      ...
      ...
      ...
    Processing triggers for initramfs-tools (0.140) ...
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages were automatically installed and are no longer required:
      ...
      ...
      ...
    Use 'sudo apt autoremove' to remove them.
    The following packages will be REMOVED:
      ...
      ...
      ...
    The following NEW packages will be installed:
      ...
      ...
      ...
    The following packages will be upgraded:
      ...
      ...
      ...
    79 upgraded, 50 newly installed, 11 to remove and 0 not upgraded.
    Need to get 126 MB of archives.
    After this operation, 228 MB of additional disk space will be used.
    Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf python3-spidev armhf 20200602~200721-1 [12.1 kB]
      ...
      ...
      ...
    Get:129 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf wpasupplicant armhf 2:2.9.0-21 [1,027 kB]
    Fetched 126 MB in 13s (9,643 kB/s)
    apt-listchanges: Reading changelogs...
    apt-listchanges: News
    ---------------------
      ...
      ...
      ...
    Extracting templates from packages: 100%
    Preconfiguring packages ...
    (Reading database ... 41433 files and directories currently installed.)
      ...
      ...
      ...
    Processing triggers for mailcap (3.69) ...
    
    real    11m35.158s
    user    4m19.591s
    sys     2m43.023s
    pi@raspberrypi:~ $
    pi@raspberrypi:~ $ sudo reboot
    
    
    
    
  • ↓ 패키지 업데이트 중에 확인하지 않고 서비스를 다시 시작할 수 있습니까? , 그리고 ...
    예를 선택합니다.


  • 기타

    좋은 웹페이지 즐겨찾기