[GH-ISSUE #133] [Docs] Update PPA installation: replace deprecated apt-key with gpg keyring #82

Open
opened 2026-10-13 21:06:21 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @TretiakovaN on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/133

Hi! I wanted to submit a fix for the installation documentation, but direct Pull Requests seem to be restricted for non-collaborators (Validation failed: must be a collaborator).

The issue:
The current documentation uses apt-key, which is deprecated and not available in newer Debian/Ubuntu versions. Using it poses a security risk and triggers warnings.

The fix:
I updated the instructions to use the modern gpg --dearmor approach with signed-by in sources.list.

My commit with the fix:
github.com/amnezia-vpn/amneziawg-linux-kernel-module@8c1cc1e754


Proposed installation block:

sudo apt install -y software-properties-common python3-launchpadlib gnupg2 linux-headers-$(uname -r)

# Import key using gpg
gpg --keyserver keyserver.ubuntu.com --recv-keys 57290828
gpg --export 57290828 | sudo gpg --dearmor -o /usr/share/keyrings/amnezia-archive-keyring.gpg

# Add repository with signed-by tag
echo "deb [signed-by=/usr/share/keyrings/amnezia-archive-keyring.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list
echo "deb-src [signed-by=/usr/share/keyrings/amnezia-archive-keyring.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list

sudo apt-get update
sudo apt-get install -y amneziawg
Originally created by @TretiakovaN on GitHub (Jan 25, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/133 Hi! I wanted to submit a fix for the installation documentation, but direct Pull Requests seem to be restricted for non-collaborators (*Validation failed: must be a collaborator*). **The issue:** The current documentation uses `apt-key`, which is deprecated and not available in newer Debian/Ubuntu versions. Using it poses a security risk and triggers warnings. **The fix:** I updated the instructions to use the modern `gpg --dearmor` approach with `signed-by` in sources.list. **My commit with the fix:** https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/8c1cc1e754ed7d5ab76c59aca53e47f53bda3b32 --- **Proposed installation block:** ```bash sudo apt install -y software-properties-common python3-launchpadlib gnupg2 linux-headers-$(uname -r) # Import key using gpg gpg --keyserver keyserver.ubuntu.com --recv-keys 57290828 gpg --export 57290828 | sudo gpg --dearmor -o /usr/share/keyrings/amnezia-archive-keyring.gpg # Add repository with signed-by tag echo "deb [signed-by=/usr/share/keyrings/amnezia-archive-keyring.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list echo "deb-src [signed-by=/usr/share/keyrings/amnezia-archive-keyring.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list sudo apt-get update sudo apt-get install -y amneziawg
Author
Owner

@marek22k commented on GitHub (Jun 28, 2026):

I mentioned something similar back in late 2024, but the first PR was rejected and the second is still pending.
First PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/27
Second PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/134

<!-- gh-comment-id:4827306176 --> @marek22k commented on GitHub (Jun 28, 2026): I mentioned something similar back in late 2024, but the first PR was rejected and the second is still pending. First PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/27 Second PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/134
Author
Owner

@marek22k commented on GitHub (Jun 28, 2026):

https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/172 seems to be related too.

<!-- gh-comment-id:4827315957 --> @marek22k commented on GitHub (Jun 28, 2026): https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/172 seems to be related too.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#82
No description provided.