Trying to apt update and not working

OS type and version Ubuntu Linux 22.04.4
Webmin version 2.111
Virtualmin version 7.10.0
Related packages SUGGESTED

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /vm/7/gpl/apt virtualmin InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7
W: Failed to fetch The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 3E570892B9A0B8B7
W: Some index files failed to download. They have been ignored, or old ones used instead.

I am also trying to install php8.2 while I am adding

add-apt-repository ppa:ondrej/php

it freezes and does not respond when I press ctrl + c I get this message

Traceback (most recent call last):
File “/usr/bin/add-apt-repository”, line 364, in
sys.exit(0 if addaptrepo.main() else 1)
File “/usr/bin/add-apt-repository”, line 347, in main
shortcut = handler(source, **shortcut_params)
File “/usr/lib/python3/dist-packages/softwareproperties/”, line 40, in shortcut_handler
return handler(shortcut, **kwargs)
File “/usr/lib/python3/dist-packages/softwareproperties/”, line 82, in init
if self.lpppa.publish_debug_symbols:
File “/usr/lib/python3/dist-packages/softwareproperties/”, line 120, in lpppa
self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
File “/usr/lib/python3/dist-packages/softwareproperties/”, line 107, in lpteam
self._lpteam = self.lp.people(self.teamname)
File “/usr/lib/python3/dist-packages/softwareproperties/”, line 98, in lp
self._lp = login_func(“%s.%s” % (self.module,,
File “/usr/lib/python3/dist-packages/launchpadlib/”, line 494, in login_anonymously
return cls(
File “/usr/lib/python3/dist-packages/launchpadlib/”, line 230, in init
super(Launchpad, self).init(
File “/usr/lib/python3/dist-packages/lazr/restfulclient/”, line 472, in init
self._wadl = self._browser.get_wadl_application(self._root_uri)
File “/usr/lib/python3/dist-packages/lazr/restfulclient/”, line 447, in get_wadl_application
response, content = self._request(url, media_type=wadl_type)
File “/usr/lib/python3/dist-packages/lazr/restfulclient/”, line 389, in _request
response, content = self._request_and_retry(
File “/usr/lib/python3/dist-packages/lazr/restfulclient/”, line 359, in _request_and_retry
response, content = self._connection.request(
File “/usr/lib/python3/dist-packages/httplib2/”, line 1725, in request
(response, content) = self._request(
File “/usr/lib/python3/dist-packages/launchpadlib/”, line 144, in _request
response, content = super(LaunchpadOAuthAwareHttp, self)._request(
File “/usr/lib/python3/dist-packages/lazr/restfulclient/”, line 184, in _request
return super(RestfulHttp, self)._request(
File “/usr/lib/python3/dist-packages/httplib2/”, line 1441, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File “/usr/lib/python3/dist-packages/httplib2/”, line 1363, in _conn_request
File “/usr/lib/python3/dist-packages/httplib2/”, line 1153, in connect
sock.connect((, self.port))

the problem of adding
add-apt-repository ppa:ondrej/php solved by disabling ipv6

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1

Looks like you got creative with your installation? If you’d followed our docs, you’d have our public key.

You may be able to fix it by running virtualmin setup-repos

Then running apt clean; apt update

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.