跳过获取已配置文件‘ main/bin-i386/Packages’

下午好,请告诉我哪里做错了。我刚刚在我的电脑上安装了 Linux Ubuntu,但仍然对它一无所知。我尝试安装 PostreSQL 和 pgAdmin。我安装在这个视频教程 https://www.youtube.com/watch?v=Vdzb7JTPnGk我得到这个错误。

错误文本: 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'

请告诉我怎么修好它。 我的 ubuntu 版本: Ubuntu 20.04 LTS

72485 次浏览

您必须将 /etc/apt/sources.list.d/pgdg.list的行更改为

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

运行以下命令:

sudo vim /etc/apt/sources.list.d/pgdg.list

更换这条线:

http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease

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

使用 wq保存和退出

Run:

sudo -H gedit /etc/apt/sources.list.d/pgdg.list

换行:

http://apt.postgresql...

与:

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

保存并运行:

sudo apt-get update

运行 这个命令查找 /pgdg.list文件

sudo -H gedit /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

SAVE file and < strong > RUN

sudo apt-get update