Xenial Release upgrader failed with a permission error setting cron.daily/apt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
Trying to run `$ sudo do-release-upgrade` fails with a permission error:
Traceback (most recent call last):
File "/tmp/ubuntu-
File "/tmp/ubuntu-
File "/tmp/ubuntu-
File "/tmp/ubuntu-
File "/tmp/ubuntu-
UnboundLocalError: local variable 'e' referenced before assignment
Error in atexit.
Traceback (most recent call last):
File "/tmp/ubuntu-
PermissionError: [Errno 1] Operation not permitted: '/etc/cron.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 3.13.0-92-generic x86_64
NonfreeKernelMo
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)
PackageArchitec
SourcePackage: ubuntu-
Symptom: dist-upgrade
UpgradeStatus: Upgraded to trusty on 2016-08-09 (0 days ago)
Related branches
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → Triaged |
tags: | added: trusty2xenial |
RE: UnboundLocalError: local variable 'e' referenced before assignment
xenial: DistUpgradeCont roll.py: 1257
https:/ /apt-browse. org/browse/ ubuntu/ xenial/ main/all/ python3- distupgrade/ 1:16.04. 12/file/ usr/lib/ python3/ dist-packages/ DistUpgrade/ DistUpgradeCont roller. 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.