TechBriefly CN
  • Tech
  • Business
  • Geek
  • How to
  • ABOUT
    • About Tech Briefly
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
No Result
View All Result
TechBriefly CN
No Result
View All Result
Home Articles
如何修复 Ubuntu 和 Debian Linux 中的“add-apt-repository command not found”错误?

如何修复 Ubuntu 和 Debian Linux 中的“add-apt-repository command not found”错误?

byFurkan Zengin
01/11/2021
in Articles, How to
Reading Time: 1 min read
Share on FacebookShare on Twitter

本快速教程向您展示了如何快速修复 Debian、Ubuntu 和其他基于 Debian 的 Linux 发行版中的“add-apt-repository command not found”错误。

在 Ubuntu 或 Debian 上安装软件的众多方法之一是使用 PPA(个人软件包存档)。

如果要添加新的 PPA 存储库,应使用 add-apt-repository 命令,如下所示:

修复了 Ubuntu 和 Debian 中“找不到 add-apt-repository 命令”的错误

在 Debian、elementary OS 上,有时在 Ubuntu 上,您会看到 add-apt-repository 命令丢失的错误。

sudo:add-apt-repository:找不到命令

让我们看看如何解决这个烦人的错误。

如何修复“找不到 add-apt-repository 命令”错误?

错误很简单。 您的系统上未安装 add-apt-repository 软件包。

但是,如果您尝试使用 Sudo apt-get install add-apt-repository,它将不起作用。

这是因为 add-apt-repository 命令是 software-properties-common 软件包的一部分,您需要安装此软件包才能安装 add-apt-repository。

所以打开一个终端并使用这个命令:

修复了 Ubuntu 和 Debian 中“找不到 add-apt-repository 命令”的错误

命令的输出将如下所示:

修复了 Ubuntu 和 Debian 中“找不到 add-apt-repository 命令”的错误

安装 software-properties-common 后,必须使用以下命令升级系统:

修复了 Ubuntu 和 Debian 中“找不到 add-apt-repository 命令”的错误
如何修复 Ubuntu 和 Debian Linux 中的“add-apt-repository command not found”错误?

您现在可以方便地使用 add-apt-repository 或 apt-add-repository 命令来添加 PPA。

注意:如果您看到一条错误消息,指出找不到 software-properties-common 命令,您应该运行 Sudo apt-get update,然后再次尝试安装。

我们希望这个快速提示可以帮助您修复 Ubuntu 和其他基于 Debian 的 Linux 发行版中的“add-apt-repository: command not found”错误。

如果您对 PPA 仍有问题,请在评论部分告诉我。 随时欢迎其他建议、问题或简短的感谢。

  证书过期:iPhone 和 Android 用户可能无法访问互联网
Tags: 和

Related Posts

AI迷因币WienerAI首次代币发行超过100万美元 分析师预计10倍回报

AI迷因币WienerAI首次代币发行超过100万美元 分析师预计10倍回报

人工智能(AI)类加密货币集体下跌后 仍具投资价值的AI币是什麽?

人工智能(AI)类加密货币集体下跌后 仍具投资价值的AI币是什麽?

2024减半或推动比特币市场整合或带来4大赢家!有免费空投活动吗?

2024减半或推动比特币市场整合或带来4大赢家!有免费空投活动吗?

迷因币价格集体反弹WIF狂升25% 多链狗狗币Dogeverse集资超过450万美元

迷因币价格集体反弹WIF狂升25% 多链狗狗币Dogeverse集资超过450万美元

如何在 Android 上创建文件夹并添加小部件
Tech

如何在 Android 上创建文件夹并添加小部件

如何通过越狱 iPhone 和 root Android 获得完全控制
Tech

如何通过越狱 iPhone 和 root Android 获得完全控制

微软紧急修复Windows 11关机问题
Tech

微软紧急修复Windows 11关机问题

Threads 超过 X,拥有 1.415 亿移动用户
Tech

Threads 超过 X,拥有 1.415 亿移动用户

谷歌将钱包和任务集成到 Pixel 10 Magic Cue 中
Tech

谷歌将钱包和任务集成到 Pixel 10 Magic Cue 中

TechBriefly CN

© 2021 TechBriefly is a Linkmedya brand.

  • About
  • About Tech Briefly
  • Blog
  • Contact
  • Contact Us
  • Cover Page
  • Privacy Policy
  • TechBriefly
  • Terms and Conditions

Follow Us

No Result
View All Result
  • Tech
  • Business
  • Geek
  • How to
  • ABOUT
    • About Tech Briefly
    • Terms and Conditions
    • Privacy Policy
    • Contact Us

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.