Everytime I run apt update I get these messages at the end of output
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://repo.pureos.net/pureos crimson InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://repo.pureos.net/pureos crimson-security InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://repo.pureos.net/pureos crimson-updates InRelease' doesn't support architecture 'i386'
Anyone know why these are showing up? I think it might have something to do with residual config junk from following this howto
I removed i386-linux-gnu.conf from /etc/ld.so.conf.d/, ran sudo ldconfig.
Also removed unused files from /etc/apt/sources.list.d/ and zapped the cache with sudo rm -rf /var/lib/apt/lists/* but the issues persists.
Looking through the other topic, it mentions a /srv/{$DISTRIBUTION}i386 directory, so that may be lingering from your chroot installation. It has its own /etc/apt/sources.list that may be conflicting with the package manager.
deb http://repo.pureos.net/pureos/ crimson main
deb http://repo.pureos.net/pureos/ crimson-security main
deb http://repo.pureos.net/pureos/ crimson-updates main
$ sudo dpkg-query --list | grep i386
ii libc6-dev-i386 2.36-9+deb12u7 amd64 GNU C Library: 32-bit development libraries for AMD64
ii libc6-i386 2.36-9+deb12u7 amd64 GNU C Library: 32-bit shared libraries for AMD64
I purged both of those packages and dependencies using apt, the ran autoremove to gut more cruft.
After you have verified that you have no installed packages related to the i386 architecture, you can look at and set architectures. Specifically:
The following should list your system architecture. It should not say i386.
dpkg --print-architecture
The following should list any foreign architectures
dpkg --print-foreign-architectures
If you have i386 listed and you don’t have anything installed of that architecture ( see your previous dpkg-query commands … but, just in case, also “dpkg --get-selections | grep i386” ), you can try removing i386 as a foreign architecture:
Looks as if Privacy2 has solved this for you but note that you butchered the grep command that I gave you. In this case the difference in output was too small to be a concern, so it didn’t cause a problem. (Neither grep command is really correct. The correct way would be to match on the actual architecture field but that’s too much like hard work when on a typical system these days there isn’t much i386 stuff.)
[About 25 years ago, I got bit hard by awk’s 1024-character line limit and switched to perl. I eventually switched to python. Sometimes, though, an awk 1-liner is the best solution.]
It turns out that the incorrect grep or the actual architecture filter gets the same subset for me … and it’s not really that small
I think that’s because you had no i386 architecture packages. So you could have proceeded directly to eliminating i386 as per Privacy2’s instructions.
Even though your grep without the colon listed two packages, those are amd64 architecture packages.