Receiving TypeError("Cannot mix str and non-str arguments")
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-transport-s3 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Ubuntu Release Info:
-----
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Package Version
-----
Package: apt-transport-s3
Version: 2.0.0-1
Expected behavior
------
apt-get update runs successfully when using an S3 bucket as a source
Actual behavior
------
Receive a "TypeError: Cannot mix str and non-str arguments" and apt-get fails
Details
-------
- Our AWS instance is using an iam role for access to an S3 bucket.
- I've verified that I can list the bucket contents
- I've verified that I can copy the file to the instance via 'aws s3 cp'
Running "apt-get update" results in the following error
Traceback (most recent call last):
File "/usr/lib/
method = S3_method(config)
File "/usr/lib/
self.
File "/usr/lib/
data = self.__
File "/usr/lib/
base, url, _coerce_result = _coerce_args(base, url)
File "/usr/lib/
raise TypeError("Cannot mix str and non-str arguments")
TypeError: Cannot mix str and non-str arguments
Reading package lists... Done
E: Method s3 has died unexpectedly!
E: Sub-process s3 returned an error code (1)
E: Method /usr/lib/
E: Failed to fetch s3://<bucket_
E: Some index files failed to download. They have been ignored, or old ones used instead.
We were able to get this to work by adding the following to /usr/lib/
self.iamrole = str(self.
X-Working-Bug: Bug #1974150
Status changed to 'Confirmed' because the bug affects multiple users.