Comment 72 for bug 107188

Revision history for this message
djtm (djtm) wrote : Re: [MASTER] [kde] Upgrade tool crashed with " Cannot allocate memory" (edgy -> feisty)

I had the same problem during upgrade to the RC:
I confirmed to remove some packages and pretty much immediately afterwards the update manager(kde) hung up reproducibly.
I have 512 RAM and 768 Swap.
I tried upgrading once more, it crashed at the same spot.

Then I used apt-get dist-upgrade which seemed to pretty much install everything.

But now I still get the message: An upgrade for your system is available.
When I now run the update-manager it tells me it needs to remove packages.
After I confirm this, it tells me that my distribution is already up to date.

But e.g. compiz was not activated or even installed.

My memory error is the following:
----------------------------------------------------------------------------

updateStatus: Systemaktualisierung wird durchgeführt
Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/kde-root/adept_managert7pdwb.tmp-extract/DistUpgradeViewKDE.py", line 460, in _handleException
    if not run_apport():
  File "/tmp/kde-root/adept_managert7pdwb.tmp-extract/DistUpgradeApport.py", line 44, in run_apport
    ret = subprocess.call(p)
  File "/usr/lib/python2.5/subprocess.py", line 443, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.5/subprocess.py", line 593, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1061, in _execute_child
    self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory

Original exception was:
Traceback (most recent call last):
  File "/tmp/kde-root/adept_managert7pdwb.tmp-extract/dist-upgrade.py", line 59, in <module>
    app.run()
  File "/tmp/kde-root/adept_managert7pdwb.tmp-extract/DistUpgradeControler.py", line 1346, in run
    self.fullUpgrade()
  File "/tmp/kde-root/adept_managert7pdwb.tmp-extract/DistUpgradeControler.py", line 1328, in fullUpgrade
    if not self.doDistUpgrade():
File "/tmp/kde-root/adept_managert7pdwb.tmp-extract/DistUpgradeControler.py", line 798, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/kde-root/adept_managert7pdwb.tmp-extract/DistUpgradeCache.py", line 69, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python2.5/site-packages/apt/cache.py", line 203, in commit
    res = self.installArchives(pm, installProgress)
  File "/usr/lib/python2.5/site-packages/apt/cache.py", line 178, in installArchives
    res = installProgress.run(pm)
  File "/usr/lib/python2.5/site-packages/apt/progress.py", line 213, in run
    pid = self.fork()
  File "/tmp/kde-root/adept_managert7pdwb.tmp-extract/DistUpgradeViewKDE.py", line 244, in fork
    self.child_pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
updateStatus: Paketverwaltung wird überprüft
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 145
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 145
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
adept_manager: Kein Prozess beendet
adept_updater: Kein Prozess beendet

----------------------------------------------------------------------------
and the second time:

updateStatus: Systemaktualisierung wird durchgeführt
Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/kde-root/adept_manager8rwcHb.tmp-extract/DistUpgradeViewKDE.py", line 460, in _handleException
    if not run_apport():
  File "/tmp/kde-root/adept_manager8rwcHb.tmp-extract/DistUpgradeApport.py", line 44, in run_apport
    ret = subprocess.call(p)
  File "/usr/lib/python2.5/subprocess.py", line 443, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.5/subprocess.py", line 593, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1061, in _execute_child
    self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory

Original exception was:
Traceback (most recent call last):
  File "/tmp/kde-root/adept_manager8rwcHb.tmp-extract/dist-upgrade.py", line 59, in <module>
    app.run()
  File "/tmp/kde-root/adept_manager8rwcHb.tmp-extract/DistUpgradeControler.py", line 1346, in run
    self.fullUpgrade()
  File "/tmp/kde-root/adept_manager8rwcHb.tmp-extract/DistUpgradeControler.py", line 1328, in fullUpgrade
    if not self.doDistUpgrade():
 File "/tmp/kde-root/adept_manager8rwcHb.tmp-extract/DistUpgradeControler.py", line 798, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/kde-root/adept_manager8rwcHb.tmp-extract/DistUpgradeCache.py", line 69, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python2.5/site-packages/apt/cache.py", line 203, in commit
    res = self.installArchives(pm, installProgress)
  File "/usr/lib/python2.5/site-packages/apt/cache.py", line 178, in installArchives
    res = installProgress.run(pm)
  File "/usr/lib/python2.5/site-packages/apt/progress.py", line 213, in run
    pid = self.fork()
  File "/tmp/kde-root/adept_manager8rwcHb.tmp-extract/DistUpgradeViewKDE.py", line 244, in fork
    self.child_pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
updateStatus: Zwischenspeicher wird gelesen
updateStatus: Paketverwaltung wird überprüft
adept_manager: Kein Prozess beendet
adept_updater: Kein Prozess beendet
updateStatus: Zwischenspeicher wird gelesen
updateStatus: Paketverwaltung wird überprüft
updateStatus: Zwischenspeicher wird gelesen
updateStatus: Paketverwaltung wird überprüft
adept_manager: Kein Prozess beendet
adept_updater: Kein Prozess beendet

----------------------------------------------------------------------------
and now the status is:

adept_manager: Kein Prozess beendet
adept_updater: Kein Prozess beendet
Starting
Starting 2
Done
MarkUpgrade() called on a non-upgrable pkg: 'kubuntu-desktop'
Error: "/var/tmp/kdecache-djtm" is owned by uid 1000 instead of uid 0.
updateStatus: Zwischenspeicher wird gelesen
updateStatus: Paketverwaltung wird überprüft
updateStatus: Aktualisiere Informationen zu Paketdepots
updateStatus: Paketverwaltung wird überprüft
updateStatus: Nach Bestätigung fragen
updateStatus: Wiederherstellen des alten Systemzustandes