1

I have recently installed Ubuntu 20.04 LTS and I am a bit fresh user for ubuntu. after installing postgresql 14, and I ran sudo apt update. Then it says

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

Already tested /etc/apt/sources.list.d/pgdg.list changed from

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

to

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

but still the message shows up

picalin
  • 21
  • 2
  • UPDATE: Solved! The file was like this `deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main # deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main` then I changed to `deb [arch=amd64] https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main # deb [arch=amd64] https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main` Then it worked! – picalin Oct 20 '21 at 00:14
  • 1
    Consider posting the details of your solution as an *answer*. This will be most helpful for future visitors with the same question. Comments are temporary in nature and answers allow for better formatting so the text can be copy/pasted more easily. You can also come back in a few days and accept your own answer. Thanks for contributing to Ask Ubuntu! – Nmath Oct 20 '21 at 05:33
  • 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) – karel Mar 02 '22 at 10:13

1 Answers1

1

The file was like this

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

then I changed

deb [arch=amd64] https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main 
# deb [arch=amd64] https://apt.postgresql.org/pub/repos/apt/ focal-pgdg main

then it worked. It seems it is important to add [arch=amd64] and put "s" in https

picalin
  • 21
  • 2