[Bug 1900440] Re: Upgrade to 20.10 fails

Brian Murray 1900440 at bugs.launchpad.net
Wed Oct 21 18:41:48 UTC 2020


This is because you are using a version of python-apt-common which is
not from the official Ubuntu archive and likely does not ship the file
/usr/share/python-apt/templates/Ubuntu.info.

python-apt-common 2.1.2pop0~1587756471~20.04~cd2988e [origin: unknown]

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1900440

Title:
  Upgrade to 20.10 fails

Status in ubuntu-release-upgrader package in Ubuntu:
  Invalid

Bug description:
  Hello,

  i'm trying to upgrade to 20.10 beta and do-release-upgrade give this
  error:

  
  ------------------
  Calculating snap size requirements

  Updating repository information

  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/groovy", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/DistUpgrade/DistUpgradeMain.py", line 238, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/DistUpgrade/DistUpgradeController.py", line 2089, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/DistUpgrade/DistUpgradeController.py", line 1932, in fullUpgrade
      if not self.updateSourcesList():
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/DistUpgrade/DistUpgradeController.py", line 801, in updateSourcesList
      self.sources = SourcesList(matcherPath=self.datadir)
    File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 273, in __init__
      self.matcher = SourceEntryMatcher(matcherPath)
    File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 470, in __init__
      dist = DistInfo(base_dir=matcherPath)
    File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 184, in __init__
      with open(dist_fname) as dist_file:
  FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ubuntu-release-upgrader-7x1y76gi/Ubuntu.info'
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
      self.write(f)
    File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
      block = f.read(1048576)
    File "/usr/lib/python3.8/codecs.py", line 322, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

  Original exception was:
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/groovy", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/DistUpgrade/DistUpgradeMain.py", line 238, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/DistUpgrade/DistUpgradeController.py", line 2089, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/DistUpgrade/DistUpgradeController.py", line 1932, in fullUpgrade
      if not self.updateSourcesList():
    File "/tmp/ubuntu-release-upgrader-7x1y76gi/DistUpgrade/DistUpgradeController.py", line 801, in updateSourcesList
      self.sources = SourcesList(matcherPath=self.datadir)
    File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 273, in __init__
      self.matcher = SourceEntryMatcher(matcherPath)
    File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 470, in __init__
      dist = DistInfo(base_dir=matcherPath)
    File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 184, in __init__
      with open(dist_fname) as dist_file:
  FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ubuntu-release-upgrader-7x1y76gi/Ubuntu.info'

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: ubuntu-release-upgrader-core 1:20.04.28
  Uname: Linux 5.9.0-050900-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.9
  Architecture: amd64
  CasperMD5CheckResult: skip
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct 19 07:51:27 2020
  InstallationDate: Installed on 2020-08-11 (68 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  Symptom: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to focal on 2020-10-19 (0 days ago)
  VarLogDistupgradeAptlog:
   Log time: 2020-10-19 07:49:43.637560
   Log time: 2020-10-19 07:49:48.413597
  mtime.conffile..etc.update-manager.release-upgrades: 2020-10-16T13:05:39.303959

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1900440/+subscriptions



More information about the foundations-bugs mailing list