gpt4 book ai didi

linux - sudo apt-get-repository : command is not found in debian linux

转载 作者:太空宇宙 更新时间:2023-11-04 04:56:43 24 4
gpt4 key购买 nike

我打算将 Firefox 安装到 debian linux 上。我使用ubuntu命令

sudo add-apt-repository ppa:mozillateam/firefox-next    

但我遇到了一些错误,它说

sudo apt-get-repository:找不到命令。

所以我无法继续将 Firefox 安装到我的 debian linux 上..

谁能告诉我如何跳过这个问题以及如何将 Firefox 安装到 debian

最佳答案

我建议您检查您正在使用的 Debian 版本。 Debian 默认配备 Iceweasel 网络浏览器而不是 Firefox。

<小时/>

如何在 Debian Jessie 中安装 Firefox,

  1. 将 Mozilla 存档添加到 APT 存储库以 root 身份打开终端,并将新文件添加到 /etc/apt/sources.list.d/目录

    $ touch/etc/apt/sources.list.d/debian-mozilla.list

在编辑器中编辑此文件,deb http://mozilla.debian.net/jessie-backports firefox-release

  • 添加 Mozilla 存档 key 此行将 mozilla.debian.net 存档添加到您的存档列表中。由于 mozilla.debian.net 上的软件包已签名,因此现在运行 apt-get update 会出现“ key 未找到”错误。要添加 key ,您需要下载 pkg-mozilla-archive-keyring 包 并安装它。该软件包需要安装 debian-keying 软件包。
  • 命令,

    $ cd ~/
    $ wget mozilla.debian.net/pkg-mozilla-archive-keyring_1.1_all.deb
    $ dpkg -i pkg-mozilla-archive-keyring_1.1_all.deb
  • 安装 Firefox、更新存档并安装 Firefox:
  • 命令,

    $ apt-get update
    $ apt-get install -t jessie-backports firefox

    完成上述所有步骤后,您就安装了 Firefox。

    <小时/>

    在 Debian wheezy 上安装 Firefox 浏览器

    1. 编辑您的/etc/apt/sources.list 文件并添加以下行。

      deb http://packages.linuxmint.com debian 导入

    2. 更新您的包裹列表。

      $ apt-get update

    3. 上面的命令将获取 mint 包存储库列表。最后一步安装 Firefox 浏览器。

      $ apt-get install firefox

    <小时/>

    Debian Jessie 及更高版本,如果您使用 Jessie,则可以在 software-properties-common 包中找到其他信息:

    sudo apt-get install software-properties-common

    在 Debian Wheezy 及更早版本中,apt-get 程序 add-apt-repository 在 Debian 中可用。

    位于包中:python-software-properties

    sudo apt-get install python-software-properties

    实际上,在 0.75 版本中添加到该包中。 Debian Stable(“squeeze”)中的当前版本是 0.60,因此它没有。Debian Test(“wheezy”)中当前的版本是 0.82.7.1debian1,因此可以在那里使用

    我请求您仔细阅读此question ,它会对你有帮助。

    关于linux - sudo apt-get-repository : command is not found in debian linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44346968/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com