*** This bug is a duplicate of bug 1999156 ***
    https://bugs.launchpad.net/bugs/1999156

Public bug reported:

```
Traceback (most recent call last):
  File "/usr/share/apport/whoopsie-upload-all", line 174, in <module>
    stamps = collect_info()
  File "/usr/share/apport/whoopsie-upload-all", line 124, in collect_info
    res = process_report(r)
  File "/usr/share/apport/whoopsie-upload-all", line 69, in process_report
    r.add_package_info()
  File "/usr/lib/python3/dist-packages/apport/report.py", line 351, in 
add_package_info
    version = self.add_package(package)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 320, in 
add_package
    version = packaging.get_version(package)
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 163, in 
get_version
    pkg = self._apt_pkg(package)
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 156, in 
_apt_pkg
    return self._cache()[package]
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 121, in 
_cache
    self._apt_cache = apt.Cache(progress, rootdir='/')
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 161, in __init__
    self._check_and_create_required_dirs(rootdir)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 201, in 
_check_and_create_required_dirs
    os.makedirs(rootdir + d)
  File "/usr/lib/python3.8/os.py", line 223, in makedirs
    mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: 
'//var/cache/apt/archives/partial'
```

The Ubuntu Error Tracker has been receiving reports about a problem regarding 
apport.  This problem was most recently seen with package version 
2.20.11-0ubuntu27.25, the problem page at 
https://errors.ubuntu.com/problem/bed302041806da446a904a98e49c079f2b690a56 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: focal

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1999193

Title:
  /usr/share/apport/whoopsie-upload-
  all:FileNotFoundError:/usr/share/apport/whoopsie-upload-
  
all@174:collect_info:process_report:add_package_info:add_package:get_version:_apt_pkg:_cache:__init__:_check_and_create_required_dirs:makedirs

Status in apport package in Ubuntu:
  New

Bug description:
  ```
  Traceback (most recent call last):
    File "/usr/share/apport/whoopsie-upload-all", line 174, in <module>
      stamps = collect_info()
    File "/usr/share/apport/whoopsie-upload-all", line 124, in collect_info
      res = process_report(r)
    File "/usr/share/apport/whoopsie-upload-all", line 69, in process_report
      r.add_package_info()
    File "/usr/lib/python3/dist-packages/apport/report.py", line 351, in 
add_package_info
      version = self.add_package(package)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 320, in 
add_package
      version = packaging.get_version(package)
    File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 163, 
in get_version
      pkg = self._apt_pkg(package)
    File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 156, 
in _apt_pkg
      return self._cache()[package]
    File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 121, 
in _cache
      self._apt_cache = apt.Cache(progress, rootdir='/')
    File "/usr/lib/python3/dist-packages/apt/cache.py", line 161, in __init__
      self._check_and_create_required_dirs(rootdir)
    File "/usr/lib/python3/dist-packages/apt/cache.py", line 201, in 
_check_and_create_required_dirs
      os.makedirs(rootdir + d)
    File "/usr/lib/python3.8/os.py", line 223, in makedirs
      mkdir(name, mode)
  FileNotFoundError: [Errno 2] No such file or directory: 
'//var/cache/apt/archives/partial'
  ```

  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
apport.  This problem was most recently seen with package version 
2.20.11-0ubuntu27.25, the problem page at 
https://errors.ubuntu.com/problem/bed302041806da446a904a98e49c079f2b690a56 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1999193/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to