当我跑步时sudo apt update
收到此消息:
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'
这是输出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
检查了这个目录/etc/apt/sources.list.d
,但是 postgres 没有任何内容可以将其从如下内容更改REPOCONFIG="deb http://dl.google.com/linux/earth/deb/ stable main"
为:REPOCONFIG="deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main"
输出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
答案1
您必须编辑/etc/apt/sources.list.d/pgdg.list
文件才能更改
deb http://apt.postgresql.org/pub/repos/apt hirsute-pgdg main
到
deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt hirsute-pgdg main
由sudo nano /etc/apt/sources.list.d/pgdg.list
,Ctrl+ o,Ctrl+ x。
sudo apt-get update
然后通过等等更新包列表。