Hello, I am trying to install Python 2.7 using makepkg. I keep getting the same PGP error. I have tried resetting all PGP keys, tried trusting the keys, rebooted, and nothing has worked to solve my issue.
makepkg -i ✔
==> Making package: python2 2.7.18-11 (Sun 04 Aug 2024 10:38:30 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found Python-2.7.18.tar.xz
-> Found Python-2.7.18.tar.xz.asc
-> Found mtime-workaround.patch
-> Found python-gentoo-patches-2.7.18_p16.tar.xz
==> Validating source files with sha512sums...
Python-2.7.18.tar.xz ... Passed
Python-2.7.18.tar.xz.asc ... Skipped
mtime-workaround.patch ... Passed
python-gentoo-patches-2.7.18_p16.tar.xz ... Passed
==> Verifying source file signatures with gpg...
Python-2.7.18.tar.xz ... FAILED (the public key C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF is not trusted)
==> ERROR: One or more PGP signatures could not be verified!
gpg --recv-key C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
gpg: key 04C367C218ADD4FF: "Benjamin Peterson <bp@benjamin.pe>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
If you need to use a python 2 script you could use 2to3-3.12 <scriptname.py> to upgrade the script to python 3.12 - even that is deprecated and not guaranteed to convert correct.