Bug #2758
closedCan't upgrade from 2.3 to 2.4 with apt-get
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.
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
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.
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
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.
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.
Updated by Nicolas PERRON over 12 years ago
- Status changed from In progress to Pending technical review
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.
Updated by Jonathan CLARKE over 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.
Updated by Nicolas PERRON almost 12 years ago
- Project changed from Rudder to 34
- Category deleted (
11)
Updated by Benoît PECCATTE almost 10 years ago
- Project changed from 34 to Rudder
- Category set to Packaging
Updated by Jonathan CLARKE almost 9 years ago
- Related to Architecture #2312: Rename PT/PI/CR in packaging added
Updated by Jonathan CLARKE almost 9 years ago
- Related to Architecture #7723: Remove deprecated package rudder-policy-templates added