Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

System and Network configuration • Re: Upgrade from Buster to Bullseye now reports Release file not found in s3 bucket for private repo apt update

$
0
0
Hello,
I can post the error but I need to redact some of the information. This is a private repo that I'm using. Again, it was setup for Buster and works fine with Buster. But with Bullseye, I now see the no Release file found issue.

Code:

root@device6:/etc/apt# apt update[..]Ign:4 s3://our/repo branch2 InReleaseErr:5 s3://our/repo branch2 Release  Exception: URL error reason: [Errno -2] Name or service not known[..]E: The repository 's3://our/repo branch2 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.
The error message is generated by the code of the apt-transport-s3 package:
  • sources / apt-transport-s3 / 2.1.0-1 / s3 :

    Code:

    [..]    def __request_json(self, url):        if not self.session_token:             self.__imdsv2_ensure_token()        request = urllib.request.Request(url, headers={TOKEN_HEADER: self.session_token})        response = None        for i in range(0, RETRIES):            try:                response = urllib.request.urlopen(request, None, 30)                return json.loads(response.read().decode('utf-8'))            except ssl.SSLError as e:                if 'timed out' in e.message:                    time.sleep(wait_time(i + 1))                else:                    raise e            except socket.timeout:                time.sleep(wait_time(i + 1))            except urllib.error.URLError as e:                if hasattr(e, 'reason'):                    raise Exception("URL error reason: {}".format(e.reason))                elif hasattr(e, 'code'):                    raise Exception("Server error code: {}".format(e.code))            finally:                if response:                    response.close()        raise Exception("request for {} timed out".format(url))
In the directory named /lib/apt/methods, you could modify the file named s3 (a Python script) before line 154 (to inspect/print the contents of the url variable on screen).

Hope this helps. Please let me know.

Statistics: Posted by Aki — 2024-08-23 15:20



Viewing all articles
Browse latest Browse all 2901

Latest Images

Trending Articles



Latest Images