【问题标题】:Cannot Perform apt update on Parrot OS无法在 Parrot OS 上执行 apt 更新
【发布时间】:2021-03-29 06:25:31
【问题描述】:

在过去的两天里,我安装了 Parrot Mate,然后将其升级到最新版本 我会具体介绍我的问题

我的操作系统版本如下:

Linux parrot 5.10.0-5parrot1-amd64 #1 SMP Debian 5.10.24-5parrot1 (2021-03-20) x86_64 GNU/Linux

最初我安装了 MATE 版本,但后来我也使用 apt 安装了 KDE 桌面环境。

此后,每当我执行 sudo apt update 时,我都会收到以下错误。


Hit:1 https://repo.windscribe.com/ubuntu bionic InRelease                          
Ign:2 https://deb.parrot.sh/parrot rolling InRelease       
Ign:3 https://deb.parrot.sh/parrot rolling-security InRelease
Err:4 https://deb.parrot.sh/parrot rolling Release         
  Certificate verification failed: The certificate is NOT trusted. The revocation or OCSP data are old and have been superseded.  Could not handshake: Error in the certificate verification. [IP: 2606:4700:3034::ac43:aec4 443]
Err:5 https://deb.parrot.sh/parrot rolling-security Release
  Certificate verification failed: The certificate is NOT trusted. The revocation or OCSP data are old and have been superseded.  Could not handshake: Error in the certificate verification. [IP: 2606:4700:3034::ac43:aec4 443]
Reading package lists... Done
E: The repository 'https://deb.parrot.sh/parrot rolling Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://deb.parrot.sh/parrot rolling-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

我的 /etc/apt/sources.list.d/parrot.list 包含以下几行

# parrot repository
# this file was automatically generated by parrot-mirror-selector
deb https://deb.parrot.sh/parrot/ rolling main contrib non-free
#deb-src https://deb.parrot.sh/parrot/ rolling main contrib non-free
deb https://deb.parrot.sh/parrot/ rolling-security main contrib non-free
#deb-src https://deb.parrot.sh/parrot/ rolling-security main contrib non-free

由于该错误,我也尝试了 sudo parrot-upgrade 但是输出还是一样的

请帮忙,谢谢::)

【问题讨论】:

    标签: linux parrot-os


    【解决方案1】:
    #sudo nano /etc/apt/sources.list.d/parrot.list
    

    将您的以下来源列表更改为以下提及的来源

    ## stable repository
    
    deb [trusted=yes] http://archive.parrot.sh/parrot rolling main contrib non-free
    
    deb [trusted=yes] http://archive.parrot.sh/parrot rolling-security main contrib non-free
    
    deb-src [trusted=yes] http://mirror.parrot.sh/parrot rolling main contrib non-free
    
    deb-src [trusted=yes] http://mirror.parrot.sh/parrot rolling-security main contrib non-free
    

    保存文件并重试

    【讨论】:

      【解决方案2】:

      我遇到了这个错误,我设法通过安装修复它 sudo apt install ca-certificates 并确保您的时间和日期是正确的

      【讨论】:

        【解决方案3】:

        我先用了命令

        # sudo parrot-mirror-selector direct rolling nonfree
        

        重置镜像然后

        # sudo parrot-upgrade
        

        就是这样:)

        【讨论】:

          【解决方案4】:
          1. sudo su
          2. passwd
          3. apt update && apt upgrade -o

          100% 有效

          【讨论】:

          • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2022-08-15
          • 2022-10-08
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多