Score:3

apt error: repository doesn't support architecture 'i386'

it flag

When I run sudo apt update got this message:

N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt hirsute-pgdg InRelease' doesn't support architecture 'i386'

this is output of dpkg --get-selections | awk '/i386/{print $1}'

gcc-11-base:i386
libc6:i386
libcap2:i386
libcom-err2:i386
libcrypt1:i386
libdbus-1-3:i386
libgamemode0:i386
libgamemodeauto0:i386
libgcc-s1:i386
libgcrypt20:i386
libgpg-error0:i386
libgssapi-krb5-2:i386
libidn2-0:i386
libk5crypto3:i386
libkeyutils1:i386
libkrb5-3:i386
libkrb5support0:i386
liblz4-1:i386
liblzma5:i386
libnsl2:i386
libnss-nis:i386
libnss-nisplus:i386
libssl1.1:i386
libsystemd0:i386
libtirpc3:i386
libunistring2:i386
libzstd1:i386

checked this directory /etc/apt/sources.list.d, but there is nothing about postgres to change it from something like this : REPOCONFIG="deb http://dl.google.com/linux/earth/deb/ stable main" to : REPOCONFIG="deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main"

output of rep -r postgresql /etc/apt --include=*.list :

/etc/apt/sources.list.d/pgdg.list:deb http://apt.postgresql.org/pub/repos/apt hirsute-pgdg main
N0rbert avatar
zw flag
What is the output of `grep -r postgresql /etc/apt --include=*.list` ?
Mohammad javad avatar
it flag
@N0rbert this is the output `/etc/apt/sources.list.d/pgdg.list:deb http://apt.postgresql.org/pub/repos/apt hirsute-pgdg main`
nobody avatar
gh flag
Does this answer your question? [Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'xxx' doesn't support architecture 'i386'](https://askubuntu.com/questions/741410/skipping-acquire-of-configured-file-main-binary-i386-packages-as-repository-x)
Mohammad javad avatar
it flag
@nobody No, I tried everything in that question but not worked. The answer from _N0rbert_ worked and everything is fine now.
Score:7
zw flag

You have to edit the /etc/apt/sources.list.d/pgdg.list file to change

deb http://apt.postgresql.org/pub/repos/apt hirsute-pgdg main

to

deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt hirsute-pgdg main

by sudo nano /etc/apt/sources.list.d/pgdg.list, Ctrl+o, Ctrl+x.

Then update package lists by sudo apt-get update and so on.

Mohammad javad avatar
it flag
now it's working without any error message, thank you .
Gri Ma avatar
cn flag
Ubuntu 22.04 LTS is not showing a pgdg.list.
Llohann avatar
md
@GriMa the `.list` file depends on the repository that raises the problem. Try `ls /etc/apt/sources.list.d` to compare the name of the `.list` files with the repository reported in the error.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.