Project

General

Profile

Bug #2758

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

Added by Vincent MEMBRÉ over 8 years ago. Updated about 6 years ago.

Status:
Released
Priority:
2
Assignee:
Nicolas PERRON
Category:
Packaging
Target version:
Pull Request:
Severity:
User visibility:
Effort required:
Priority:

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

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
#1

Updated by Vincent MEMBRÉ over 8 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
#2

Updated by Vincent MEMBRÉ over 8 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.
#3

Updated by Nicolas PERRON over 8 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

#4

Updated by Nicolas PERRON over 8 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.

#5

Updated by Nicolas PERRON over 8 years ago

  • % Done changed from 0 to 80
#6

Updated by Nicolas PERRON over 8 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.

#7

Updated by Nicolas PERRON over 8 years ago

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

Updated by Matthieu CERDA over 8 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.

#9

Updated by Jonathan CLARKE over 8 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.

#10

Updated by Nicolas PERRON about 8 years ago

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

Updated by Benoît PECCATTE about 6 years ago

  • Project changed from packages to Rudder
  • Category set to Packaging
#12

Updated by Jonathan CLARKE over 5 years ago

#13

Updated by Jonathan CLARKE over 5 years ago

Also available in: Atom PDF