Skip to content

Instantly share code, notes, and snippets.

View XuCpeng's full-sized avatar
🎯
Focusing

Stardust XuCpeng

🎯
Focusing
View GitHub Profile
@icsaas
icsaas / fix.sh
Created March 31, 2014 01:35
dpkg: warning: files list file for package `*****' missing, assuming package has no files currently installed
#!/bin/bash
set -e
# Clean out /var/cache/apt/archives
apt-get clean
# Fill it with all the .debs we need
apt-get --reinstall -dy install $(dpkg --get-selections | grep '[[:space:]]install' | cut -f1)
DIR=$(mktemp -d -t info-XXXXXX)
for deb in /var/cache/apt/archives/*.deb