asd2003ru, your problem is that you incorrectly deleted the instance created by the official installer before installing the AUR version. Remnants of incorrectly removed version 4.x interfere with version 5.x, which has a changed file structure.
Ideally, remove the AUR version, reinstall the official one, and then uninstall it using the /opt/AmneziaVPN/maintenancetool tool. Or at least delete the file /etc/systemd/system/AmneziaVPN.service manually.
The first sentence in the pinned comment, which is highlighted in bold, is intended to prevent exactly this kind of situation.
Pinned Comments
lufog commented on 2025-06-23 18:31 (UTC) (edited on 2026-07-31 08:11 (UTC) by lufog)
Before installing this package, please remove the installation done by the official installer, if any. This can be done by running
/opt/AmneziaVPN/maintenancetool.This package is updated only to stable versions; please do not report pre-releases.
Information for those who want to update
PKGBUILDlocally. In case I'm late with the update.A simple version bump is not enough, you also need to update_archive_offset, which can be found (with a hex editor, for example) by the signature in the comment. And_archive_sizecan be omitted if you remove| head -c $((_archive_size))inprepare(), 7zip will unpack the archive, with a harmless warning about garbage data after the end of the archive.Starting with version
5.0.0.5-1, manual offset search is no longer required, butbinwalkand7zipmake dependencies have been added.Command for those wishing to roll back to
4.8.21.0: