はじめに
半年ほど運用していたRaspbianで、久しぶりにメンテのためapt upgrade
したら、エラーが出てupgrade
出来なくなりました。
pi@raspibp:~ $ sudo apt upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: tzdata 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/273 kB of archives. After this operation, 2048 B of additional disk space will be used. apt-listchanges: Reading changelogs... Preconfiguring packages ... dpkg: warning: files list file for package 'openssh-sftp-server' missing; assuming package has no files currently installed dpkg: unrecoverable fatal error, aborting: files list file for package 'iputils-ping' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)
きちんとupgrade
出来るように処置した手順をまとめました。