update manager space calculation for a release upgrade was wrong - aftereffect: package ghc 7.4.1-1ubuntu2 failed to install/upgrade: ErrorMessage: dependency problems - leaving unconfigured

Bug #996379 reported by GerhardGaußling
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upgrade-system (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

upgrade-system, apport, ghc 7.4.1-1ubuntu2
I was running out of space while upgrading. Deleting some files helped to get around this. After upgrading I ran apt-get clean, rebooted and ran upgrade && dist-upgrade. Everything is fine now.

Somewhat offtopic here, but apport crashed and I'm also concerned about the way it collects those errors and their dependend packages. each package that depends to ghc created it's own apport messagebox to collect for different (?) bugreports. As a feature request for apport I propose to collect all dependend errrors into one apport message window with e.g. the affected packages to choose by selectig them from a list by using radio buttons or checkboxes.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: libghc-x11-xft-doc 0.3.1-1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic i686
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Tue May 8 00:37:33 2012
Dependencies:

EcryptfsInUse: Yes
ErrorMessage: ErrorMessage: dependency problems - leaving unconfigured
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110919)
PackageArchitecture: all
SourcePackage: haskell-x11-xft
Title: package libghc-x11-xft-doc 0.3.1-1 failed to install/upgrade: ErrorMessage: dependency problems - leaving unconfigured
UpgradeStatus: Upgraded to precise on 2012-05-07 (0 days ago)

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :
Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :
Download full text (7.6 KiB)

At this point I ran out of space:
Errors were encountered while processing:
 /var/cache/apt/archives/ghc_7.4.1-1ubuntu2_i386.deb

After deleting some files and closing the error box the upgrade process made it up to the end and asked for reboot. I rebooted without any problems and typed in sudo apt-get dist-upgrade (sorry, in german):

gerhard@gerhard-virtualbox:~$ sudo apt-get dist-upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
Probieren Sie »apt-get -f install«, um dies zu korrigieren.
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 ghc-haddock : Hängt ab von: ghc (= 7.4.1-1ubuntu2) aber 7.0.3-1ubuntu5 ist installiert
 libghc-mtl-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
 libghc-random-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
                     Hängt ab von: libghc-time-dev-1.4-3e186
 libghc-syb-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
 libghc-transformers-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
 libghc-utf8-string-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
                          Hängt ab von: libghc-bytestring-dev-0.9.2.1-4adca
 libghc-x11-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
 libghc-x11-xft-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
 libghc-xmonad-contrib-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
                             Hängt ab von: libghc-containers-dev-0.4.2.1-7c545
                             Hängt ab von: libghc-directory-dev-1.1.0.2-89575
                             Hängt ab von: libghc-extensible-exceptions-dev-0.1.1.4-d27a1
                             Hängt ab von: libghc-old-locale-dev-1.0.0.4-29bd5
                             Hängt ab von: libghc-old-time-dev-1.1.0.0-681e9
                             Hängt ab von: libghc-process-dev-1.1.0.1-91185
                             Hängt ab von: libghc-unix-dev-2.5.1.0-d72c5
 libghc-xmonad-dev : Hängt ab von: libghc-base-dev-4.5.0.0-c8e71
                     Hängt ab von: libghc-containers-dev-0.4.2.1-7c545
                     Hängt ab von: libghc-directory-dev-1.1.0.2-89575
                     Hängt ab von: libghc-extensible-exceptions-dev-0.1.1.4-d27a1
                     Hängt ab von: libghc-filepath-dev-1.3.0.0-674b8
                     Hängt ab von: libghc-process-dev-1.1.0.1-91185
                     Hängt ab von: libghc-unix-dev-2.5.1.0-d72c5
E: Unerfüllte Abhängigkeiten. Versuchen Sie, -f zu benutzen.
gerhard@gerhard-virtualbox:~$

gerhard@gerhard-virtualbox:~$ sudo apt-get -f install
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Statusinformationen werden eingelesen... Fertig
Abhängigkeiten werden korrigiert... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  libx264-116 libsvga1 libaccess-bridge-java-jni libaccess-bridge-java
  libmusicbrainz4c2a libept1 openoffice.org-common libvpx0 libaudiofile0
  libiso9660-7 libid3tag0 libreoffice-l10n-common libmatroska4
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
Die folgenden zusätzlichen Pakete werden installiert:
  ghc
Vorgeschlagene Pakete:
  ghc-prof haskell-doc ...

Read more...

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

Of course I ran sudo apt-get clean before sudo apt-get -f install.

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

These are the cluttered message boxes of apport:

ghc is already installed and configured (?)
»libghc-syb-dev« konnte nicht installiert werden
»libghc-x11-dev« konnte nicht installiert werden
»libghc-utf8-string-dev« konnte nicht installiert werden
»libghc-transformers-dev« konnte nicht installiert werden
»libghc-mtl-dev« konnte nicht installiert werden
»libghc-random-dev« konnte nicht installiert werden
»libghc-xmonad-dev« konnte nicht installiert werde
»libghc-xmonad-contrib-dev« konnte nicht installiert werden
»ghc-haddock« konnte nicht installiert werden
»libghc-x11-doc« konnte nicht installiert werden
»libghc-mtl-doc« konnte nicht installiert werden»libghc-x11-xft-doc« konnte nicht installiert werden
»libghc-xmonad-contrib-doc« konnte nicht installiert werden
»libghc-xmonad-doc« konnte nicht installiert werden
»libghc-transformers-doc« konnte nicht installiert werden
»ghc-doc« konnte nicht installiert werden

"konnte nicht installiert werden" : "Couldn't be installed"

This was the comment for the given situations:
dependency problems - leaving unconfigured

summary: - updatemanager space calculation, aftzereffect: package ghc
- 7.4.1-1ubuntu2 failed to install/upgrade: ErrorMessage: dependency
- problems - leaving unconfigured
+ update manager space calculation for a release upgrade was wrong -
+ aftereffect: package ghc 7.4.1-1ubuntu2 failed to install/upgrade:
+ ErrorMessage: dependency problems - leaving unconfigured
tags: added: ghc-7.4.1-1ubuntu2
removed: 7.4.1-1ubuntu2
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that there was an error on your system when trying to install a particular package. Please execute the following command, as it will clear your package cache, in a terminal:

sudo apt-get clean

Then try performing the update again. This will likely resolve your issue, but the failure could be caused by filesystem or memory corruption. So please also run a fsck on your filesystem(s) and a memory test. Thanks in advance!

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: failed-in-write
Changed in upgrade-system (Ubuntu):
status: New → Invalid
Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

It might would be helpful if this bug wouldn't be marked only as 'invalid', but offer a proposal where to file the bug to the appropriate place, to debugging the wrong free space calculation in the first place of the upgrade process.

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

Hm, it seems, that apport also leads me to this bug with a huge amount of duplicates, because a couple of tabs with this bug is open in my browser:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/541595

tags: added: update-manager-core
Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

/var/log/dist-upgrade/main.log

[...]
2012-05-07 23:30:21,679 DEBUG cache aufs_rw_dir: /tmp/
2012-05-07 23:30:21,679 DEBUG Free space on /: 1472831488
2012-05-07 23:30:21,679 DEBUG Dir /usr mounted on /
2012-05-07 23:30:21,679 DEBUG Dir /var mounted on /
2012-05-07 23:30:21,679 DEBUG Dir /boot mounted on /
2012-05-07 23:30:21,679 DEBUG Dir /var/cache/apt/archives mounted on /
2012-05-07 23:30:21,679 DEBUG Dir /tmp mounted on /
2012-05-07 23:30:21,679 DEBUG Dir /home mounted on /
2012-05-07 23:30:21,683 DEBUG Dir /tmp mounted on /
2012-05-07 23:30:21,683 DEBUG fs_free contains: '{'/var': <DistUpgradeCache.FreeSpace object at 0xa2d33ac>, '/tmp': <DistUpgradeCache.FreeSpace
2012-05-07 23:30:22,310 DEBUG linux-image-3.2.0-24-generic (new-install) added with 28219595 to boot space
2012-05-07 23:30:22,797 DEBUG dir '/var/cache/apt/archives' needs '975438014' of '<DistUpgradeCache.FreeSpace object at 0xa2d33ac>' (1472831488
2012-05-07 23:30:22,798 DEBUG dir '/usr' needs '378480640' of '<DistUpgradeCache.FreeSpace object at 0xa2d33ac>' (497393474.000000)
2012-05-07 23:30:22,798 DEBUG dir '/usr' needs '52428800' of '<DistUpgradeCache.FreeSpace object at 0xa2d33ac>' (118912834.000000)
2012-05-07 23:30:22,798 DEBUG dir '/boot' needs '28219595' of '<DistUpgradeCache.FreeSpace object at 0xa2d33ac>' (66484034.000000)
2012-05-07 23:30:22,798 DEBUG dir '/tmp' needs '5242880' of '<DistUpgradeCache.FreeSpace object at 0xa2d33ac>' (38264439.000000)
2012-05-07 23:30:22,798 DEBUG dir '/' needs '10485760' of '<DistUpgradeCache.FreeSpace object at 0xa2d33ac>' (33021559.000000)
2012-05-07 23:30:22,798 DEBUG dir '/tmp' needs '0.0' of '<DistUpgradeCache.FreeSpace object at 0xa2d33ac>' (22535799.000000)
2012-05-07 23:30:22,798 DEBUG dir '/usr' needs '0.0' of '<DistUpgradeCache.FreeSpace object at 0xa2d33ac>' (22535799.000000)
[...]
2012-05-08 00:06:13,174 ERROR got an error from dpkg for pkg: '/var/cache/apt/archives/ghc_7.4.1-1ubuntu2_i386.deb': 'failed in write on buffer
2012-05-08 00:06:13,558 DEBUG running apport_pkgfailure() ghc: failed in write on buffer copy for backend dpkg-deb during `./usr/lib/ghc/ghc-7.
[...]

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

Because, I didn't copied the last two lines in #8 wel, here are both full lines of main.log:

2012-05-08 00:06:13,174 ERROR got an error from dpkg for pkg: '/var/cache/apt/archives/ghc_7.4.1-1ubuntu2_i386.deb': 'failed in write on buffer copy for backend dpkg-deb during `./usr/lib/ghc/ghc-7.4.1/libHSghc-7.4.1.a': No space left on device'
2012-05-08 00:06:13,558 DEBUG running apport_pkgfailure() ghc: failed in write on buffer copy for backend dpkg-deb during `./usr/lib/ghc/ghc-7.4.1/libHSghc-7.4.1.a2012-05-08 00:06:14,053 ERROR got an error from dpkg for pkg: '/var/cache/apt/archives/ghc_7.4.1-1ubuntu2_i386.deb': 'failed in write on buffer copy for backend dpkg-deb during `./usr/lib/ghc/ghc-7.4.1/libHSghc-7.4.1.a': No space left on device'
2012-05-08 00:17:23,434 WARNING no activity on terminal for 240 seconds (libghc-mtl-dev wird entpackt)

Revision history for this message
Martin-Éric Racine (q-funk) wrote :

Could you please execute the following command:

dpkg -l '*update*' '*upgrade*' | grep ii

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

gerhard@gerhard-virtualbox:~$ dpkg -l '*update*' '*upgrade*' | grep ii
ii unattended-upgrades 0.76 automatic installation of security upgrades
ii update-inetd 4.41 inetd configuration file updater
ii update-manager 1:0.156.14.1 GNOME application that manages apt updates
ii update-manager-core 1:0.156.14.1 manage release upgrades
ii update-notifier 0.119ubuntu8.1 Daemon which notifies about package updates
ii update-notifier-common 0.119ubuntu8.1 Files shared between update-notifier and other packages

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

this seems to be a duplicate bug of these bugs:
Update manager doesn't calculate free space correctly for distribution upgrade
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/986272
[Master] package failed to install/upgrade: package is already installed and configured
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/541595

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.