/usr/bin/unattended-upgrade:FileNotFoundError:/usr/bin/unattended-upgrade@1468:main:write_stamp_file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Xenial |
Fix Released
|
High
|
Brian Murray | ||
Yakkety |
Fix Released
|
High
|
Brian Murray |
Bug Description
Test Case
---------
1) edit /etc/apt/
2) sudo apt-get update
3) sudo rm -fr /var/lib/
4) sudo /usr/bin/
5) observe the following Traceback
Traceback (most recent call last):
File "/usr/bin/
main(options)
File "/usr/bin/
write_
File "/usr/bin/
with open(os.
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/
With the version of the package from -proposed you'll receive no such Traceback.
Regression Potential
-------
This patch just ends up creating a directory if it does not exist. Potential regressions would be a result of the patch being typo'ed e.g. typo'ing os.path.exits instead of os.path.exists and the code failing when a statedir does exist. So read the patch carefully!
Original description
-------
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-
If you do not have access to the Ubuntu Error Tracker you can request it at http://
description: | updated |
description: | updated |
Changed in unattended-upgrades (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in unattended-upgrades (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in unattended-upgrades (Ubuntu Yakkety): | |
status: | New → Triaged |
Changed in unattended-upgrades (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in unattended-upgrades (Ubuntu Yakkety): | |
importance: | Undecided → High |
tags: | added: yakkety |
Changed in unattended-upgrades (Ubuntu Yakkety): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Triaged → In Progress |
Changed in unattended-upgrades (Ubuntu Xenial): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Triaged → In Progress |
Changed in unattended-upgrades (Ubuntu): | |
importance: | Undecided → High |
Here's the Traceback:
Traceback (most recent call last): unattended- upgrade" , line 1468, in <module> unattended- upgrade" , line 1331, in main stamp_file( ) unattended- upgrade" , line 1011, in write_stamp_file path.join( statedir, "unattended- upgrades- stamp") , "w"): apt/periodic/ unattended- upgrades- stamp'
File "/usr/bin/
main(options)
File "/usr/bin/
write_
File "/usr/bin/
with open(os.
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/