大网数据广告活动
服务器运维问答

Trouble installing packages from the Debian buster repository

· 52CE 我爱测

Solved! See comments below for the solution. I'm trying to install i3 on Debian buster and it can't find the package. I'm not sure what I'm missing so I can install this package. These are the errors that I'm getting: > apt insta…

问题原文

原帖链接 · NoahLE · CC BY-SA 4.0

Solved! See comments below for the solution.

I'm trying to install i3 on Debian buster and it can't find the package. I'm not sure what I'm missing so I can install this package.

These are the errors that I'm getting:

> 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

This is my /etc/apt/sources.list file

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

I've tried running apt update and apt-get update, before trying to install the package but got the same error.

Here's the Debian repo: https://packages.debian.org/sid/i3

And the tracker: https://tracker.debian.org/pkg/i3-wm

In case it helps, I tried installing Zeal but am getting the same error.

Am I missing a setting or something to be able to install these packages?

已采纳解答

原帖链接 · Esa Jokinen · CC BY-SA 4.0

Your /etc/apt/sources.list is missing these lines:

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

Then apt-get update, apt-get upgrade and apt install i3.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-12-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。