Таким образом, существует два PPA, вызывающие предупреждение GPG во время sudo apt update
W: GPG error: https://brave-browser-apt-release.s3.brave.com bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4FE13824E3FFC656
E: The repository 'https://brave-browser-apt-release.s3.brave.com bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4773BD5E130D1D45
E: The repository 'http://repository.spotify.com stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Я хочу удалить их PPA из моей системы, как сделать это сразу?
grep -r 'repository.spotify.com ' /etc/apt
Ouput
/etc/apt/sources.list.d/spotify.list:deb http://repository.spotify.com stable non-free
grep -r 'brave-browser-apt-release.s3.brave.com' /etc/apt
Вывод
/etc/apt/sources.list.d/brave-browser-release-bionic.list:deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main
/etc/apt/sources.list.d/brave-browser-release-bionic.list.save:deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main
Можно отредактировать (PPA) repo файл непосредственно и удалить запись (записи), которую Вы хотите удалить:
sudo nano /etc/apt/sources.list
Или используйте команду add-apt-repository с переключателем-r для удаления:
sudo add-apt-repository -r ppa:<repo name>
"repo называют" - способная исходная строка репозитория для добавления. Это - один из:
Примеры:
apt-add-repository 'deb http://myserver/path/to/repo stable myrepo'
apt-add-repository 'http://myserver/path/to/repo myrepo'
apt-add-repository 'https://packages.medibuntu.org free non-free'
apt-add-repository http://extras.ubuntu.com/ubuntu
apt-add-repository ppa:user/repository
apt-add-repository multiverse
Затем обновите списки repo:
sudo apt update
Для удаления соответствующих repo ключей (хотя Ваш отсутствуют, таким образом, не требуемый):
:> sudo apt-key list # To list all the keys
/etc/apt/trusted.gpg.d/ubuntu-repo-archive.gpg
------------------------------------------------------
pub rsa4096 2018-01-01 [SC]
F6EC B376 2474 EDA9 D21B 7022 8719 20D1 991B C93C
uid [ unknown] Ubuntu Archive Automatic Signing Key
:> sudo apt-key del "991BC93C" # Specify the key with full code, or just last 8 bytes
:> sudo apt update # Update repos
Переустановите программы, но удалите соответствующие файлы в /etc/apt/sources.list.d/
. В случае с Brave посмотрите, есть ли соответствующий файл с помощью команды
ls /etc/apt/sources.list.d/brave-browser-*.list
, прежде чем удалить его
sudo rm / etc/apt/sources.list.d/brave-browser-*.list