相关疑难解决方法(0)

如何在 Debian 中从 shell 添加存储库?

在 Ubuntu 中,可以通过以下命令添加存储库 -

sudo add-apt-repository ppa:yannubuntu/boot-repair
Run Code Online (Sandbox Code Playgroud)

由于 Ubuntu 是基于 Debian 代码库的,我原以为它也能在 Debian 中运行,但事实并非如此。

  • 这是什么原因?
  • 我可以使用其他一些 shell 命令来实现相同的目标吗?

注意:我知道我可以编辑/etc/apt/sources.list,但我想从 shell 实现这一点。我还想知道为什么当代码库相同时相同的命令不起作用。

shell debian apt repository ppa

150
推荐指数
4
解决办法
42万
查看次数

标签 统计

apt ×1

debian ×1

ppa ×1

repository ×1

shell ×1