Si l’erreur suivante se produit lors d’un do-release-upgrade sous ubuntu
Get:1 Upgrade tool signature [833 B]
Get:2 Upgrade tool [944 kB]
Fetched 945 kB in 0s (0 B/s)
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py:180: Warning: W:Download is performed unsandboxed as root as file 'questing.tar.gz.gpg' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
result = fetcher.run()
authenticate 'questing.tar.gz' against 'questing.tar.gz.gpg'
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 229, in <module>
fetcher.run()
~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py", line 215, in run
if not self.authenticate():
~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py", line 104, in authenticate
if self.gpgauthenticate(f, sig):
~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py", line 119, in gpgauthenticate
ret = subprocess.call(gpg, stderr=subprocess.PIPE)
File "/usr/lib/python3.13/subprocess.py", line 395, in call
with Popen(*popenargs, **kwargs) as p:
~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 1039, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 1969, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gpg'
La première chose a vérifier est de voir si le paquet gnupg est installé
which gpg
Si pas de retour c’est que pas installé
Il faut alors l’installer via
apt install gnupg
et on peux refaire le do-release-upgrade sans problème

