Project

General

Profile

Actions

Bug #2758

closed

Can't upgrade from 2.3 to 2.4 with apt-get

Added by Vincent MEMBRÉ over 12 years ago. Updated over 9 years ago.

Status:
Released
Priority:
2
Assignee:
Nicolas PERRON
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

After changing from repository 2.3 to repository 2.4, running apt-get upgrade tries to upgrade rudder-cfengine-community and rudder-policy-templates
and don't upgrade rudder-server-root and rudder-webapp

  • rudder-cfengine-community and rudder-policy-templates should not be upgraded and be replaced by rudder-agent and rudder-techniques
  • rudder-server-root and rudder-webapp should be upgraded
The following packages have been kept back:
  rudder-server-root rudder-webapp
The following packages will be upgraded:
  rudder-cfengine-community rudder-inventory-endpoint rudder-inventory-ldap rudder-jetty rudder-policy-templates rudder-reports
6 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

it should works like aptitude upgrade, which works perfectly fine:

The following NEW packages will be installed:
  rudder-agent{a} rudder-techniques{a} uuid-runtime{a} 
The following packages will be REMOVED:
  rudder-cfengine-community{u} rudder-policy-templates{u} 
The following packages will be upgraded:
 rudder-inventory-endpoint rudder-inventory-ldap rudder-jetty rudder-reports rudder-server-root rudder-webapp 
6 packages upgraded, 3 newly installed, 2 to remove and 0 not upgraded.

Related issues 2 (0 open2 closed)

Related to Rudder - Architecture #2312: Rename PT/PI/CR in packagingReleasedJonathan CLARKE2012-02-22Actions
Related to Rudder - Architecture #7723: Remove deprecated package rudder-policy-templatesReleasedBenoît PECCATTE2016-01-04Actions
Actions #1

Updated by Vincent MEMBRÉ over 12 years ago

  • Category set to 11
  • Assignee set to Nicolas PERRON
  • Priority changed from N/A to 2
  • Target version set to 2.4.0~beta3
Actions #2

Updated by Vincent MEMBRÉ over 12 years ago

  • Description updated (diff)

when using apt-get dist-upgrade it looks better,

  • rudder-cfengine-community is replaced by rudder-agent
  • rudder-server-root is upgraded
  • rudder-webapp is still not upgraded
  • and rudder-policy-templates is still not replace by rudder-techniques
The following packages will be REMOVED:
  rudder-cfengine-community
The following NEW packages will be installed:
 rudder-agent uuid-runtime
The following packages have been kept back:
  rudder-webapp
The following packages will be upgraded:
  rudder-inventory-endpoint rudder-inventory-ldap rudder-jetty rudder-policy-templates rudder-reports rudder-server-root
6 upgraded, 2 newly installed, 1 to remove and 1 not upgraded.
Actions #3

Updated by Nicolas PERRON over 12 years ago

  • Status changed from New to In progress

Vincent MEMBRÉ wrote:

when using apt-get dist-upgrade it looks better,

  • rudder-cfengine-community is replaced by rudder-agent
  • rudder-server-root is upgraded
  • rudder-webapp is still not upgraded
  • and rudder-policy-templates is still not replace by rudder-techniques

[...]

As it is described by apt-get dist-upgrade message, rudder-policy-templates has not been replaced by rudder-techniques, neither rudder-cfengine-community by rudder-agent but the both of these packages are installed at the same time. besides rudder-webapp seems to be updated but apt-get still considers this package as not updated:

root@squeezedev:~# apt-cache search -i -f rudder | grep -A 1 "Package: " 
Package: rudder-agent
Version: 2.4.0~beta3~git201208030130-squeeze0
--
Package: rudder-cfengine-community
Version: 2.4.0~beta3~git201207240129-squeeze0
--
Package: rudder-inventory-endpoint
Version: 2.4.0~beta3~git201208030130-squeeze0
--
Package: rudder-inventory-ldap
Version: 2.4.0~beta3~git201208030130-squeeze0
--
Package: rudder-jetty
Version: 2.4.0~beta3~git201208030130-squeeze0
--
Package: rudder-policy-templates
Version: 2.4.0~alpha5~git201202220002-squeeze0
--
Package: rudder-reports
Version: 2.4.0~beta3~git201208030130-squeeze0
--
Package: rudder-server-root
Version: 2.4.0~beta3~git201208030130-squeeze0
--
Package: rudder-techniques
Version: 2.4.0~beta3~git201208030130-squeeze0
--
Package: rudder-webapp
Version: 2.4.0~beta3~git201208030130-squeeze0
root@squeezedev:~# apt-get distupgrade
E: Invalid operation distupgrade
root@squeezedev:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  rudder-webapp
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

It may have a instruction missing in debian/control to declare rudder-cfengine-community and rudder-policy-templates to be removed

Actions #4

Updated by Nicolas PERRON over 12 years ago

It seems that for apt-get, renaming packages needs the use of dummy transitional packages, like described here: http://wiki.debian.org/Renaming_a_Package

I have added two folder in order to build dummy packages for debian: rudder-cfengine-community and rudder-policy-templates.

Actions #5

Updated by Nicolas PERRON over 12 years ago

  • % Done changed from 0 to 80
Actions #6

Updated by Nicolas PERRON over 12 years ago

  • % Done changed from 80 to 100

The use of dummy packages for rudder-cfengine-community and rudder-policy-templates seems to works for the use of apt-get. We can consider this issue as finished.

Actions #7

Updated by Nicolas PERRON over 12 years ago

  • Status changed from In progress to Pending technical review
Actions #8

Updated by Matthieu CERDA over 12 years ago

Dummy packages ! impressive, we are beginning to master Debian packages :D On the road to have official Rudder packages in the Debian tree next ? Technical review OK.

Actions #9

Updated by Jonathan CLARKE about 12 years ago

  • Status changed from Pending technical review to Released

This looks fine, except for some weirdness introduced in the README and copyright files for rudder-policy-templates (I checked the diff from the 2.3 branch). Fixed in a commit just now.

Actions #10

Updated by Nicolas PERRON almost 12 years ago

  • Project changed from Rudder to 34
  • Category deleted (11)
Actions #11

Updated by Benoît PECCATTE over 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions #12

Updated by Jonathan CLARKE almost 9 years ago

Actions #13

Updated by Jonathan CLARKE almost 9 years ago

Actions

Also available in: Atom PDF