[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2017-10-18 Thread Balint Reczey
The error propagation is most likely fixed in 0.98, LP: #1632361 , while
u-u can't do much when dpkg fails. The next u-u run will try to recover
from the broken state.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2017-09-03 Thread gouri
Hello. Seen a crash report window appear on Ubuntu 16.04, mentioning
DuplicateOf https://bugs.launchpad.net/bugs/1052360 .

Also received the "unattended-upgrade" mail as usual. It said:

> Écriture du journal de dpkg dans « 
> /var/log/unattended-upgrades/unattended-upgrades-dpkg.log »
> Échec de l'installation des mises à niveau !
> message d'erreur : « installArchives() failed »
> Dpkg a retourné une erreur ! Voir « 
> /var/log/unattended-upgrades/unattended-upgrades-dpkg.log » pour les détails

Besides, /var/log/unattended-upgrades/unattended-upgrades-dpkg.log was

> Log started: 2017-09-02  06:34:22
> Error in function: install
> Log ended: 2017-09-02  06:34:22
> 
> Log started: 2017-09-04  06:08:45
> Error in function: install
> Log ended: 2017-09-04  06:08:45

So, no real clue here either.

Seen comment #24.  Hard to open a new bug with so few information.

Perhaps the *real* bug is that code paths don't propagate errors with
enough details to allow proper tracing of what happends when things
fail?

My 2 cents. :-)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2016-09-07 Thread Mathew Hodson
Closing this. If you experience a crash in unattended-upgrades please
follow the instructions in comment #17 and report a new bug.

** Changed in: unattended-upgrades (Ubuntu)
   Status: Confirmed => Invalid

** Tags removed: raring trusty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2014-12-14 Thread Rolf Leggewie
** Tags added: trusty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2014-09-24 Thread Tuomas Heino
Got matching issue because of /usr full on an old unattended precise setup that 
was trying to upgrade firefox.
Almost-interesting part of dpkg log just in case:

Errors were encountered while processing:
 /var/cache/apt/archives/firefox_32.0.3+build1-0ubuntu0.12.04.1_amd64.deb
 /var/cache/apt/archives/thunderbird_1%3a31.1.2+build1-0ubuntu0.12.04.1_amd64.de
b
Error in function: 
close failed in file object destructor:
IOError: [Errno 9] Bad file descriptor
Error in sys.excepthook:
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-packages/apport_python_hook.py, line 89, in 
apport_excepthook
pr = apport.report.Report()
AttributeError: 'module' object has no attribute 'report'

Original exception was:
IOError: [Errno 9] Bad file descriptor
close failed in file object destructor:
IOError: [Errno 9] Bad file descriptor

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2014-07-17 Thread Alex Muntada
FWIW, I got this issue this morning when I logged into my desktop.

In my case the problem was that installing a new kernel failed because
there wasn't enough space in /boot (I have a really tiny /boot and this
happens whenever I forget to purge old kernels).

Hope this helps!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2014-05-27 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: unattended-upgrades (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2014-05-27 Thread Inoki S.
Filed a new bug report based on #17's response. Can be found here
https://bugs.launchpad.net/ubuntu/+source/unattended-
upgrades/+bug/1323593

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2014-05-07 Thread Olaf Meeuwissen
Just happened to me on trusty, installed yesterday.

Looking at my unattended-upgrades-dpkg log, it was immediately clear
that in my case it had nothing to do with unattended-upgrades itself.
There was a minor problem with the configuration options of one of the
programs that got invoked through the scriptlets in
/etc/apt/apt.conf.d/.  This caused that program (git, if you have to
know) to exit with an error.  The error travelled up the call chain,
finally arriving at unattended-upgrades which gets the blame.

I guess that most of the people commenting here are experiencing
something similar: unattended-upgrades getting blamed for an error
condition that happens somewhere completely else.  Please look at the
unattended-upgrades-dpkg log before blaming unattended-upgrades.

Re #14, looks like some other process grabbed the lock sometime before
unattended-upgrades got to call dpkg (via apt?).  It could perhaps be
somewhat cleverer about that but if dpkg cannot do its work, there's not
much unattended-upgrades can do about that than complain and exit with
an error status.  In case of a lock, it could reschedule itself or wait
until the lock becomes available.

Re #11, could be a botched PATH when run from cron.

Writing this up, I get the impression that apport is being (ab?)used to
report cron jobs that exited unsuccessfully.  In the not-so-old days, I
would have expected something like this in the mail.  Not a popup
inviting me to send a crash report.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1052360

Title:
  unattended-upgrade crashed with SystemError: E:Sub-process
  /usr/bin/dpkg returned an error code (2) for an unknown reason

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1052360/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1052360] Re: unattended-upgrade crashed with SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2) for an unknown reason

2014-03-14 Thread Unifex
I am seeing this error just after logging into the desktop.  It's fairly
consistent.  The Crash Report says it's a duplicate of this bug and as
requested in comment #17 I'm pasting in the log file;

unifex@shipnet:~$ cat /var/log/unattended-upgrades/unattended-upgrades.log
2014-03-02 07:45:46,181 INFO Initial blacklisted packages: 
2014-03-02 07:45:46,182 INFO Starting unattended upgrades script
2014-03-02 07:45:46,182 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-02 07:45:51,652 INFO No packages found that can be upgraded unattended
2014-03-03 08:05:33,897 INFO Initial blacklisted packages: 
2014-03-03 08:05:33,897 INFO Starting unattended upgrades script
2014-03-03 08:05:33,897 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-03 08:05:36,136 INFO No packages found that can be upgraded unattended
2014-03-04 07:50:56,392 INFO Initial blacklisted packages: 
2014-03-04 07:50:56,393 INFO Starting unattended upgrades script
2014-03-04 07:50:56,393 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-04 07:51:12,370 INFO Packages that will be upgraded: 
libapache2-mod-php5 libpython2.7 libpython2.7-minimal libpython2.7-stdlib 
libpython3.3 libpython3.3-minimal libpython3.3-stdlib php5 php5-cli php5-common 
php5-curl php5-gd php5-pgsql php5-readline php5-sqlite php5-tidy php5-xmlrpc 
php5-xsl python2.7 python2.7-minimal python3.3 python3.3-minimal
2014-03-04 07:51:12,371 INFO Writing dpkg log to 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg_2014-03-04_07:51:12.371119.log'
2014-03-04 07:51:33,340 INFO All upgrades installed
2014-03-05 07:38:57,599 INFO Initial blacklisted packages: 
2014-03-05 07:38:57,600 INFO Starting unattended upgrades script
2014-03-05 07:38:57,600 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-05 07:39:01,022 INFO Packages that will be upgraded: 
libgnutls-openssl27 libgnutls26
2014-03-05 07:39:01,023 INFO Writing dpkg log to 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg_2014-03-05_07:39:01.022910.log'
2014-03-05 07:39:02,914 INFO All upgrades installed
2014-03-06 07:40:42,826 INFO Initial blacklisted packages: 
2014-03-06 07:40:42,826 INFO Starting unattended upgrades script
2014-03-06 07:40:42,827 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-06 07:40:44,952 INFO No packages found that can be upgraded unattended
2014-03-07 08:04:19,711 INFO Initial blacklisted packages: 
2014-03-07 08:04:19,712 INFO Starting unattended upgrades script
2014-03-07 08:04:19,712 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-07 08:04:26,248 INFO Packages that will be upgraded: icedtea-6-plugin 
icedtea-netx icedtea-netx-common linux-generic linux-headers-generic 
linux-image-generic linux-libc-dev
2014-03-07 08:04:26,248 INFO Writing dpkg log to 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg_2014-03-07_08:04:26.248516.log'
2014-03-07 08:05:58,466 ERROR Installing the upgrades failed!
2014-03-07 08:05:58,467 ERROR error message: 'installArchives() failed'
2014-03-07 08:05:58,467 ERROR dpkg returned a error! See 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg_2014-03-07_08:04:26.248516.log'
 for details
2014-03-08 07:47:33,188 INFO Initial blacklisted packages: 
2014-03-08 07:47:33,189 INFO Starting unattended upgrades script
2014-03-08 07:47:33,189 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-08 07:47:38,452 INFO Packages that will be upgraded: imagemagick 
imagemagick-common libmagickcore5 libmagickcore5-extra libmagickwand5
2014-03-08 07:47:38,452 INFO Writing dpkg log to 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg_2014-03-08_07:47:38.452426.log'
2014-03-08 07:47:56,844 ERROR Installing the upgrades failed!
2014-03-08 07:47:56,845 ERROR error message: 'installArchives() failed'
2014-03-08 07:47:56,846 ERROR dpkg returned a error! See 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg_2014-03-08_07:47:38.452426.log'
 for details
2014-03-09 08:02:40,084 INFO Initial blacklisted packages: 
2014-03-09 08:02:40,084 INFO Starting unattended upgrades script
2014-03-09 08:02:40,085 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-09 08:02:42,335 INFO No packages found that can be upgraded unattended
2014-03-10 07:47:49,431 INFO Initial blacklisted packages: 
2014-03-10 07:47:49,432 INFO Starting unattended upgrades script
2014-03-10 07:47:49,432 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-10 07:47:51,534 INFO No packages found that can be upgraded unattended
2014-03-11 07:39:03,484 INFO Initial blacklisted packages: 
2014-03-11 07:39:03,484 INFO Starting unattended upgrades script
2014-03-11 07:39:03,485 INFO Allowed origins are: ['o=Ubuntu,a=saucy-security']
2014-03-11 07:39:07,431 INFO Packages that will be upgraded: libudisks2-0 
udisks udisks2
2014-03-11 07:39:07,431 INFO Writing dpkg log to 
'/var/log/unattended-upgrades/unattended-upgrades-dpkg_2014-03-11_07:39:07.431218.log'
2014-03-11 07:39:28,923 ERROR