一直过不了
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