Debian I2P 软件包

Debian 或 Ubuntu,所有版本

Debian 软件包应该可以在绝大多数平台上正常运行: The I2P packages may work on systems not listed above. Please report any issues with these packages on Gitlab at i2p.i2p.
  • 选择 1:Ubuntu 最近的版本及其衍生发行版(如果您使用的不是 Debian,请尝试此项
  • 选择 2:Debian(包括 Debian 的衍生发行版)

Ubuntu 及其衍生发行版如 Linux Mint 与 Trisquel 的安装指南

通过命令行添加 PPA 源并安装 I2P
  1. 打开终端并输入:
        sudo apt-add-repository ppa:i2p-maintainers/i2p
    This command will add the PPA to /etc/apt/sources.list.d and fetch the gpg key that the repository has been signed with. The GPG key ensures that the packages have not been tampered with since being built.
  2. 输入以下命令通知您的软件包管理器新添加的 PPA 源:
        sudo apt-get update
    此命令将从系统中已启用的每个软件源中获取最新软件列表,包括刚刚通过命令添加的 I2P PPA 源。
  3. 您现在可以安装 I2P 了!
        sudo apt-get install i2p
Adding the PPA Using the Software Center
  1. Open "Software and Updates" via the applications menu.
  2. Select the "Other Software" tab and click the "Add" button at the bottom to configure the PPA.
  3. Add the PPA by pasting the URL: ppa:i2p-maintainers/i2p into the PPA dialog.
  4. Download the repository information with the "Reload" button.
  5. Install the I2P software using the "Software" tool from the applications menu.
安装过程结束后,您可以继续到下一部分启动 I2P,根据您的系统对其进行配置。

Debian 的安装指南

目前支持的架构: amd64, i386, armhf, arm64, powerpc, ppc64el, s390x

注意:以下步骤应以 root 权限执行(即用 su 切换到 root 用户或在每个命令前加上 sudo )。

  1. Ensure that apt-transport-https, curl, lsb-release are installed.
        sudo apt-get update
        sudo apt-get install apt-transport-https lsb-release curl
  2. Check which version of Debian you are using on this page at the Debian wiki and verify with /etc/debian_version on your system. Then, for Debian Bullseye or newer distributions run the following command to create /etc/apt/sources.list.d/i2p.list.
        # Use this command on Debian Bullseye or newer only.
      echo "deb [signed-by=/usr/share/keyrings/i2p-archive-keyring.gpg] $(lsb_release -sc) main" \
      | sudo tee /etc/apt/sources.list.d/i2p.list
    if you are using Debian Buster or older distributons, use the following command instead:
        # Use this command on Debian Buster or older only.
      echo "deb $(lsb_release -sc) main" \
      | sudo tee /etc/apt/sources.list.d/i2p.list
  3. 下载软件源签名密钥
      curl -o i2p-archive-keyring.gpg

  4. Display the key fingerprint.
      gpg --keyid-format long --import --import-options show-only --with-fingerprint i2p-archive-keyring.gpg
    Verify that this key fingerprint matches the output:
      7840 E761 0F28 B904 7535  49D7 67EC E560 5BCF 1346

  5. Copy the keyring to the keyrings directory:
      sudo cp ~/i2p-archive-keyring.gpg /usr/share/keyrings
    If you are using a distribution older than Debian Buster, you will also need to symlink that key to /etc/apt/trusted.gpg.d.
      sudo ln -sf /usr/share/keyrings/i2p-archive-keyring.gpg /etc/apt/trusted.gpg.d/i2p-archive-keyring.gpg
  6. Notify your package manager of the new repository by entering:
      sudo apt-get update
    This command will retrieve the latest list of software from every repository enabled on your system, including the I2P repository added in step 1.

  7. You are now ready to install I2P! Installing the i2p-keyring package will ensure that you receive updates to the repository's GPG key.
      sudo apt-get install i2p i2p-keyring

安装过程结束后,您可以继续到下一部分启动 I2P并根据您的系统对其进行配置。


使用以上 I2P 软件包,I2P 路由可以通过如下方式启动:
  • "按需选择" 使用 i2prouter 脚本。从命令行执行 "i2prouter start" 即可。(注意:绝对不要使用 sudo 或以 root 身份运行!)
  • "按需选择" 运行 "i2prouter-nowrapper", 不使用 java 服务封装直接运行(非 Linux /非 x86 系统中需要)。(注意:绝对不要使用 sudo 或以 root 身份运行!)
  • 作为服务在您的系统启动时自动运行,甚至早于用户登录。服务可以通过以 root 身份或 sudo 命令执行 "dpkg-reconfigure i2p" 启用。这是推荐的操作方式。

首次安装时,请不要忘记如果可能请调整您的 NAT/防火墙。需要转发的端口可以通过路由控制台的网络配置页面查看。如果需要端口转发/端口映射方面的帮助,portforward.com可能会对您有用。

请在配置页面检查并调整带宽设置,因为默认设置的 96 KB/s 下行 / 40 KB/s 上行相当保守。

如果您希望通过浏览器访问 I2P 站点,请查看浏览器代理设置 页面了解基本设置方法。