Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2917  / 2 Years ago, sun, february 13, 2022, 8:58:18

How can I remove a repository from apt-get? I know this is a duplicate, but the existing answers didn't work for me.



When I run apt-get update I'm getting the following error:



Err:13 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease                                                            
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.winehq.org/wine-builds/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F


I don't need wine anymore so I've been trying to remove it.



When I run sudo apt-cache policy, I can see Wine's repository listed as follows:



500 https://dl.winehq.org/wine-builds/ubuntu xenial/main i386 Packages
release v=16.04,o=dl.winehq.org,a=xenial,n=xenial,l=winehq,c=main,b=i386
origin dl.winehq.org
500 https://dl.winehq.org/wine-builds/ubuntu xenial/main amd64 Packages
release v=16.04,o=dl.winehq.org,a=xenial,n=xenial,l=winehq,c=main,b=amd64
origin dl.winehq.org


I've tried various different syntaxes to remove the repository but nothing works. Here are some of the things I tried:



sudo add-apt-repository --remove ppa:https://dl.winehq.org/wine-builds/ubuntu
sudo apt-add-repository --remove 'deb https://dl.winehq.org/wine-builds/ubuntu xenial inRelease'
sudo apt-add-repository --remove 'deb https://dl.winehq.org/wine-builds/ubuntu ./'
sudo apt-add-repository --remove 'https://dl.winehq.org/wine-builds/ubuntu ./'
sudo apt-add-repository --remove 'https://dl.winehq.org/wine-builds/ubuntu'

More From » apt

 Answers
2

Remove the file containing a link to that repo from /etc/apt/sources.list.d or from /etc/apt.sources.list file.


[#6124] Sunday, February 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulild

Total Points: 239
Total Questions: 103
Total Answers: 112

Location: Papua New Guinea
Member since Thu, Jul 9, 2020
4 Years ago
;