我正在尝试安装 gd 扩展,但在添加存储库时出现错误
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or ctrl-c to cancel adding it
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line
688, in addkey_func
func(**kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
return apsk.add_ppa_signing_key()
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 252, in
add_ppa_signing_key
tmp_keyring, tmp_secret_keyring, signing_key_fingerprint, tmp_keyring_dir):
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 181, in _recv_key
"--recv", signing_key_fingerprint,
File "/usr/lib/python3.7/subprocess.py", line 323, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gpg': 'gpg'
如果apt update
出现此错误
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Ign:2 http://ppa.launchpad.net/jczaplicki/xenial-php74-temp/ubuntu kinetic InRelease
Ign:3 http://ppa.launchpad.net/ondrej/php/ubuntu kinetic InRelease
Ign:4 http://ppa.launchpad.net/pi-rho/dev/ubuntu kinetic InRelease
Err:5 http://ppa.launchpad.net/jczaplicki/xenial-php74-temp/ubuntu kinetic Release
404 Not Found [IP: 185.125.190.52 80]
Err:6 http://ppa.launchpad.net/ondrej/php/ubuntu kinetic Release
404 Not Found [IP: 185.125.190.52 80]
Err:7 http://ppa.launchpad.net/pi-rho/dev/ubuntu kinetic Release
404 Not Found [IP: 185.125.190.52 80]
Hit:8 http://deb.debian.org/debian buster InRelease
Hit:9 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/jczaplicki/xenial-php74-temp/ubuntu kinetic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu kinetic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/pi-rho/dev/ubuntu kinetic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.