shorten&fix i2p installation with debian repository instructions
https://geti2p.net/en/download/debian
we see:
- Ensure that apt-transport-https and curl are installed.
sudo apt-get update
sudo apt-get install apt-transport-https curl
- 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, add lines like the following to /etc/apt/sources.list.d/i2p.list.
For Buster (stable):
deb https://deb.i2p2.de/ buster main deb-src https://deb.i2p2.de/ buster main
For Stretch (oldstable):
deb https://deb.i2p2.de/ stretch main deb-src https://deb.i2p2.de/ stretch main
For Jessie (oldoldstable):
deb https://deb.i2p2.de/ jessie main deb-src https://deb.i2p2.de/ jessie main
For Wheezy (obsolete):
deb https://deb.i2p2.de/ wheezy main deb-src https://deb.i2p2.de/ wheezy main
well this can be shortened to: (added lsb-release package to the needed pre-installed packages in number one,added [signed-by=/usr/share/keyrings/i2p-archive-keyring.gpg] to the repo which the new debian requirement )
- Ensure that apt-transport-https and curl and lsb-release are installed.
sudo apt update && sudo apt install apt-transport-https curl lsb-release
- Add I2P repository to the following path /etc/apt/sources.list.d/i2p.list.
echo "deb [signed-by=/usr/share/keyrings/i2p-archive-keyring.asc] https://deb.i2p2.de/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/i2p.list
for the end user he need only deb repository which is the binary one, deb-src its useless for end user.
we see:
Add the key to APT's keyring:
sudo apt-key add i2p-debian-repo.key.asc
This is deprecated method according to the apt maintainer:
https://blog.jak-linux.org/2021/06/20/migrating-away-apt-key/
Required changes:
-
Rename i2p keys from i2p-debian-repo.key.asc to i2p-archive-keyring.asc or whatever-archive-keyring.asc
-
use cp or mv command for the keys to go to the right path (gonna use mv better)
-
add signed-by=path to the repo (already added above)
So change the command to:
sudo mv ~/i2p-archive-keyring.asc /usr/share/keyrings
Fix typo:
Note: If you are running Debian Sid (testing), then you can install I2P directly from Debian's main repository:
sudo apt-get install i2p
Debian Sid (Unstable) not testing