j-nsmg
Last Updated: April 28, 2016
·
1.614K
· phaus

fixing "dpkg: warning: files list file for package 'x' missing"

for package in $(apt-get upgrade 2>&1 | grep "warning: files list file for package '" | grep -Po "[^'\n ]+'" | grep -Po "[^']+"); do apt-get install --reinstall "$package"; done