Public bug reported:

Ubuntu Release
--------------
Description:    Ubuntu Jammy Jellyfish (development branch)
Release:        22.04


Package
-------
Package: apt-transport-s3
Version: 2.0.0-2


Expected Result
---------------
"apt-get update" correctly updates the package database from an S3-based APT 
repository.


Actual Result
-------------
When using the EC2 instance's IAM role credentials, "apt-get update" fails as 
follows.

Traceback (most recent call last):
  File "/usr/lib/apt/methods/s3", line 597, in <module>
    method = S3_method(config)
  File "/usr/lib/apt/methods/s3", line 384, in __init__
    self.iam.get_credentials()
  File "/usr/lib/apt/methods/s3", line 191, in get_credentials
    str(self.credentials_metadata, 'utf-8'),
TypeError: decoding str is not supported
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done                        
E: Method s3 has died unexpectedly!
E: Sub-process s3 returned an error code (1)
E: Method /usr/lib/apt/methods/s3 did not start correctly
E: Failed to fetch s3://<bucket>/private/ubuntu/dists/jammy/InRelease  
E: Some index files failed to download. They have been ignored, or old ones 
used instead.

** Affects: apt-transport-s3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964558

Title:
  apt-transport-s3 fails with TypeError: decoding str is not supported

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-transport-s3/+bug/1964558/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to