Re: Bug#137019: debconf: apt can't dist-upgrade properly from potato with debconf-tiny installed
Colin Watson wrote:
> This upgrade log might be useful to you. It seems that, when confronted
> with a potato system where debconf-tiny is installed, potato's apt will
> refuse to replace it with debconf, and decides to remove several
> important packages instead (groff, man-db, locales, console-tools). I
> reproduced this in a potato chroot with little more than base and
> build-essential installed.
Sigh, apt is such a peice of shite.
> Is there anything that can be done to smooth the upgrade?
Fix apt? :-/ debconf conflicts, provides, and replaces debconf-tiny,
there's not much more I can do there.
Hmm, there are a couple of packages I see that still declare
relationships with debconf-tiny:
Package: ez-ipupdate
Depends: libc6 (>= 2.2.4-4), debconf-tiny
Package: alsa-source-0.5
Depends: debconf (>> 0.2.0) | debconf-tiny (>> 0.2.0)
Package: ssh
Conflicts: ssh-nonfree, ssh-socks, ssh2, debconf (<< 0.2.17), debconf-tiny (<< 0.2.17), sftp, rsh-client (<< 0.16.1-1)
Package: base-config
Conflicts: debconf (<< 0.2.79), debconf-tiny (<< 0.2.79)
> for a similar problem in xbase-clients which consisted of adding a real
> alternative for a dependency on a virtual package, but I haven't managed
> to get anything like that to work with debconf yet.
Debconf doesn't depend on virtual packages that I know of, though who
knows what's in the dependency tree.
> The one thing I have found that makes the upgrade proceed smoothly is to
> add a dummy package debconf-tiny which depends on debconf (=
> ${Source-Version}) and to make debconf's conflict on debconf-tiny
> versioned (<< 0.3.10). With that in the Packages file, apt calculates
> the upgrade perfectly. I'm not sure if this is remotely plausible at
> this stage in the freeze, although it does feel like a safe change.
It's perfectly safe, it would just involve adding a new extra priority
package. If that's what it takes that's what I'll do. I hate the fact
that our tools suck so much that we have to hack around them with dummy
packages.
Does it really need to depend on exactly Source-Version of debconf?
Wouldn't depending on debconf >= 1.0 do? I'd rather put this in its own
package for easier future deletion.
--
see shy jo
----- Forwarded message from Eric Richardson <eric.richardson@milagrosoft.com> -----
Envelope-to: cjwatson@localhost
Date: Mon, 04 Mar 2002 11:26:56 -0700
From: Eric Richardson <eric.richardson@milagrosoft.com>
Organization: MilagroSoft Inc.
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.5) Gecko/20011012
To: Colin Watson <cjwatson@debian.org>
Subject: Re: Potato to Woody Log
Hi Colin,
Let me know if the attached help before I go past this point again on my
upgrade. Sorry it took so long.
Eric
Colin Watson wrote:
>On Fri, Feb 22, 2002 at 07:05:41PM -0700, Eric Richardson wrote:
>
>>Colin Watson wrote:
>>
>>>The only problem is that it seems that upgrading dpkg and apt
>>>involves upgrading a fair bit of other stuff, which then causes
>>>some packages to be removed. This is rather nasty, as there may be
>>>no way to get 'apt-get dist-upgrade' to work properly either way ...
>>>
>>>We may have to make some packaging changes to woody to get this to
>>>work. I have a log of one of the problems happening (xbase-clients
>>>being removed), which the X maintainer is VERY keen to see. I
>>>maintain man-db, so anybody who can get a log of 'apt-get -o
>>>Debug::pkgProblemResolver=1 dist-upgrade' deciding to remove it
>>>will have my eternal gratitude.
>>>
>>Hi Colin,
>>
>>I am willing to do this if you can wait until Monday as I don't think
>>I'll have time until then. This is the proposed task.
>>
>
>Sure, no hurry.
>
>
>>1. Clean install of potato. Add security and update as well - more
>>realistic.
>>2. Add woody sources to sources.list
>>3. apt-get update
>>4. script potato2woody.txt
>>5. apt-get install dpkg
>>6. apt-get install apt
>>7. apt-get -o Debug::pkgProblemResolver=1 dist-upgrade
>>
>>or omit 5 and 6?
>>
>
>I'd like to see it without 5 and 6. It would also be worth seeing,
>separately, if 5 and 6 cause any problems (i.e. if they want to remove
>any packages).
>
>Also save the output of 'dpkg --get-selections' before the upgrade to a
>file.
>
>
>>Also should I use the -f or -u options for more info?
>>
>
>-u would be useful.
>
>
>>I also don't know what packages to add when installing potato? I plan
>>to just have basic C, C++ development plus Gnome/X on this box if this
>>is okay.
>>
>
>Whatever you had when man-db got removed, basically. My log of
>xbase-clients getting removed had the base installation, build-essential
>packages, gmc, the build-dependencies of gmc and exim, and xbase-clients
>itself. I have some ideas of what might be forcing man-db out, but, so
>far, you have a better idea of what was installed when it happened than
>I do.
>
>
>>Please let me know if this sounds good so I do it right the first time.
>>
>
>For the bits I'm interested in, you don't have to actually do the
>upgrade - just capture everything up to apt's "Do you want to continue".
>This should let you try various things more easily.
>
>Thanks,
>
>
Script started on Sun Mar 3 08:06:31 2002
[cjwatson: I trimmed part of the log here - it was just transient
failures connecting to the mirror.]
wiley:~# apt-get update
0% [Working]
0% [Waiting for file] [Waiting for file]
Hit http://non-us.debian.org woody/non-US/main Packages
Hit http://non-us.debian.org woody/non-US/main Release
Hit http://non-us.debian.org woody/non-US/contrib Packages
Hit http://non-us.debian.org woody/non-US/contrib Release
Hit http://non-us.debian.org woody/non-US/non-free Packages
Hit http://non-us.debian.org woody/non-US/non-free Release
46% [Waiting for file]
Hit http://http.us.debian.org woody/main Packages
53% [Working]
Hit http://http.us.debian.org woody/main Release
61% [Working]
Hit http://http.us.debian.org woody/non-free Packages
69% [Working]
Hit http://http.us.debian.org woody/non-free Release
76% [Working]
Hit http://http.us.debian.org woody/contrib Packages
84% [Working]
Hit http://http.us.debian.org woody/contrib Release
92% [Working]
Reading Package Lists... 0%
Reading Package Lists... 100%
Reading Package Lists... Done
Building Dependency Tree... 0%
Building Dependency Tree... 0%
Building Dependency Tree... 50%
Building Dependency Tree... 50%
Building Dependency Tree... 68%
Building Dependency Tree... 98%
Building Dependency Tree... Done
wiley:~# apt-get -u -o Debug::pkgProblemResolver=1 dist-upgrade
Reading Package Lists... 0%
Reading Package Lists... 100%
Reading Package Lists... Done
Building Dependency Tree... 0%
Building Dependency Tree... 0%
Building Dependency Tree... 50%
Building Dependency Tree... 50%
Building Dependency Tree... 68%
Building Dependency Tree... 98%
Building Dependency Tree... Done
Calculating Upgrade... Starting
Starting 2
Package xlibs has broken dep on xpm4g
Considering xpm4g 0 as a solution to xlibs 155
Fixing xlibs via remove of xpm4g
Package debconf has broken dep on debconf-tiny
Considering debconf-tiny 51 as a solution to debconf 75
Package console-common has broken dep on debconf
Considering debconf 75 as a solution to console-common 14
Holding Back console-common rather than change debconf
Package groff has broken dep on debconf
Considering debconf 75 as a solution to groff 5
Holding Back groff rather than change debconf
Package console-data has broken dep on debconf
Considering debconf 75 as a solution to console-data 5
Holding Back console-data rather than change debconf
Package lilo has broken dep on debconf
Considering debconf 75 as a solution to lilo 4
Holding Back lilo rather than change debconf
Package xbase-clients has broken dep on debconf
Considering debconf 75 as a solution to xbase-clients 4
Holding Back xbase-clients rather than change debconf
Package console-tools has broken dep on console-common
Considering console-common 14 as a solution to console-tools 4
Removing console-tools rather than change console-common
Package man-db has broken dep on debconf
Considering debconf 75 as a solution to man-db 4
Holding Back man-db rather than change debconf
Package xserver-common has broken dep on debconf
Considering debconf 75 as a solution to xserver-common 3
Holding Back xserver-common rather than change debconf
Package libpaperg has broken dep on debconf
Considering debconf 75 as a solution to libpaperg 2
Holding Back libpaperg rather than change debconf
Package xfonts-scalable has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xfonts-scalable 2
Holding Back xfonts-scalable rather than change xbase-clients
Package xfonts-75dpi has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xfonts-75dpi 2
Holding Back xfonts-75dpi rather than change xbase-clients
Package locales has broken dep on debconf
Considering debconf 75 as a solution to locales 2
Removing locales rather than change debconf
Package xfonts-base has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xfonts-base 2
Holding Back xfonts-base rather than change xbase-clients
Package xfonts-100dpi has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xfonts-100dpi 2
Holding Back xfonts-100dpi rather than change xbase-clients
Package xserver-svga has broken dep on debconf
Considering debconf 75 as a solution to xserver-svga 2
Holding Back xserver-svga rather than change debconf
Package gnome-control-center has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to gnome-control-center 1
Removing gnome-control-center rather than change xbase-clients
Package xserver-common-v3 has broken dep on xserver-common
Considering xserver-common 3 as a solution to xserver-common-v3 1
Holding Back xserver-common-v3 rather than change xserver-common
Package task-gnome-desktop has broken dep on gnome-control-center
Considering gnome-control-center 1 as a solution to task-gnome-desktop 0
Removing task-gnome-desktop rather than change gnome-control-center
Package xterm has broken dep on debconf
Considering debconf 75 as a solution to xterm 0
Holding Back xterm rather than change debconf
Package gs has broken dep on libpaperg
Considering libpaperg 2 as a solution to gs 0
Holding Back gs rather than change libpaperg
Package base-config has broken dep on debconf
Considering debconf 75 as a solution to base-config 0
Holding Back base-config rather than change debconf
Package xlibs has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xlibs 155
Fixing xlibs via remove of xbase-clients
Package groff-base has broken dep on groff
Considering groff 5 as a solution to groff-base 10
Fixing groff-base via remove of groff
Package xutils has broken dep on xserver-common
Considering xserver-common 3 as a solution to xutils 8
Try to Re-Instate console-data
Try to Re-Instate lilo
Try to Re-Instate man-db
Package man-db has broken dep on groff
Considering groff 5 as a solution to man-db 4
Package man-db has broken dep on jgroff
Try to Re-Instate xserver-common
Try to Re-Instate xfonts-scalable
Package xfonts-scalable has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xfonts-scalable 2
Removing xfonts-scalable rather than change xbase-clients
Try to Re-Instate xfonts-75dpi
Package xfonts-75dpi has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xfonts-75dpi 2
Removing xfonts-75dpi rather than change xbase-clients
Try to Re-Instate xfonts-base
Package xfonts-base has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xfonts-base 2
Removing xfonts-base rather than change xbase-clients
Try to Re-Instate xfonts-100dpi
Package xfonts-100dpi has broken dep on xbase-clients
Considering xbase-clients 4 as a solution to xfonts-100dpi 2
Removing xfonts-100dpi rather than change xbase-clients
Try to Re-Instate xserver-svga
Package libgnomeprint-data has broken dep on gs
Considering gs 0 as a solution to libgnomeprint-data 1
Holding Back libgnomeprint-data rather than change gs
Package task-x-window-system-core has broken dep on xfonts-base
Considering xfonts-base 2 as a solution to task-x-window-system-core 1
Removing task-x-window-system-core rather than change xfonts-base
Try to Re-Instate xterm
Try to Re-Instate base-config
Package gsfonts-x11 has broken dep on xutils
Considering xutils 8 as a solution to gsfonts-x11 0
Holding Back gsfonts-x11 rather than change xutils
Package libgnomeprint15 has broken dep on libgnomeprint-data
Considering libgnomeprint-data 1 as a solution to libgnomeprint15 4
Holding Back libgnomeprint15 rather than change libgnomeprint-data
Package libgnomeprint-bin has broken dep on libgnomeprint15
Considering libgnomeprint15 4 as a solution to libgnomeprint-bin 0
Holding Back libgnomeprint-bin rather than change libgnomeprint15
Package gnome-panel has broken dep on libgnomeprint15
Considering libgnomeprint15 4 as a solution to gnome-panel 5
Holding Back gnome-panel rather than change libgnomeprint15
Package gnome-panel-data has broken dep on gnome-panel
Considering gnome-panel 5 as a solution to gnome-panel-data 4
Holding Back gnome-panel-data rather than change gnome-panel
Package gnome-session has broken dep on gnome-panel
Considering gnome-panel 5 as a solution to gnome-session 1
Holding Back gnome-session rather than change gnome-panel
Try to Re-Instate gnome-panel
Try to Re-Instate gnome-panel-data
Try to Re-Instate gnome-session
Done
Done
The following packages will be REMOVED:
console-tools gnome-control-center groff locales man-db task-gnome-desktop
task-x-window-system-core xbase-clients xfonts-100dpi xfonts-75dpi
xfonts-base xfonts-scalable xpm4g
The following NEW packages will be installed:
cpp-2.95 defoma dialog file g++-2.95 gcc-2.95 gconf gnome-mime-data
groff-base gs-common gsfonts icewm-common ifupdown ipchains klogd libbz2-1.0
libcap1 libcapplet1 libcdparanoia0 libdb3 libdb3-util libdps1 libfreetype6
libgconf11 libgdk-pixbuf-gnome2 libgdk-pixbuf2 libgimpprint1 libglade-gnome0
libglade0 libgnome-vfs-common libgnome-vfs0 libgtk1.2-common libldap2
liboaf0 libpcap0 libpcre3 libpng3 libsasl7 libscrollkeeper0
libstdc++2.10-glibc2.2 libungif4g libxaw6 libxaw7 libxml1 net-tools
netkit-inetd netkit-ping oaf perl perl-modules scrollkeeper xlibs
The following packages have been kept back
base-config console-data gnome-panel gnome-panel-data gnome-session lilo
xserver-common xserver-svga xterm
The following packages will be upgraded
adduser apt at base-files base-passwd bash bc binutils bsdmainutils bsdutils
console-tools-libs cpio cpp cron dc debianutils diff doc-base dpkg e2fsprogs
ed eject elvis-tiny esound esound-common exim fbset fdutils fileutils
findutils ftp g++ gcc gdb gdk-imlib1 gettext-base gmc gnome-bin gnome-core
gnome-help gnome-help-data gnome-libs-data gnome-terminal grep gzip hostname
icewm icewm-gnome imlib-base imlib1 info isapnptools ldso libart2
libaudiofile0 libc6 libc6-dev libcapplet0 libdb2 libdb2-util libesd0
libgdbmg1 libglib1.2 libgnome32 libgnomesupport0 libgnomeui32 libgnorba27
libgnorbagtk0 libgtk1.2 libgtkxmhtml1 libgtop1 libjpeg62 liblockfile1
libncurses5 libnewt0 libopenldap-runtime libopenldap1 liborbit0
libpam-modules libpam-runtime libpam0g libpanel-applet0 libpng2 libpopt0
libreadline4 libstdc++2.10 libstdc++2.10-dev libtiff3g libungif3g libwrap0
libzvt2 login logrotate mailx make makedev manpages mawk mbr mc-common menu
modconf modutils mount ncurses-base ncurses-bin netbase nvi passwd pciutils
perl-5.005 perl-5.005-base perl-base ppp pppconfig procps psmisc pump sed
setserial shellutils slang1 sysklogd syslinux sysvinit tar tasksel tcpd
telnet textutils twm update util-linux whiptail whois xfree86-common xlib6g
zlib1g
138 packages upgraded, 52 newly installed, 13 to remove and 9 not upgraded.
Need to get 47.2MB of archives. After unpacking 17.3MB will be used.
Do you want to continue? [Y/n] n
Abort.
wiley:~# exit
Script done on Sun Mar 3 08:13:06 2002
adduser install
ae install
apt install
at install
base-config install
base-files install
base-passwd install
bash install
bc install
binutils install
bsdmainutils install
bsdutils install
console-data install
console-tools install
console-tools-libs install
cpio install
cpp install
cron install
dc install
debconf-tiny install
debianutils install
diff install
doc-base install
dpkg install
e2fsprogs install
ed install
eject install
elvis-tiny install
esound install
esound-common install
exim install
fbset install
fdflush install
fdutils install
fileutils install
findutils install
ftp install
g++ install
gcc install
gdb install
gdk-imlib1 install
gettext-base install
gmc install
gnome-bin install
gnome-control-center install
gnome-core install
gnome-faq install
gnome-help install
gnome-help-data install
gnome-libs-data install
gnome-panel install
gnome-panel-data install
gnome-session install
gnome-terminal install
gnome-users-guide-en install
grep install
groff install
gzip install
hostname install
icewm install
icewm-gnome install
imlib-base install
imlib1 install
info install
isapnptools install
ldso install
libart2 install
libaudiofile0 install
libc6 install
libc6-dev install
libcapplet0 install
libdb2 install
libdb2-util install
libesd0 install
libgdbmg1 install
libglib1.2 install
libgnome32 install
libgnomesupport0 install
libgnomeui32 install
libgnorba27 install
libgnorbagtk0 install
libgtk1.2 install
libgtkxmhtml1 install
libgtop1 install
libident install
libjpeg62 install
liblockfile1 install
libncurses4 install
libncurses5 install
libnewt0 install
libopenldap-runtime install
libopenldap1 install
liborbit0 install
libpam-modules install
libpam-runtime install
libpam0g install
libpanel-applet0 install
libpcre2 install
libpng2 install
libpopt0 install
libreadline4 install
libstdc++2.10 install
libstdc++2.10-dev install
libtiff3g install
libungif3g install
libwrap0 install
libzvt2 install
lilo install
locales install
login install
logrotate install
mailx install
make install
makedev install
man-db install
manpages install
mawk install
mbr install
mc-common install
menu install
modconf install
modutils install
mount install
ncurses-base install
ncurses-bin install
netbase install
nvi install
passwd install
pciutils install
perl-5.005 install
perl-5.005-base install
perl-base install
ppp install
pppconfig install
procps install
psmisc install
pump install
sed install
setserial install
shellutils install
slang1 install
sysklogd install
syslinux install
sysvinit install
tar install
task-c++-dev install
task-c-dev install
task-debug install
task-devel-common install
task-gnome-desktop install
task-x-window-system-core install
tasksel install
tcpd install
telnet install
textutils install
twm install
update install
util-linux install
whiptail install
whois install
xbase-clients install
xfonts-100dpi install
xfonts-75dpi install
xfonts-base install
xfonts-scalable install
xfree86-common install
xlib6g install
xpm4g install
xserver-common install
xserver-svga install
xterm install
xviddetect install
zlib1g install
----- End forwarded message -----
Reply to: