Public bug reported:

When using pull-debian-source on Ubuntu Lunar I saw the error below.
This output is not helpful for the user. Please, provide a message
indicating the URL that failed instead of the stacktrace.

$ pull-debian-source opensbi sid
Found opensbi 1.1-2 in sid
Traceback (most recent call last):
  File "/usr/bin/pull-debian-source", line 11, in <module>
    PullPkg.main(distro='debian', pull='source')
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 107, in 
main
    cls(*args, **kwargs).pull()
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 429, in 
pull
    srcpkg.pull()
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 438, in 
pull
    Path(self.dsc_pathname).write_bytes(self.dsc.raw_text)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 294, in dsc
    self._download_file_from_urls(urls, tmpdsc)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 410, in 
_download_file_from_urls
    for url in urls:
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 598, in 
_source_urls
    for url in super(DebianSourcePackage, self)._source_urls(name):
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 335, in 
_source_urls
    yield self._mirror_url(server, self.component, name)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 593, in 
component
    self._component = Snapshot.getComponent(self.source, self.version)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 941, in 
getComponent
    response = self.load("{}?fileinfo=1".format(url))
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 887, in 
load
    with closing(urlopen(url)) as data:
  File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: NOT FOUND

** Affects: ubuntu-dev-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of MOTU,
which is subscribed to ubuntu-dev-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1997958

Title:
  pull-debian-source: error message not helpful

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1997958/+subscriptions


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

Reply via email to