從 Debian buster 儲存庫安裝軟體包時出現問題

從 Debian buster 儲存庫安裝軟體包時出現問題

解決了!請參閱下面的評論以獲取解決方案。

我嘗試在 Debian buster 上安裝 i3,但找不到該軟體包。我不確定我缺少什麼,所以我可以安裝這個套件。

這些是我收到的錯誤:

> apt install i3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package i3
> apt install i3-wm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package i3-wm

這是我的/etc/apt/sources.list文件

deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free

我嘗試過apt update跑步apt-get update在嘗試安裝軟體包之前,

這是 Debian 儲存庫:https://packages.debian.org/sid/i3

和追蹤器:https://tracker.debian.org/pkg/i3-wm

如果有幫助,我嘗試安裝熱情但我得到了同樣的錯誤。

我是否缺少能夠安裝這些軟體包的設定或其他內容?

答案1

/etc/apt/sources.list缺少這些行:

deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main 

然後apt-get updateapt-get upgradeapt install i3

答案2

您目前只有 LTS 和更新儲存庫。這些僅包含更新,而不是所有軟體包。您缺少基本 Debian 儲存庫,即:

deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

相關內容