Upgrade to SRU candidate fails due to file conflict

Bug #1210254 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
High
Chris Glass

Bug Description

In saucy, upgrading from the current 12.12 release to the 13.07.1 SRU candidate fails due to a file conflict:
root@server-26f42ba1-ddf5-4a2d-bd77-8330750387e2:~# dpkg -l|grep landscape-c
ii landscape-client 12.12-0ubuntu3 amd64 The Landscape administration system client
ii landscape-client-ui 12.12-0ubuntu3 amd64 The Landscape administration system client - UI configuration
ii landscape-client-ui-install 12.12-0ubuntu3 amd64 The Landscape administration system client - UI installer
ii landscape-common 12.12-0ubuntu3 amd64 The Landscape administration system client - Common files
root@server-26f42ba1-ddf5-4a2d-bd77-8330750387e2:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  landscape-client landscape-client-ui landscape-client-ui-install landscape-common libboost-iostreams1.53.0 libedit2 wpasupplicant
7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 872 kB/1,174 kB of archives.
After this operation, 286 kB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
root@server-26f42ba1-ddf5-4a2d-bd77-8330750387e2:~# apt-get install landscape-client landscape-common landscape-client-ui landscape-client-ui-install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  gir1.2-gudev-1.0
Use 'apt-get autoremove' to remove it.
The following packages will be upgraded:
  landscape-client landscape-client-ui landscape-client-ui-install landscape-common
4 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/301 kB of archives.
After this operation, 184 kB disk space will be freed.
Preconfiguring packages ...
(Reading database ... 57551 files and directories currently installed.)
Preparing to replace landscape-client-ui 12.12-0ubuntu3 (using .../landscape-client-ui_13.07.1-0ubuntu1_amd64.deb) ...
Unpacking replacement landscape-client-ui ...
dpkg: error processing /var/cache/apt/archives/landscape-client-ui_13.07.1-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/etc/dbus-1/system.d/landscape.conf', which is also in package landscape-client 12.12-0ubuntu3
Preparing to replace landscape-client-ui-install 12.12-0ubuntu3 (using .../landscape-client-ui-install_13.07.1-0ubuntu1_amd64.deb) ...
Unpacking replacement landscape-client-ui-install ...
Preparing to replace landscape-client 12.12-0ubuntu3 (using .../landscape-client_13.07.1-0ubuntu1_amd64.deb) ...
 * Stopping landscape-client daemon [fail]
Unpacking replacement landscape-client ...
Preparing to replace landscape-common 12.12-0ubuntu3 (using .../landscape-common_13.07.1-0ubuntu1_amd64.deb) ...
Unpacking replacement landscape-common ...
Processing triggers for mime-support ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/landscape-client-ui_13.07.1-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@server-26f42ba1-ddf5-4a2d-bd77-8330750387e2:~#

I suspect the SRU upgrade test that was done did not consider the two extra UI packages and only used landscape-{common-client}.

Tags: defect
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

State afterwards:
# dpkg -l|grep landscape-c
iU landscape-client 13.07.1-0ubuntu1 amd64 The Landscape administration system client
ii landscape-client-ui 12.12-0ubuntu3 amd64 The Landscape administration system client - UI configuration
iU landscape-client-ui-install 13.07.1-0ubuntu1 amd64 The Landscape administration system client - UI installer
iU landscape-common 13.07.1-0ubuntu1 amd64 The Landscape administration system client - Common files

A subsequent apt-get -f install fixes it, but if you are using landscape to manage this computer you are in trouble, because the client isn't running anymore.
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  gir1.2-gudev-1.0
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  landscape-client-ui
The following packages will be upgraded:
  landscape-client-ui
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
3 not fully installed or removed.
Need to get 0 B/21.6 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 57548 files and directories currently installed.)
Preparing to replace landscape-client-ui 12.12-0ubuntu3 (using .../landscape-client-ui_13.07.1-0ubuntu1_amd64.deb) ...
Unpacking replacement landscape-client-ui ...
Processing triggers for libglib2.0-0:amd64 ...
Setting up landscape-common (13.07.1-0ubuntu1) ...
Setting up landscape-client (13.07.1-0ubuntu1) ...
landscape-client is not configured, please run landscape-config.
Setting up landscape-client-ui-install (13.07.1-0ubuntu1) ...
Setting up landscape-client-ui (13.07.1-0ubuntu1) ...
Installing new version of config file /etc/dbus-1/system.d/landscape.conf ...

tags: removed: kanban
Revision history for this message
Chris Glass (tribaal) wrote :

Looks like I forgot a Breaks: stanza in the debian control file (landscape-client-ui should break landscape-client).

I will make sure this works in here https://launchpad.net/~tribaal/+archive/landscape-client/
before I push a -0ubuntu2 to the staging PPA.

Changed in landscape-client:
status: New → In Progress
Revision history for this message
Chris Glass (tribaal) wrote :

The landscape-client 13.07.1-0ubuntu2 package was pushed to the staging archive, marking as fix committed.

Changed in landscape-client:
status: In Progress → Fix Committed
David Britton (dpb)
Changed in landscape-client:
status: Fix Committed → Fix Released
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.