Repo沒有Release文件,即使刪除apt清單和sources.list後也無法apt-get更新

Repo沒有Release文件,即使刪除apt清單和sources.list後也無法apt-get更新

在嘗試將 Node 10 升級到 Node 12 時,我遇到了無法透過 Google 尋找的問題。無論我運行什麼命令,我總是會遇到以下兩個錯誤之一sudo apt-get update

1)運行時出現sudo rm -rf /var/lib/apt/lists/* && sudo rm -rf /etc/apt/sources.list.d/*

Reading package lists... Done                                                                                
E: The repository 'https://kong.bintray.com/kong-deb eoan 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.

1.1)我在堆疊旅行中註意到的一些事情sudo rm -rf /var/lib/apt/lists/*...

Err:10 https://kong.bintray.com/kong-deb eoan Release                                       
  404  Not Found [IP: 52.41.180.114 443]

2)運行時sudo apt-get update,我會看到:

pi@pop-os:~$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu eoan InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu eoan-security InRelease                                            
Hit:3 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease                                             
Hit:4 https://download.docker.com/linux/ubuntu eoan InRelease                                                
Hit:5 http://us.archive.ubuntu.com/ubuntu eoan-backports InRelease                                           
Hit:6 http://apt.pop-os.org/proprietary eoan InRelease                                                       
Ign:7 https://kong.bintray.com/kong-deb eoan InRelease                 
Err:8 https://kong.bintray.com/kong-deb eoan Release
  404  Not Found [IP: 54.191.3.105 443]
Reading package lists... Done
E: The repository 'https://kong.bintray.com/kong-deb eoan 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.

這裡發生了什麼,我該如何刪除 Kong 和/或修復sudo apt-get update

附加資訊:

  • 我正在運行 Pop~_OS 19.10,它直接基於 Ubuntu 19.10
  • 我沒有 PPA,不幸的是,其解決方案導致ppa命令的類似問題對我不起作用。

答案1

如果您已清除/etc/apt/sources.list.d/目錄但沒有幫助,那麼您需要檢查您的/etc/apt/sources.list檔案。最有可能的是,您的錯誤存儲庫已列在那裡。

確保它看起來像這樣:

$ cat /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ eoan main restricted
deb http://us.archive.ubuntu.com/ubuntu/ eoan-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ eoan universe
deb http://us.archive.ubuntu.com/ubuntu/ eoan-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ eoan multiverse
deb http://us.archive.ubuntu.com/ubuntu/ eoan-updates multiverse
deb http://archive.canonical.com/ubuntu eoan partner
deb http://security.ubuntu.com/ubuntu eoan-security main restricted
deb http://security.ubuntu.com/ubuntu eoan-security universe
deb http://security.ubuntu.com/ubuntu eoan-security multiverse

您可以使用下一個命令來查看有問題的存儲庫是否列在此處:

$ grep kong /etc/apt/sources.list

如果您需要在一堆文件中查找它,請使用以下命令:

$ grep kong /etc/apt/*
$ grep kong /etc/apt/*/*

第二個指令將會查找apt資料夾的子目錄中。

相關內容