每当我在 ubuntu 上运行 sudo apt update 时。我收到此错误:

问题描述 投票:0回答:1
E: Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ noble-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc != /usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg
E: The list of sources could not be read.

如何消除这个错误?

linux postgresql ubuntu installation terminal
1个回答
0
投票

当你不需要 postgresql 时,我会尝试像这样修复它。

  1. sudo apt purge postgresql -y

其他:

  1. sudo apt --fix-broken install
  2. sudo rm /usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg
  3. sudo dpkg --configure -a
  4. sudo apt update -y && sudo apt upgrade -y

如果有效请告诉我

© www.soinside.com 2019 - 2024. All rights reserved.