On Sun, Apr 11, 2010 at 08:39:46PM +0200, Jens Seidel wrote:
> Mhm, so my opkg database is corrupt again?
> After "opkg install udev" it works. Will perform a few more installs ...
As it's really not the first time that the list of installed packages (which
is obtained from /usr/lib/opkg/status) doesn't match reality I *strongly*
suggest that all perform the following steps:
1) Check for duplicated entries:
$ grep "Package: " /usr/lib/opkg/status | sort | wc
$ grep "Package: " /usr/lib/opkg/status | sort -u | wc
Both values have to match, if not redirect the output of both commands
(without "| wc") into two files and compare both via diff -u. Now edit
/usr/lib/opkg/status manually and remove the found duplicated entries.
2) Check that all packages p for which a file /usr/lib/opkg/info/$p.list
exists is listed in /usr/lib/opkg/status:
$ for i in /usr/lib/opkg/info/*.list; do
p=$(echo $i | sed -e 's,.*/,,' -e 's,\..*,,')
grep "Package: $p" /usr/lib/opkg/status > /dev/null || echo opkg install $p
done
You should not get any output, otherwise remove the echo to reinstall the
packages not contained in the package list ...
Jens
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user