Ubuntu 20.04: apt.postgresql.org/pub/repos/apt focal-pgdgInRelease' doesn't support architecture 'i386'

Поиск
Список
Период
Сортировка
Искать

Ubuntu 20.04: apt.postgresql.org/pub/repos/apt focal-pgdgInRelease' doesn't support architecture 'i386'

От:
Hugh <cetus35@yahoo.com>
Дата:
Hi,

While this doesn't appear to be a bug that causes problems of any kind, I do have a question about its cause.

The "error" listed in the Subject: line is basically what I'm seeing. The entire message is below, particularly the 'N:' at the end. Is there a repo setting I should change to prevent the request for '386' architecture? Thank you in advance for your assistance.

user@ubuntu:~$ sudo apt update

Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]     
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]      
Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]  
Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [90.4 kB]
Hit:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease             
Get:7 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [21.4 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [532 B]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [16.6 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [208 B]
Fetched 441 kB in 1s (367 kB/s)            
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'

Thanks,
Hugh



Re: Ubuntu 20.04: apt.postgresql.org/pub/repos/apt focal-pgdgInRelease' doesn't support architecture 'i386'

От:
Adrian Klaver <adrian.klaver@aklaver.com>
Дата:
On 5/16/20 3:45 PM, Hugh wrote:
> Hi,
> 
> While this doesn't appear to be a bug that causes problems of any kind, I do have a question about its cause.
> 
> The "error" listed in the Subject: line is basically what I'm seeing. The entire message is below, particularly the 'N:' at the end. Is there a repo setting I should change to prevent the request for '386' architecture? Thank you in advance for your assistance.
> 
> user@ubuntu:~$ sudo apt update
> 
> Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
> Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
> Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
> Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
> Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [90.4 kB]
> Hit:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease

Per here:

https://www.postgresql.org/download/linux/ubuntu/

shouldn't the above be:

focal-pgdg main

> Get:7 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [21.4 kB]
> Get:8 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [532 B]
> Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [16.6 kB]
> Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [208 B]
> Fetched 441 kB in 1s (367 kB/s)
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> All packages are up to date.
> N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
> 
> Thanks,
> Hugh
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com


Re: Ubuntu 20.04: apt.postgresql.org/pub/repos/apt focal-pgdgInRelease' doesn't support architecture 'i386'

От:
Thomas Munro <thomas.munro@gmail.com>
Дата:
On Sun, May 17, 2020 at 10:45 AM Hugh  wrote:
> While this doesn't appear to be a bug that causes problems of any kind, I do have a question about its cause.
>
> The "error" listed in the Subject: line is basically what I'm seeing. The entire message is below, particularly the 'N:' at the end. Is there a repo setting I should change to prevent the request for '386' architecture? Thank you in advance for your assistance.

I'm not sure, but it seems related to this complaint and the answer
might be to tell your sources.list that that source has only amd64:

https://www.postgresql.org/message-id/flat/16402-1f2d77e819f9e1f2%40postgresql.org


Re: Ubuntu 20.04: apt.postgresql.org/pub/repos/apt focal-pgdgInRelease' doesn't support architecture 'i386'

От:
Tim Cross <theophilusx@gmail.com>
Дата:

Hugh  writes:

> Hi,
>
> While this doesn't appear to be a bug that causes problems of any kind, I do have a question about its cause.
>
> The "error" listed in the Subject: line is basically what I'm seeing. The entire message is below, particularly the 'N:' at the end. Is there a repo setting I should change to prevent the request for '386' architecture? Thank you in advance for your assistance.
>
> user@ubuntu:~$ sudo apt update
>
> Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
> Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]     
> Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]      
> Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]  
> Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [90.4 kB]
> Hit:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease             
> Get:7 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [21.4 kB]
> Get:8 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [532 B]
> Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [16.6 kB]
> Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [208 B]
> Fetched 441 kB in 1s (367 kB/s)            
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> All packages are up to date.
> N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
>

This error is because by default the debian package manager is trying to
download details on all supported architectures, but failing to find one
for i386. You can add an architecture tag to the repository definition
in the source list file i.e. /etc/apt/sources.list or
/etc/apt/sources.list.d/postgres.list (or whatever you have called
itIf).  Try adding the arch option as


deb [ arch=amd64 ] http://.....
deb-src [arch=amd64 ] ...

This should tell apt to only look for the amd64 packages. 

-- 
Tim Cross


FAQ