cleanly upgrading from woody to cvs dpkg?
[please Cc: replies to me]
CVS as of this morning gives this when upgrading from not-unstable:
frantica:~/src$ sudo dpkg -i dpkg_1.10_i386.deb dselect_1.10_i386.deb
dpkg: regarding dpkg_1.10_i386.deb containing dpkg, pre-dependency problem:
dpkg pre-depends on dselect
dselect is not installed.
dpkg: error processing dpkg_1.10_i386.deb (--install):
pre-dependency problem - not installing dpkg
Selecting previously deselected package dselect.
(Reading database ... 56934 files and directories currently installed.)
Unpacking dselect (from dselect_1.10_i386.deb) ...
dpkg: error processing dselect_1.10_i386.deb (--install):
trying to overwrite /usr/bin/dselect', which is also in package dpkg
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
dpkg_1.10_i386.deb
dselect_1.10_i386.deb
This should fix it:
--- debian/control.orig Sat Jul 14 16:11:16 2001
+++ debian/control Fri Jul 20 12:26:17 2001
@@ -10,7 +10,8 @@
Package: dpkg
Architecture: any
Essential: yes
-Pre-Depends: dselect, ${shlibs:Pre-Depends}
+Pre-Depends: ${shlibs:Pre-Depends}
+Depends: dselect
Conflicts: sysvinit (<< 2.72)
Replaces: dpkg-doc-ja, dpkg-static
Conflicts: dpkg-static
@@ -74,7 +75,7 @@
Package: dselect
Architecture: any
Depends: ${shlibs:Depends}
-Replaces: dpkg (>= 1.9.10)
+Replaces: dpkg (<< 1.10)
Description: a user tool to manage Debian GNU/Linux packages
dselect is the primary user interface for installing, removing and
managing Debian GNU/Linux packages. It is an front-end to dpkg.
Just changing the Replaces line for dselect results in this - starting
point was dpkg 1.9.6:
frantica:~/src$ sudo dpkg -i dpkg_1.10_i386.deb dselect_1.10_i386.deb
dpkg: regarding dpkg_1.10_i386.deb containing dpkg, pre-dependency problem:
dpkg pre-depends on dselect
dselect is not installed.
dpkg: error processing dpkg_1.10_i386.deb (--install):
pre-dependency problem - not installing dpkg
Selecting previously deselected package dselect.
(Reading database ... 56934 files and directories currently installed.)
Unpacking dselect (from dselect_1.10_i386.deb) ...
Replacing files in old package dpkg ...
Setting up dselect (1.10) ...
Errors were encountered while processing:
dpkg_1.10_i386.deb
This is probably an ordering bug in dpkg 1.9.6... but still something that
should be worked around.
--
Robert Woodcock - rcw@debian.org
"Anybody else wanna negotiate?" -- The Fifth Element
Reply to: