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 仍有问题,请在评论部分告诉我。 随时欢迎其他建议、问题或简短的感谢。

  如何在 Windows 10 任务栏上显示互联网速度?
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万美元

Setapp Mobile 将于 2 月 16 日停止欧盟替代应用商店
Tech

Setapp Mobile 将于 2 月 16 日停止欧盟替代应用商店

土耳其竞争管理局突击搜查 Temu 办事处
Tech

土耳其竞争管理局突击搜查 Temu 办事处

FTC 对 Meta 反垄断案裁决提出上诉,以重提剥离威胁
Tech

FTC 对 Meta 反垄断案裁决提出上诉,以重提剥离威胁

OpenAI 在 ChatGPT 中投放广告以抵消万亿美元的基础设施成本
Tech

OpenAI 在 ChatGPT 中投放广告以抵消万亿美元的基础设施成本

英业达警告 H200 芯片在中国延迟交付,英伟达股价下跌
Tech

英业达警告 H200 芯片在中国延迟交付,英伟达股价下跌

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.