update manager and aptitude not in sync

Bug #205149 reported by danbuter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Confirmed
Undecided
Unassigned
Declined for Karmic by Brian Murray

Bug Description

In Hardy Heron, I just updated using the update manager. It found and updated a bunch of mono stuff. Immediately after this, I did an aptitude update/upgrade. It found and upgraded cupsys stuff. Shouldn't the cupsys upgrade have shown up in update manager? Or are they separate for some reason I am unaware of?

danbuter (buter1)
description: updated
Revision history for this message
danbuter (buter1) wrote :

libgcc1 1:4.2.3-2ubuntu4
lsb-base 3.1-24ubuntu2
libreadline5 5.2-3build1
libslang2 2.1.3-2
libtiff4 3.8.2-7ubuntu2
libncursesw5 5.6+20071124-1ubuntu2
whiptail 0.52.2-11.1ubuntu1
libtext-charwidth-perl 0.04-4build1
libxrender1 1:0.9.4-1
fontconfig 2.5.0-2ubuntu3
libssl0.9.8 0.9.8g-4ubuntu2
liblocale-gettext-perl 1.05-2
libxau6 1:1.0.3-2
libdbus-1-3 1.1.20-1ubuntu1
libkeyutils1 1.2-4
libxfixes3 1:4.0.3-2
libxcb-xlib0 1.1-1ubuntu1
libjpeg62 6b-14
libxcomposite1 1:0.4.0-1
libacl1 2.2.45-1
libncurses5 5.6+20071124-1ubuntu2
readline-common 5.2-3build1
libgtk2.0-0 2.12.9-2ubuntu1
libgpg-error0 1.4-2ubuntu7
libidl0 0.8.10-0.1
libxt6 1:1.0.5-3
libpopt0 1.10-3build1
psmisc 22.6-1
libxcursor1 1:1.1.9-1
libfontconfig1 2.5.0-2ubuntu3
debconf 1.5.20
libpng12-0 1.2.15~beta5-3
defoma 0.11.10-0.2
libtext-wrapi18n-perl 0.06-5
ttf-dejavu 2.23-1
sed 4.1.5-5
libcupsys2 1.3.6-2ubuntu2
python2.5-minimal 2.5.2-2ubuntu2
libxrandr2 2:1.2.2-1
libselinux1 2.0.55-0ubuntu4
libsqlite3-0 3.4.2-2
libmagic1 4.21-3
libpcre3 7.4-1ubuntu2
python2.5 2.5.2-2ubuntu2
libattr1 1:2.4.39-1
mime-support 3.39-1
libcomerr2 1.40.3-1
libdatrie0 0.1.2-2
ttf-dejavu-extra 2.23-1
fontconfig-config 2.5.0-2ubuntu3
libgnutls13 2.0.4-1ubuntu2
libnspr4-0d 4.7.0~1.9b4-0ubuntu1
libglib2.0-0 2.16.1-2~hardy1
libxcb1 1.1-1ubuntu1
libxinerama1 2:1.0.2-1build1
libxext6 2:1.0.3-2build1
libthai-data 0.1.9-1
xulrunner-1.9 1.9~b4+nobinonly-0ubuntu1
ucf 3.005
libpango1.0-common 1.20.0-1
perl 5.8.8-12
libgcrypt11 1.2.4-2ubuntu7
cpp-4.2 4.2.3-2ubuntu4
libbz2-1.0 1.0.4-2ubuntu4
debconf-i18n 1.5.20
libxdamage1 1:1.1.1-3
libnewt0.52 0.52.2-11.1ubuntu1
libxi6 2:1.1.3-1
libcairo2 1.5.14-0ubuntu1
x11-common 1:7.3+10ubuntu7
libkrb53 1.6.dfsg.3~beta1-2ubuntu1
firefox-3.0 3.0~b4+nobinonly-0ubuntu1
debianutils 2.28.2
ttf-dejavu-core 2.23-1
libnss3-1d 3.12.0~1.9b4-0ubuntu1
libstartup-notification0 0.9-1
libtasn1-3 1.1-1
libhunspell-1.1-0 1.1.9-1
libxdmcp6 1:1.0.2-2
libopencdk10 0.6.6-1ubuntu1
libx11-data 2:1.1.3-1ubuntu2
libatk1.0-0 1.22.0-0ubuntu1
libpixman-1-0 0.9.6-1
libfreetype6 2.3.5-1ubuntu4
libtext-iconv-perl 1.4-3
libice6 2:1.0.4-1
file 4.21-3
libsm6 2:1.0.3-1
libthai0 0.1.9-1
perl-modules 5.8.8-12
coreutils 6.10-3ubuntu1
gcc-4.2-base 4.2.3-2ubuntu4
libgdbm3 1.8.3-3
libstdc++6 4.2.3-2ubuntu4
libgtk2.0-common 2.12.9-2ubuntu1
libx11-6 2:1.1.3-1ubuntu2
libdbus-glib-1-2 0.74-1
ncurses-bin 5.6+20071124-1ubuntu2
zlib1g 1:1.2.3.3.dfsg-7ubuntu1
libc6 2.7-9ubuntu2
libxft2 2.1.12-2ubuntu4
liblzo2-2 2.02-3
perl-base 5.8.8-12
libdb4.6 4.6.21-6ubuntu1
cpp 4:4.2.3-1ubuntu3
libpango1.0-0 1.20.0-1
libexpat1 2.0.1-0ubuntu1

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. Could you please add all the files contained in /var/log/dist-upgrade/ to your bug report as separate attachments? Thanks in advance.

Changed in update-manager:
status: New → Incomplete
Revision history for this message
danbuter (buter1) wrote :

I checked var/log/dist-grade. It is empty, including no hidden files.

Revision history for this message
danbuter (buter1) wrote :

Is there anything else I can list? I have also had update-manager have files listed, then ran an aptitude update/upgrade, and it couldnt' find them. It's happened 3 or 4 times in the last 2 weeks.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are closing this report because you reported this bug a while ago and there is no recent duplicate nor user mentioning having the issue on Intrepid. If this is still an issue, don't hesitate to reopen the report. Thanks again!

Changed in update-manager:
status: Incomplete → Invalid
Changed in update-manager (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

Aptitude and Update-manager do different things :

Update-manager *installed* apache stuff when no apache was previously present on my machine (i use lighttpd), and this use my (low) BANDWIDTH as i configured it to download in background before warning me for updates.

These apache packages where marked as "new install" (or alike), whereas Aptitude would not have done this.

after update, i needed to :
aptitude remove apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapache2-mod-php5 libaprutil1-dbd-sqlite3 libaprutil1-ldap

Karmic (upgraded from Jaunty some weeks ago)
------------------------------------------------------------------------
before update :
~# dpkg -l | grep apache
~#
~# aptitude -s safe-upgrade
 ....
Les paquets suivants seront mis à jour :
  libgd2-xpm libhtml-parser-perl php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-ldap php5-pgsql php5-xmlrpc
11 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de télécharger 0o/8 396ko d'archives. Après dépaquetage, 0o seront utilisés.
Voulez-vous continuer ? [Y/n/?] n
---------------------------------------------
After upgrade i have additional apache packages (i remove from the diff the normal stuff)

~# diff dpkg-l_preupdatemanager dpkg-l_post-updatemanager -U 0

--- dpkg-l_preupdatemanager 2009-11-06 10:51:23.000000000 +0100
+++ dpkg-l_post-updatemanager 2009-11-06 10:54:24.000000000 +0100
@@ -25,0 +26,4 @@
+ii apache2-mpm-prefork 2.2.12-1ubuntu2 Apache - traditional non-threaded model
+ii apache2-utils 2.2.12-1ubuntu2 utility programs for webservers
+ii apache2.2-bin 2.2.12-1ubuntu2 Apache HTTP Server common binary files
+ii apache2.2-common 2.2.12-1ubuntu2 Apache HTTP Server common files
@@ -503,0 +508 @@
+ii libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.1 server-side (Apache 2 module)
@@ -508,0 +514,2 @@
+ii libaprutil1-dbd-sqlite3 1.3.9+dfsg-1ubuntu1 The Apache Utility Library - SQLite3 Driver
+ii libaprutil1-ldap 1.3.9+dfsg-1ubuntu1 The Apache Utility Library - LDAP Driver
---------------------------------

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :
Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Could you please check if you still have the old dpkg stateus file (from before the upgrade) in /var/backups ? If so, please attach it and I will try to reproduce the behavior.

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

i attach both before and after dpkg.status and aptitude.status

rw-r--r-- 1 root root 567310 2009-11-07 02:08 dpkg.status.3.gz
-rw-r--r-- 1 root root 567294 2009-11-05 23:35 dpkg.status.4.gz

-rw-r--r-- 1 root root 226230 2009-11-07 02:06 aptitude.pkgstates.3.gz
-rw-r--r-- 1 root root 226250 2009-11-05 23:35 aptitude.pkgstates.4.gz

(remider: the upgrade happend near -rw-r--r-- 1 root root 227375 2009-11-06 11:23 ../log/dist-upgrade.tgz )

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

OOPS i misclicked and took a wrong file :)

2009-11-05 23:35 aptitude.pkgstates.4.gz before upgrade

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

2009-11-05 23:35 dpkg.status.4.gz before upgrade

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

Just in case in can help too, the dpkg.status file some time *after* upgrade
2009-11-07 02:08 dpkg.status.3.gz

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

Maybe i have a clue, its only a guess :
- update-manager checks if update are needed
- it starts downloading silently (as required in my conf) and does not lock the dpkg_stuff. As i have little bandwidth, it may take some time
- meanwhile i uninstall some packages included in the upgrade (here apache)
- when the upgrade starts, the package list is wrong (but still consistent i hope)

I think there is something wrong about *when* upgrade manager checks the date of the last `apt-get update`, and *when* it starts upgrades.

my 2 cents.

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

Additional informations:
Again today 2009-11-27 update-manager during automatic update want to install *new* packages that does not exist on my machine.

- aptitude wants to update several php packages
 php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-ldap php5-pgsql php5-xmlrpc

- upgrade manager wants the same + install apache stuff:

apache2-mpm-prefork (new install)
apache2-utils
apache2.2-bin
apache2.2-common
libapache2-mod-php5
libaprutil1-dbd-sqlite3
libaprutil1-ldap

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

OK i think got it , something is wrong in the way update-manager manages dependencies:

On my server php5 is installed and need to be upgraded

<pre>
 # LANG=en aptitude show php5
 Package: php5
 New: yes <------- why new ? Is it the cause of the trouble ?
 State: installed
 Automatically installed: no
 Version: 5.2.10.dfsg.1-2ubuntu6.1
 Priority: optional
 Section: web
 Maintainer: Ubuntu Core Developers <email address hidden>
 Uncompressed Size: 20.5k
 Depends: libapache2-mod-php5 (>= 5.2.10.dfsg.1-2ubuntu6.1) | libapache2-mod-php5filter (>= 5.2.10.dfsg.1-2ubuntu6.1) | php5-cgi (>= 5.2.10.dfsg.1-2ubuntu6.1), php5-common (>=
         5.2.10.dfsg.1-2ubuntu6.1)
</pre>

it considers that libapache2-mod-php5 must be installed, but the dependency says
 libapache2-mod-php5 | libapache2-mod-php5filter | php5-cgi

the last choice php5-cgi is installed in my machine so the apache stuff is not needed.

Revision history for this message
Alain Baeckeroot (alain-baeckeroot) wrote :

# aptitude -s install libapache2-mod-php5
The following NEW packages will be installed:
  apache2-mpm-prefork{a} apache2-utils{a} apache2.2-bin{a} apache2.2-common{a} libapache2-mod-php5 libaprutil1-dbd-sqlite3{a} libaprutil1-ldap{a}

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.