Cannot get why
$ apt-cache policy foo N: Unable to locate package foo
$ apt-cache policy foo 2>&1 | grep .
Where in the latter call am I doing the wrong assumption?
The original task: I need to process the
apt-cache policy output presumably :-)
foo used in my example may be substituted with any package name that does not exist in your
there is an answer with a workaround. Additional
+50 bounty will be awarded to anyone who explains why the
2>&1 solution does not work.