** Description changed: Test Case --------- 1) edit /etc/apt/apt.conf.d/20auto-upgrades so that Update-Package-Lists is 1 and Unattended-Upgrade is 1 2) sudo apt-get update 3) sudo rm -fr /var/lib/apt/periodic 4) sudo /usr/bin/unattended-upgrade 5) observe the following Traceback Traceback (most recent call last): - File "/usr/bin/unattended-upgrade", line 1468, in <module> - main(options) - File "/usr/bin/unattended-upgrade", line 1419, in main - write_stamp_file() - File "/usr/bin/unattended-upgrade", line 1011, in write_stamp_file - with open(os.path.join(statedir, "unattended-upgrades-stamp"), "w"): + File "/usr/bin/unattended-upgrade", line 1468, in <module> + main(options) + File "/usr/bin/unattended-upgrade", line 1419, in main + write_stamp_file() + File "/usr/bin/unattended-upgrade", line 1011, in write_stamp_file + with open(os.path.join(statedir, "unattended-upgrades-stamp"), "w"): FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/apt/periodic/unattended-upgrades-stamp' 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-upgrades. This problem was most recently seen with package version 0.90ubuntu0.1, the problem page at https://errors.ubuntu.com/problem/4f4644d58ccc3231b270311abe8fec67b6c7ca36 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 you can request it at http://forms.canonical.com/reports/.
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unattended-upgrades in Ubuntu. https://bugs.launchpad.net/bugs/1639977 Title: /usr/bin/unattended-upgrade:FileNotFoundError:/usr/bin/unattended- upgrade@1468:main:write_stamp_file Status in unattended-upgrades package in Ubuntu: New Bug description: Test Case --------- 1) edit /etc/apt/apt.conf.d/20auto-upgrades so that Update-Package-Lists is 1 and Unattended-Upgrade is 1 2) sudo apt-get update 3) sudo rm -fr /var/lib/apt/periodic 4) sudo /usr/bin/unattended-upgrade 5) observe the following Traceback Traceback (most recent call last): File "/usr/bin/unattended-upgrade", line 1468, in <module> main(options) File "/usr/bin/unattended-upgrade", line 1419, in main write_stamp_file() File "/usr/bin/unattended-upgrade", line 1011, in write_stamp_file with open(os.path.join(statedir, "unattended-upgrades-stamp"), "w"): FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/apt/periodic/unattended-upgrades-stamp' 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-upgrades. This problem was most recently seen with package version 0.90ubuntu0.1, the problem page at https://errors.ubuntu.com/problem/4f4644d58ccc3231b270311abe8fec67b6c7ca36 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 you can request it at http://forms.canonical.com/reports/. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1639977/+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