Especially when running Sid, there are many packages that become non-installable as the dependencies change ABI versions, or the dependencies themselves may have been dropped. It'd be good to know how to filter these packages so that a potential maintainer can check what problematic packages are there on the repo.
So far I came up with:
#!/bin/sh
apt-cache pkgnames|xargs apt-get -s install\
|sed "/ : /h;/installable/{x;/ .* :/{s/ \(.*\) :.*/\1/;b}};d" | sort
It does not recursively mark packages which depend on package "not going to be installed" X, where X is package that is marked because one of the dependecies is "not installable". E.g in the following:
foo : Depends on bar but not going to be installed
bar : Depends on baz but not installable
bar will be marked but foo will not. And I shouldn't just mark all packages that has the line "not going to be installed" because it could be bar is a package that exists but breaks another installed package.

debtags search devel::debian. – Gilles Jun 8 '11 at 20:46