sudo apt-get update issue


New Member
I am not able to access s3 bucket in my ubuntu 20.04 Machine.

In /etc/apt/source.list have this line – “deb s3://AKXXXXXXXXXXX:[XXXXXXXXXXXXX] trusty main”

Once I run sudo apt-get update , facing below issue .

[email protected]:~# sudo apt-get update

Traceback (most recent call last):

File "/usr/lib/python3.8/urllib/", line 1350, in do_open

h.request(req.get_method(), req.selector,, headers,

File "/usr/lib/python3.8/http/", line 1255, in request

self._send_request(method, url, body, headers, encode_chunked)

File "/usr/lib/python3.8/http/", line 1301, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)

File "/usr/lib/python3.8/http/", line 1250, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)

File "/usr/lib/python3.8/http/", line 1010, in _send_output


File "/usr/lib/python3.8/http/", line 950, in send


File "/usr/lib/python3.8/http/", line 921, in connect

self.sock = self._create_connection(

File "/usr/lib/python3.8/", line 808, in create_connection

raise err

File "/usr/lib/python3.8/", line 796, in create_connection


socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/lib/apt/methods/s3", line 116, in __request_json

response = urllib.request.urlopen(request, None, 30)

File "/usr/lib/python3.8/urllib/", line 222, in urlopen

return, data, timeout)

File "/usr/lib/python3.8/urllib/", line 525, in open

response = self._open(req, data)

File "/usr/lib/python3.8/urllib/", line 542, in _open

result = self._call_chain(self.handle_open, protocol, protocol +

File "/usr/lib/python3.8/urllib/", line 502, in _call_chain

result = func(*args)

File "/usr/lib/python3.8/urllib/", line 1379, in http_open

Wheather , I installed sudo apt-get install apt-transport-s3

But not able to update.

Please suggest any solution for this issue.

Members online