从 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

相关内容