![Debian 10 不知何故完全崩溃了 apt-get update/upgrade 不起作用](https://linux22.com/image/195378/Debian%2010%20%E4%B8%8D%E7%9F%A5%E4%BD%95%E6%95%85%E5%AE%8C%E5%85%A8%E5%B4%A9%E6%BA%83%E4%BA%86%20apt-get%20update%2Fupgrade%20%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
Debian 10 不知何故完全损坏了 apt-get update/upgrade 不起作用 ca 证书不起作用 我尝试修复它已经太长时间了,但没有任何效果。这就是为什么我希望有人能在这里帮助我。我是 Linux Debian 的新手,不知道我到底做了什么._。已经谢谢你了:D
apt-get 更新
Err:2 https://packages.sury.org/php buster Release
Certificate verification failed: The certificate is NOT trusted. The certifica te issuer is unknown. Could not handshake: Error in the certificate verificatio n. [IP: 172.67.182.150 443]
Reading package lists... Done
W: https://packages.sury.org/php/dists/buster/InRelease: No system certificates available. Try installing ca-certificates.
W: https://packages.sury.org/php/dists/buster/Release: No system certificates av ailable. Try installing ca-certificates.
E: The repository 'https://packages.sury.org/php buster Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disa bled by default.
N: See apt-secure(8) manpage for repository creation and user configuration deta ```
答案1
问题不在于 Debian。它与https://packages.sury.org/php
.这是一个第三方存储库。
首先,确保您的buster
安装(没有 PHP 的东西)良好并且可以处理证书:
sudo mv /etc/apt/sources.list.d/php.list{,.bak}
sudo apt update
sudo apt install apt-transport-https ca-certificates curl
接下来,如果(且仅当)您信任源,则恢复php.list
并获取最新签名:
sudo mv /etc/apt/source.list.d/php.list{.bak,}
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo apt update
编辑:听起来您已经丢失了主要的 Debian 存档源。重新创建它:
echo "deb http://ftp.debian.org/debian/ buster main" | sudo tee -a /etc/apt/sources.list
然后再试一次