我在運行“sudo apt-get update”、“MergeList 問題”或“無法解析或開啟狀態文件”時遇到此問題。

我在運行“sudo apt-get update”、“MergeList 問題”或“無法解析或開啟狀態文件”時遇到此問題。
W: The repository 'http://archive.getdeb.net/ubuntu xenial-getdeb Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_xenial-getdeb_apps_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

我嘗試過的建議是:

  1. 從 apt 目錄中刪除檔案:
    sudo rm -vf /var/lib/apt/lists/*
    sudo apt-get update
    
  2. 從 Ubuntu 軟體更改伺服器,但我不斷收到錯誤訊息,要求我聯絡管理員

答案1

這是來自維基百科

GetDeb 是一個 Ubuntu 軟體門戶,提供舊 LTS Ubuntu 版本中包含的舊版軟體以及官方儲存庫中省略的軟體。 PlayDeb 是一個姊妹項目,明確地專注於遊戲。這些名稱來自 Ubuntu 使用的 .deb 套件格式。 GetDeb 和 PlayDeb 服務也可以被從 16.04 開始的 Ubuntu 衍生品使用,因為當 Ubuntu 14.04 達到 EOL 時,14.04 軟體包已被刪除。這兩個網站都已被重定向到垃圾郵件網站,不應再受信任。

Getdeb 和 Playdeb 不再運作或不再受信任,應盡快從軟體來源中移除。

答案2

需要編輯引用 Xenial 儲存庫的來源檔案。您可以透過命令列找到它,如下所示:

  1. 打開終端機(如果尚未打開)
  2. 進入apt目錄:
    cd /etc/apt
    
  3. 透過以下方式辨識引用錯誤儲存庫的檔案grep
    grep -r xenial *
    
  4. 使用sudo,使用您首選的文字編輯器編輯輸出中提到的文件,註解掉(或刪除)該行。您可以透過#在前面新增一個來註解掉該行。
  5. 儲存文件並退出。
  6. 更新apt
    sudo apt update 
    

相關內容