The architecture of e.g. debconf is not some specific architecture, but "all".
So when you want to use the output of apt-mark as an argument for dpkg(-query), you need to tune the name by a shell function like this, right? :
dpkg-pkgname() { nativearch=$([ "$(uname -i)" = "x86_64" ] && echo amd64 || echo i386) [ -f /var/lib/dpkg/info/"$1".list ] && echo $1 || echo $1:amd64 }
The architecture of e.g. debconf is not some specific architecture, but "all".
So when you want to use the output of apt-mark as an argument for dpkg(-query), you need to tune the name by a shell function like this, right? :
dpkg-pkgname() { dpkg/info/ "$1".list ] && echo $1 || echo $1:amd64
nativearch=$([ "$(uname -i)" = "x86_64" ] && echo amd64 || echo i386)
[ -f /var/lib/
}