每當我使用更新時,它都會顯示此錯誤。我是 Linux 新手,我該如何解決這個問題?
apt-get update -y
Ign:1 http://download.opensuse.org/repositories/home:/strycore/Debian_9.0 ./ InRelease
Err:2 http://download.opensuse.org/repositories/home:/strycore/Debian_9.0 ./ Release
404 Not Found [IP: 195.135.221.134 80]
Hit:3 http://repo.steampowered.com/steam precise InRelease
Hit:4 https://download.sublimetext.com apt/stable/ InRelease
Hit:5 https://mirror.karneval.cz/pub/linux/kali kali-rolling InRelease
Reading package lists... Done
E: The repository 'http://download.opensuse.org/repositories/home:/strycore/Debian_9.0 ./ 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.
一些系統資訊
Operating System: Kali GNU/Linux Rolling
Kernel: Linux 5.4.0-kali4-amd64
Architecture: x86-64
Release: 2020.2
這是我的 source.list 文件
deb https://http.kali.org/kali kali-rolling main non-free contrib
deb-src https://http.kali.org/kali kali-rolling main non-free contrib
我嘗試刪除它併升級,但它仍然不允許升級
$ apt-get upgrade -y
eading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
[ ..packages.. ]
Use 'apt autoremove' to remove them.
The following packages have been kept back:
[ ..packages.. ]
0 upgraded, 0 newly installed, 0 to remove and 122 not upgraded.
答案1
儲存庫http://download.opensuse.org/repositories/home:/strycore/Debian_9.0
不存在(已刪除)。您可以使用測試代號而不是 debian 9。
導入釋放密鑰:
wget http://download.opensuse.org/repositories/home:/strycore/Debian_Testing/Release.key -O- |sudo apt-key add -
變更目錄,/etc/apt/sources.list.d/
然後編輯 lutris 儲存庫(類似lutris.list
),如下所示:
deb http://download.opensuse.org/repositories/home:/strycore/Debian_Testing/ ./
禁用precise
存儲庫。然後運行:
sudo apt update
sudo apt dist-upgrade