E: Unable to locate package winehq-stable

本文指导如何修复apt更新时遇到的证书验证错误,并详细步骤说明如何将https源切换为http,以解决winehq-stable包安装问题,包括修改sources.list.d并重置winehq源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一直过不了

sudo apt update

错误代码:

Err:1 https://dl.winehq.org/wine-builds/debian bullseye InRelease

  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 151.101.110.217 443]

然后下面命令:

sudo apt install winehq-stable --install-recommends  -y

提示错误为:

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

E: Unable to locate package winehq-stable


解决方法需要先解决sudo apt update的错误代码

sudo nano /etc/apt/sources.list.d/wine.list

修改成:

  • 增加[trusted=yes]
  • 将https改成http
deb  [trusted=yes] http://dl.winehq.org/wine-builds/ubuntu/ xenial main

然后再成功运行

sudo apt install --install-recommends winehq-stable
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值