「亲测有效」解决:如何禁用dl.winehq.org | kali 移除winehq源 |由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F

以下是全部的问题流程,如不需了解直接跳到最终解决方案!!! 部分即可

文章共 9557 字

发现问题 

 今天update upgrade时频频报错且贼慢:

┌──(root㉿kali-raspberry-pi)-[~]
└─# sudo apt update
sudo apt upgrade
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [41.2 kB]
命中:2 http://mirrors.aliyun.com/kali kali-rolling InRelease
命中:3 http://http.re4son-kernel.com/re4son kali-pi InRelease
命中:4 http://repo.mysql.com/apt/ubuntu bionic InRelease
忽略:5 https://dl.winehq.org/wine-builds/ubuntu kali-rolling InRelease
获取:6 https://dl.winehq.org/wine-builds/debian buster InRelease [6,266 B]
错误:7 https://dl.winehq.org/wine-builds/ubuntu kali-rolling Release
  404  Not Found [IP: 151.101.78.217 443]
错误:6 https://dl.winehq.org/wine-builds/debian buster InRelease
  由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
正在读取软件包列表... 完成
E: 仓库 “https://dl.winehq.org/wine-builds/ubuntu kali-rolling Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: GPG 错误:https://dl.winehq.org/wine-builds/debian buster InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
E: 仓库 “https://dl.winehq.org/wine-builds/debian buster InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
正在计算更新... 完成
下列软件包的版本将保持不变:
  default-mysql-server pgcli php-common powershell-empire python3-pgspecial qterminal
  qtermwidget5-data
下列软件包将被升级:
  aspell-en bubblewrap chromium chromium-common chromium-l10n chromium-sandbox colord
  colord-data cron cron-daemon-common curl dbus dbus-bin dbus-daemon
  dbus-session-bus-common dbus-system-bus-common dbus-user-session dbus-x11
  desktop-base distro-info-data dpkg dpkg-dev dvisvgm exploitdb firmware-amd-graphics
  firmware-atheros firmware-intel-sound firmware-iwlwifi firmware-libertas
  firmware-linux firmware-linux-nonfree
-----------------------------------后略--------------------------------------

试图分析

记起几天前试图安装winehq时不慎引入了错误仓库(国内访问有问题),会提示如下信息 

错误:7 https://dl.winehq.org/wine-builds/ubuntu kali-rolling Release
  404  Not Found [IP: 151.101.78.217 443]
错误:6 https://dl.winehq.org/wine-builds/debian buster InRelease
  由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
正在读取软件包列表... 完成
E: 仓库 “https://dl.winehq.org/wine-builds/ubuntu kali-rolling Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: GPG 错误:https://dl.winehq.org/wine-builds/debian buster InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
E: 仓库 “https://dl.winehq.org/wine-builds/debian buster InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

 查看源时未发现https://dl.winehq.org/wine-builds/ubuntu kali-rolling Release和https://dl.winehq.org/wine-builds/debian buster InRelease

┌──(root㉿kali-raspberry-pi)-[~]
└─# vi /etc/apt/sources.list

0400492aac984958a68ed7cbc50f83c1.png

回溯代码发现问题 发现之前安装qq-wine时

┌──(root㉿kali-raspberry-pi)-[~]
└─# #!/bin/sh
echo '正在添加32位架构支持'
sudo dpkg --add-architecture i386
wget https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
echo '正在添加Wine的源'
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
echo '正在更新源'
sudo apt-get update
echo ‘正在安装Wine的稳定版’
sudo apt-get install --install-recommends winehq-stable
echo '正在安装winetricks'
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
sudo cp winetricks /usr/local/bin
echo '安装完成,重启后进入下载的Wine QQ文件夹,终端执行sh qq.sh即可'

锁定问题代码

echo '正在添加Wine的源'
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

试图解决(艰难曲折)

于是各种搜索,毫无用处

391a5c5661b044aabc5d9ad98f174afa.png

都是之前搜的,我超他奶奶

 随后看到一篇文章Ubuntu系统添加和删除PPA源 - 简书在Ubuntu系统中经常需要安装第三方软件,此时就需要先添加该软件的PPA源,再安装该软件。 百度百科对PPA的解释为:Personal Package Archives(个...https://www.jianshu.com/p/ecaca7079443

本以为要结束

 

┌──(root㉿kali-raspberry-pi)-[~]
└─# sudo add-apt-repository -r https://dl.winehq.org/wine-builds/ubuntu/
    sudo add-apt-repository -r https://dl.winehq.org/wine-builds/debian buster InRelease

┌──(root㉿kali-raspberry-pi)-[~]
└─# sudo add-apt-repository -r https://dl.winehq.org/wine-builds/debian/

没想到更猛烈了

 

 7f068f882a634e33bbab8fbec55f1a15.png

 c0562972f1ad4251acccdf92576b92af.png

 变法尝试

┌──(root㉿kali-raspberry-pi)-[~]
└─# sudo add-apt-repository -r https://dl.winehq.org/wine-builds/debian
    sudo add-apt-repository -r https://dl.winehq.org/wine-builds/ubuntu
Repository: 'deb https://dl.winehq.org/wine-builds/debian kali-rolling main'
Description:
Archive for codename: kali-rolling components: main
More info: https://dl.winehq.org/wine-builds/debian
Removing repository.
Press [ENTER] to continue or Ctrl-c to cancel.
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [41.2 kB]
命中:2 http://mirrors.aliyun.com/kali kali-rolling InRelease
命中:3 http://http.re4son-kernel.com/re4son kali-pi InRelease
获取:4 https://dl.winehq.org/wine-builds/debian buster InRelease [6,266 B]
命中:5 http://repo.mysql.com/apt/ubuntu bionic InRelease
错误:4 https://dl.winehq.org/wine-builds/debian buster InRelease
  由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
正在读取软件包列表... 完成
N: 鉴于仓库 'http://http.re4son-kernel.com/re4son kali-pi InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。
W: GPG 错误:https://dl.winehq.org/wine-builds/debian buster InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
E: 仓库 “https://dl.winehq.org/wine-builds/debian buster InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: 密钥存储在过时的 trusted.gpg 密钥环中(/etc/apt/trusted.gpg),请参见 apt-key(8) 的 DEPRECATION 一节以了解详情。
N: 鉴于仓库 'http://repo.mysql.com/apt/ubuntu bionic InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'mysql-apt-config/binary-armhf/Packages' 的获取。
N: 鉴于仓库 'http://repo.mysql.com/apt/ubuntu bionic InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'mysql-tools/binary-armhf/Packages' 的获取。
Repository: 'deb https://dl.winehq.org/wine-builds/ubuntu kali-rolling main'
Description:
Archive for codename: kali-rolling components: main
More info: https://dl.winehq.org/wine-builds/ubuntu
Removing repository.
Press [ENTER] to continue or Ctrl-c to cancel.
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [41.2 kB]
命中:2 http://mirrors.aliyun.com/kali kali-rolling InRelease
命中:3 http://http.re4son-kernel.com/re4son kali-pi InRelease
命中:4 http://repo.mysql.com/apt/ubuntu bionic InRelease
获取:5 https://dl.winehq.org/wine-builds/debian buster InRelease [6,266 B]
错误:5 https://dl.winehq.org/wine-builds/debian buster InRelease
  由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
正在读取软件包列表... 完成
N: 鉴于仓库 'http://http.re4son-kernel.com/re4son kali-pi InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: 密钥存储在过时的 trusted.gpg 密钥环中(/etc/apt/trusted.gpg),请参见 apt-key(8) 的 DEPRECATION 一节以了解详情。
N: 鉴于仓库 'http://repo.mysql.com/apt/ubuntu bionic InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'mysql-apt-config/binary-armhf/Packages' 的获取。
N: 鉴于仓库 'http://repo.mysql.com/apt/ubuntu bionic InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'mysql-tools/binary-armhf/Packages' 的获取。
W: GPG 错误:https://dl.winehq.org/wine-builds/debian buster InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
E: 仓库 “https://dl.winehq.org/wine-builds/debian buster InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

┌──(root㉿kali-raspberry-pi)-[~]
└─# sudo apt update
sudo apt upgrade
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [41.2 kB]
命中:2 http://mirrors.aliyun.com/kali kali-rolling InRelease
命中:3 http://http.re4son-kernel.com/re4son kali-pi InRelease
获取:4 https://dl.winehq.org/wine-builds/debian buster InRelease [6,266 B]
命中:5 http://repo.mysql.com/apt/ubuntu bionic InRelease
错误:4 https://dl.winehq.org/wine-builds/debian buster InRelease
  由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
正在读取软件包列表... 完成
N: 鉴于仓库 'http://http.re4son-kernel.com/re4son kali-pi InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。
W: GPG 错误:https://dl.winehq.org/wine-builds/debian buster InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F
E: 仓库 “https://dl.winehq.org/wine-builds/debian buster InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: 密钥存储在过时的 trusted.gpg 密钥环中(/etc/apt/trusted.gpg),请参见 apt-key(8) 的 DEPRECATION 一节以了解详情。
N: 鉴于仓库 'http://repo.mysql.com/apt/ubuntu bionic InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'mysql-apt-config/binary-armhf/Packages' 的获取。
N: 鉴于仓库 'http://repo.mysql.com/apt/ubuntu bionic InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'mysql-tools/binary-armhf/Packages' 的获取。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
正在计算更新... 完成
下列软件包的版本将保持不变:
  default-mysql-server pgcli php-common powershell-empire python3-pgspecial
  qterminal qtermwidget5-data
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 7 个软件包未被升级。

┌──(root㉿kali-raspberry-pi)-[~]
└─#

艰难曲折中出现转机

然后我又看到了一篇文章

如何在命令行下删除一个ppa源_命令行删除源_秋雪夜雨寒的博客-CSDN博客PPA 的一般形式是ppa:user/ppa-name添加 PPA 源的命令为:sudo add-apt-repository ppa:user/ppa-name也可以打开【软件中心】->【软件源】->【其他软件】,选择添加,在弹出的窗口中 AT 行里输入 ppa:user/ppa-name 格式的内容。例如,要添加一个用户名为 eugenesan 到 java 源https://blog.csdn.net/longyinyushi/article/details/50612649其中

5867c7a71892458190380fa96faf1db8.png

最终解决方案!!! 

据 

 然后进入 /etc/apt/sources.list.d 目录,将相应 ppa 源的保存文件删除。
最后同样更新一下。

 进入目录

 2618fb4f2fa24d359b54a3f185ddccfd.png

 删除罪魁祸首

e6d82dd551d545c3bd86bcb9a151bc8b.png 

 最终修好了!

┌──(kali㉿kali-raspberry-pi)-[~]
└─$ sudo apt update
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [41.2 kB]
命中:2 http://mirrors.aliyun.com/kali kali-rolling InRelease                                       
命中:3 http://http.re4son-kernel.com/re4son kali-pi InRelease                                      
命中:4 http://repo.mysql.com/apt/ubuntu bionic InRelease                                           
已下载 41.2 kB,耗时 2秒 (19.7 kB/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
有 7 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
N: 鉴于仓库 'http://http.re4son-kernel.com/re4son kali-pi InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: 密钥存储在过时的 trusted.gpg 密钥环中(/etc/apt/trusted.gpg),请参见 apt-key(8) 的 DEPRECATION 一节以了解详情。
N: 鉴于仓库 'http://repo.mysql.com/apt/ubuntu bionic InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'mysql-apt-config/binary-armhf/Packages' 的获取。
N: 鉴于仓库 'http://repo.mysql.com/apt/ubuntu bionic InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'mysql-tools/binary-armhf/Packages' 的获取。
                                                                                                    
┌──(kali㉿kali-raspberry-pi)-[~]
└─$ sudo apt upgrade   
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
正在计算更新... 完成
下列软件包的版本将保持不变:
  default-mysql-server pgcli php-common powershell-empire python3-pgspecial qterminal
  qtermwidget5-data
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 7 个软件包未被升级。
                                                                                                    
┌──(kali㉿kali-raspberry-pi)-[~]
└─$ 

欢迎与我一同讨论开发问题(大佬请回避!)

我的微-信:wy1709824550

我的Q-Q:1709824550

后续会成立问题讨论群欢迎加入抢红-包!

 

 

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值