跳过获取配置文件“https://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease”不支持架构“i386”

跳过获取配置文件“https://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease”不支持架构“i386”

我最近安装了 Ubuntu 20.04 LTS,我是 Ubuntu 的新用户。在安装了 postgresql 14 之后,我运行了sudo apt update。然后它说

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'

已经测试 /etc/apt/sources.list.d/pgdg.list

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

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

但消息仍然出现

答案1

该文件是这样的

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

然后我改变了

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

然后就成功了。看来添加 [arch=amd64] 并在 https 中输入“s”很重要

相关内容