[Bug 1611470] Re: Xenial Release upgrader failed with a permission error setting cron.daily/apt

MissionSix 1611470 at bugs.launchpad.net
Tue Aug 9 18:51:09 UTC 2016


RE: UnboundLocalError: local variable 'e' referenced before assignment


xenial: DistUpgradeControll.py:1257


https://apt-browse.org/browse/ubuntu/xenial/main/all/python3-distupgrade/1:16.04.12/file/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py#1257


        # maximum fetch-retries reached without a successful commit
        logging.error("giving up on fetching after maximum retries")
        self._view.error(_("Could not download the upgrades"),
                         _("The upgrade has aborted. Please check your "\
                           "Internet connection or "\
                           "installation media and try again. "),
                           "%s" % e)


This error message is outside of the exception scope, and within the retry loop. So the `e` here is unbounded.

-- 
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/1611470

Title:
  Xenial Release upgrader failed with a permission error setting
  cron.daily/apt

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

Bug description:
  Trying to run `$ sudo do-release-upgrade` fails with a permission
  error:

  
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-0as70maz/xenial", line 8, in <module>
    File "/tmp/ubuntu-release-upgrader-0as70maz/DistUpgrade/DistUpgradeMain.py", line 242, in main
    File "/tmp/ubuntu-release-upgrader-0as70maz/DistUpgrade/DistUpgradeController.py", line 1876, in run
    File "/tmp/ubuntu-release-upgrader-0as70maz/DistUpgrade/DistUpgradeController.py", line 1841, in fullUpgrade
    File "/tmp/ubuntu-release-upgrader-0as70maz/DistUpgrade/DistUpgradeController.py", line 1257, in doDistUpgrade
  UnboundLocalError: local variable 'e' referenced before assignment
  Error in atexit._run_exitfuncs:
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-0as70maz/DistUpgrade/DistUpgradeController.py", line 1062, in _enableAptCronJob
  PermissionError: [Errno 1] Operation not permitted: '/etc/cron.daily/apt'

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: ubuntu-release-upgrader-core 1:0.220.8
  ProcVersionSignature: Ubuntu 3.13.0-92.139-generic 3.13.11-ckt39
  Uname: Linux 3.13.0-92-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.14.1-0ubuntu3.21
  Architecture: amd64
  CrashDB: ubuntu
  CurrentDesktop: GNOME
  Date: Tue Aug  9 11:24:21 2016
  InstallationDate: Installed on 2012-08-31 (1439 days ago)
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  Symptom: dist-upgrade
  UpgradeStatus: Upgraded to trusty on 2016-08-09 (0 days ago)

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



More information about the foundations-bugs mailing list