apt-cache show shows various versions of the package
# apt-cache show libc6:i386 Package: libc6 Version: 2.17-97 Architecture: i386 ... Package: libc6 Status: install ok installed Version: 2.17-7 Architecture: i386 Multi-Arch: same ... Package: libc6 Version: 2.13-38 Architecture: i386 ... # apt-get show libc6:amd64 Package: libc6 Version: 2.17-97 Architecture: amd64 ... Package: libc6 Version: 2.13-38 Architecture: amd64 ...
But how to map a package version to release codename like stable/testing/unstable?
[XY problem note] - what I try to to and what happens:
Trying bootstrap my i386 debian to also run amd64 binaries (keeping i386 as primary arch),
- As a first step in trying the new amd64 world, I tried to run a program,
- It failed to find libssl.so.1.0.0,
- I tried to install libssl1.0.0:amd64,
- got stopped by libgcc1 incompatibility,
- tried installing libgcc1:amd64, got errors about incompatibility,
- upgraded the system to more recent packages (such as
apt-get upgradeshows zeroes),
- forcibly upgraded i386 libgcc-related packages by installing with explicit versions specified (
apt-get install libstdc++6=4.8.2-1 gcc-4.8-base=4.8.2-1 libgcc1=1:4.8.2-1 libgfortran3=4.8.2-1 libquadmath0=4.8.2-1 libgcc-4.8-dev=4.8.2-1 libgomp1=4.8.2-1 libitm1=4.8.2-1 libatomic1=4.8.2-1 libasan0=4.8.2-1 libstdc++-4.8-dev=4.8.2-1)
- tried installing libgcc1:amd64, got less errors comparing to before, but still stopped by absence of libc6:amd64,
- tried installing libc6:amd64, got stopped by massive incompatibilities,
- found (according to
apt-cache info) that for "my" i386 version of libc6 there's currently no corresponding amd64 version available.
- Confused by various versions: which is still from "squeeze" (too old), which is from "sid" (available only for manual installation, not for upgrading). Why there's no "my" version of a library even though I just upgraded fully?..
[/XY problem note]
# apt-cache policy libc6:i386 libc6: Installed: 2.17-7 Candidate: 2.17-7 Version table: 2.17-97 0 10 http://ftp.de.debian.org/debian/ sid/main i386 Packages 10 http://ftp.mgts.by/debian/ testing/main i386 Packages *** 2.17-7 0 100 /var/lib/dpkg/status 2.13-38 0 900 http://ftp.mgts.by/debian/ wheezy/main i386 Packages
Looks like my libc6 is something in-between.