알뜰살뜰 정보/Raspberry PI

files list file for package 'raspberrypi-kernel' is missing final newline 에러 발생 시

쉬고싶은 거북이 2020. 12. 24. 11:03

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