Rolly Maulana Awangga :: Catatan Ngoprek IT

Pakar dan Awam sama saja, sama sama belajar

Fixing Debian Broken Package

I have trouble with my debian instalation after removing xfce and migrating to gnome. the terminal appeard like this :
dpkg: warning: files list file for package ‘libc6:i386’ missing; assuming package has no files currently installed
dpkg: warning: files list file for package ‘libslang2:i386’ missing; assuming package has no files currently installed

so i found tutorial in here:
http://serverfault.com/questions/430682/dpkg-warning-files-list-file-for-package-x-missing
and here
https://blog.srvbox.com/aptitude-dist-upgrade-or-howto-resolve-dpkg-warning-files-list-file-for-package/

Ill try the solution with this script :
for package in $(apt-get upgrade 2>&1 | grep “warning: files list file” | sed “s/.*’//; s/://”); do apt-get install –reinstall “$package”; done

and then this script :
for pp in `awk ‘/files list file for package/ {p=$8; if ($8 !~ /47/) p=$11; gsub(/47|:.*/,””,p); if (!packages[p]) packages[p]=p;} END {for (i in packages) print i; }’ /var/log/apt/term.log`; do
aptitude reinstall “$pp”;
done

and maybe this last try to update per package by command :
dpkg-deb -c /var/cache/apt/archives/libc6_2.13-38_i386.deb | awk {‘sub(/^\./,””,$6);sub(/^\/$/,”/.”,$6); sub(/\/$/,””,$6); print $6’} > /var/lib/dpkg/info/libc6:i386.list

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: