apt-get upgrade error 에러
files list file for package 'raspberrypi-kernel' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
dpkg: unrecoverable fatal error, aborting:
files list file for package 'raspberrypi-kernel' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
해결방법
sudo rm /var/lib/dpkg/info/raspberrypi-kernel*
sudo rm /var/lib/dpkg/info/adwaita-icon-theme*
sudo apt-get install adwaita-icon-theme --reinstall
sudo apt-get install raspberrypi-kernel --reinstall
sudo reboot 재부팅 후
sudo apt-get update && sudo apt-get upgrade
아래와 같은 에러 방지를 위해 sudo dpkg --configure -a 를 해줍시다.
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
Affected packages: docker-ce:armhf
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get clean