自宅サーバをCore iの中古に変更するつもりが、まもなく公開されるDebian11(Bullseye)でも、Geode(i386)のサポートが続きそうな気配があったので、今更だがDebian9(Stretch)からDebian10(Buster)にアップグレードしてみた。
$ sudo su # lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.13 (stretch) Release: 9.13 Codename: stretch
9.13がStretchの最終版。
# apt-get update # apt-get upgrade # dpkg --audit
# apt autoremove # apt autoclean
# nano /etc/apt/sources.list
deb http://httpredir.debian.org/debian buster main contrib non-free deb http://httpredir.debian.org/debian buster-updates main contrib non-free deb http://security.debian.org/ buster/updates main contrib non-free deb-src http://security.debian.org/ buster/updates main contrib non-free
# apt-get update
エラー発生
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi' E: Sub-process returned an error code
上記エラーのため、appstreamをインストール
# apt-get install appstream
パッケージリストの更新を再開
# apt-get update
# apt-get upgrade
作業はSSHでリモートログインして行っていたのだが、間違ってセッションを切断...
# ap-get upgrade
で再開すると、lock状態。よく見ると実行中のプロセスがあったのでkillする。
再実行で、"sudo dpkg --configure -a"せよとのこと。
# dpkg --configure -a
無事に終了したので再度
# ap-get upgrade
# apt full-upgrade
エラー発生
N: Ignoring file '50unattended-upgrades.ucftmp' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
google先生に聞いても決め手がないので問答無用で削除
# rm /etc/apt/apt.conf.d/50unattended-upgrades.ucftmp
"apt --fix-broken install" せよというので実行するも、まだ、エラーが残っている?
Preparing to unpack .../mesa-va-drivers_17.3.8-1_amd64.deb ... Unpacking mesa-va-drivers:amd64 (17.3.8-1) ... dpkg: error processing archive /var/cache/apt/archives/mesa-va-drivers_17.3.8-1_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so', which is also in package vdpau-va-driver:amd64 0.7.4-dmo5 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/mesa-va-drivers_17.3.8-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
どうも、vdpau-va-driver の存在が問題らしい。実は、xserver自体が不要なのだが... バージョンアップを重ねてきたツケかな?
# dpkg -r vdpau-va-driver
再開
# apt full-upgrade
無事完了したところで、
# dpkg --audit
依存も問題なし
# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
再起動して完了。