** Description changed:

- The Ubuntu Error Tracker has been receiving reports about a problem
- regarding unattended-upgrades.  This problem was most recently seen with
- version 0.90, the problem page at
- https://errors.ubuntu.com/problem/db5f0a803afdf5bb5e20a42ce68f4fda3ce0df8a
- contains more details.
+ 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 /usr/bin/unattended-upgrades (to update the system)
+ 4) sudo /usr/bin/unattended-upgrades (a second time for some reason)
+ 5) sudo rm /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
+ 6) sudo /usr/bin/unattended-upgrades
+ 
+ Observe the following crash:
+ 
+ Traceback (most recent call last):
+   File "/usr/bin/unattended-upgrade", line 1468, in <module>
+     main(options)
+   File "/usr/bin/unattended-upgrade", line 1406, in main
+     log_content = get_dpkg_log_content(logfile_dpkg, install_start_time)
+   File "/usr/bin/unattended-upgrade", line 1075, in get_dpkg_log_content
+     with io.open(logfile_dpkg, encoding='utf-8') as fp:
+ FileNotFoundError: [Errno 2] No such file or directory: 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg.log'
+ 
+ With the version of the package from -proposed you won't receive the
+ crash in step 6.
+ 
+ Original Description
+ --------------------
+ The Ubuntu Error Tracker has been receiving reports about a problem regarding 
unattended-upgrades.  This problem was most recently seen with version 0.90, 
the problem page at 
https://errors.ubuntu.com/problem/db5f0a803afdf5bb5e20a42ce68f4fda3ce0df8a 
contains more details.

** 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 /usr/bin/unattended-upgrades (to update the system)
  4) sudo /usr/bin/unattended-upgrades (a second time for some reason)
  5) sudo rm /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
  6) sudo /usr/bin/unattended-upgrades
  
  Observe the following crash:
  
  Traceback (most recent call last):
-   File "/usr/bin/unattended-upgrade", line 1468, in <module>
-     main(options)
-   File "/usr/bin/unattended-upgrade", line 1406, in main
-     log_content = get_dpkg_log_content(logfile_dpkg, install_start_time)
-   File "/usr/bin/unattended-upgrade", line 1075, in get_dpkg_log_content
-     with io.open(logfile_dpkg, encoding='utf-8') as fp:
+   File "/usr/bin/unattended-upgrade", line 1468, in <module>
+     main(options)
+   File "/usr/bin/unattended-upgrade", line 1406, in main
+     log_content = get_dpkg_log_content(logfile_dpkg, install_start_time)
+   File "/usr/bin/unattended-upgrade", line 1075, in get_dpkg_log_content
+     with io.open(logfile_dpkg, encoding='utf-8') as fp:
  FileNotFoundError: [Errno 2] No such file or directory: 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg.log'
  
  With the version of the package from -proposed you won't receive the
- crash in step 6.
+ crash in step 6 and /var/log/unattended-upgrades/unattended-upgrades-
+ dpkg.log will exist.
  
  Original Description
  --------------------
  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
unattended-upgrades.  This problem was most recently seen with version 0.90, 
the problem page at 
https://errors.ubuntu.com/problem/db5f0a803afdf5bb5e20a42ce68f4fda3ce0df8a 
contains more details.

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

Title:
  /usr/bin/unattended-upgrade:FileNotFoundError:/usr/bin/unattended-
  upgrade@1468:main:get_dpkg_log_content

Status in unattended-upgrades package in Ubuntu:
  In Progress
Status in unattended-upgrades source package in Xenial:
  In Progress
Status in unattended-upgrades source package in Yakkety:
  In Progress
Status in unattended-upgrades source package in Zesty:
  In Progress

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 /usr/bin/unattended-upgrades (to update the system)
  4) sudo /usr/bin/unattended-upgrades (a second time for some reason)
  5) sudo rm /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
  6) sudo /usr/bin/unattended-upgrades

  Observe the following crash:

  Traceback (most recent call last):
    File "/usr/bin/unattended-upgrade", line 1468, in <module>
      main(options)
    File "/usr/bin/unattended-upgrade", line 1406, in main
      log_content = get_dpkg_log_content(logfile_dpkg, install_start_time)
    File "/usr/bin/unattended-upgrade", line 1075, in get_dpkg_log_content
      with io.open(logfile_dpkg, encoding='utf-8') as fp:
  FileNotFoundError: [Errno 2] No such file or directory: 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg.log'

  With the version of the package from -proposed you won't receive the
  crash in step 6 and /var/log/unattended-upgrades/unattended-upgrades-
  dpkg.log will exist.

  Original Description
  --------------------
  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
unattended-upgrades.  This problem was most recently seen with version 0.90, 
the problem page at 
https://errors.ubuntu.com/problem/db5f0a803afdf5bb5e20a42ce68f4fda3ce0df8a 
contains more details.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1590321/+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

Reply via email to