我试图在Debian上安装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
如果这有帮助,我试着安装热诚,但也遇到了同样的错误。
我是不是漏了一个设置或者什么东西才能安装这些软件包?
发布于 2020-12-27 21:19:56
您的/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
。
发布于 2020-12-27 21:17:27
您目前只有LTS和更新存储库。它们只有更新,而不是所有的包。您缺少基本Debian存储库,即:
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
https://serverfault.com/questions/1047750
复制