Debian
從 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
and ,但遇到了同樣的錯誤。apt-get update
這是 Debian 儲存庫:https ://packages.debian.org/sid/i3
和跟踪器:https ://tracker.debian.org/pkg/i3-wm
如果有幫助,我嘗試安裝Zeal,但遇到了同樣的錯誤。
我是否缺少能夠安裝這些軟體包的設置或其他東西?
您
/etc/apt/sources.list
缺少以下幾行:deb http://deb.debian.org/debian buster main deb-src http://deb.debian.org/debian buster main
然後和。
apt-get update
_apt-get upgrade``apt install i3
您目前只有 LTS 和更新儲存庫。這些只有更新,而不是所有包。您缺少基本的 Debian 儲存庫,即:
deb http://deb.debian.org/debian buster main deb-src http://deb.debian.org/debian buster main