Project

General

Profile

Tâche #8988

Distribution EOLE - Scénario #9002: Focus mise à jour 2.4.1 (bis)

Maj-Auto retourne 0 en cas d'erreur "dpkg journal is dirty"

Added by Joël Cuissinat over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Bas
Assigned To:
Start date:
09/30/2014
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

root@amon:~# Maj-Auto -Dd
Mise à jour le mercredi 24 septembre 2014 11:01:38

*** amon 2.4.0 (00000002) ***

Configure sources.list
Maj-Auto - L’augmentation du niveau de mise à jour peut poser problème si vous souhaitez revenir à la version stable
Voulez-vous continuer [oui/non]
[non] : o
Configuring ubuntu with source http://eole.ac-dijon.fr/ubuntu
Action configure pour root
pyeole.pkg - Add source to /etc/apt/sources.list: deb http://eole.ac-dijon.fr/ubuntu precise main universe multiverse restricted
pyeole.pkg - Add source to /etc/apt/sources.list: deb http://eole.ac-dijon.fr/ubuntu precise-security main universe multiverse restricted
pyeole.pkg - Add source to /etc/apt/sources.list: deb http://eole.ac-dijon.fr/ubuntu precise-updates main universe multiverse restricted
Maj-Auto - dpkg journal is dirty, please run "dpkg --configure -a" and retry it
Traceback (most recent call last):
  File "/usr/bin/Maj-Auto", line 239, in main
    _configure_sources_ubuntu(PKGMGR, ubuntu_mirrors)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1312, in _configure_sources_ubuntu
    component=['main', 'universe', 'multiverse', 'restricted'])
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1073, in configure
    component=component)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1014, in _run
    **kwargs))
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 526, in _run
    return {u'root': getattr(self, func)(silent=silent, **kwargs)}
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 707, in configure
    self._load_apt_cache()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 508, in _load_apt_cache
    raise SystemError(u'dpkg journal is dirty, please run '
SystemError: dpkg journal is dirty, please run "dpkg --configure -a" and retry it
root@amon:~# echo $?
0

Associated revisions

Revision e5f90173 (diff)
Added by Joël Cuissinat over 6 years ago

Maj-Auto renvoie un code != 0 en cas d'erreur

  • bin/Maj-Auto : ajout de sys.exit(1) en cas d'exception

Fixes: #8988 @1h

History

#1 Updated by Joël Cuissinat over 6 years ago

  • Parent task set to #9002

#2 Updated by Joël Cuissinat over 6 years ago

  • Description updated (diff)
  • Priority changed from Normal to Bas
  • Remaining (hours) set to 2.0

#3 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Nouveau to En cours
  • Start date set to 09/30/2014

#4 Updated by Joël Cuissinat over 6 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#5 Updated by Joël Cuissinat over 6 years ago

  • Assigned To set to Joël Cuissinat
  • Remaining (hours) changed from 2.0 to 0.0

#6 Updated by Fabrice Barconnière over 6 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF