[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#533265: apt or aptitude update at the beginning of a Lenny upgrade



Hello,

(Adding debian-devel for additional comments, and previous contributors to
the topic)

As mentioned in #533265, the advice to update apt and aptitude at the
beginning of an upgrade may fail.

With a standard Etch install (i.e. only "standard" is selected in tasksel),
apt-utils and aptitude are removed after running:
	apt-get install apt
(see attached log)

This may cause issues later (at least the following step
"aptitude install aptitude" will not work as is).

This has the benefit of a much smaller upgrade befor the "Minimal system
upgrade" step.

Updating apt was added after #489132

I propose to only recommend updating aptitude (this will update apt
anyway), and add a note for the users who prefer to use apt-get rather
than aptitude.

I think it will be clearer to only recommend only one upgrade path
(aptitude) and give some hint when some steps may fail (e.g. recommend to
try apt-get if aptitude fails to deal with some dependency chains).
Also the rest of the release notes mostly follow the aptitude upgrade
path.


The attached patch is my proposal for the release notes.
(I removed the note regarding libselinux1, because it is not related to the
topic, and also libselinux1 was required in Etch, so this was probably a
remaining of the Etch release notes)

Do you agree with this patch, or are there other reasons which makes
"apt-get install apt" the preferred upgrade path?

Best Regards,
-- 
Nekral
etch-rn:~# apt-get install apt
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... Done
The following extra packages will be installed:
  cpp cpp-4.3 dbus defoma esound-common fontconfig fontconfig-config
  gcc-4.3-base gconf2 gconf2-common gksu gnome-apt gnome-keyring
  gnome-mime-data libart-2.0-2 libatk1.0-0 libaudiofile0 libavahi-client3
  libavahi-common-data libavahi-common3 libavahi-glib1 libbonobo2-0
  libbonobo2-common libbonoboui2-0 libbonoboui2-common libc6 libc6-i686
  libcairo2 libcups2 libdatrie0 libdbus-1-3 libdbus-glib-1-2 libdirectfb-1.0-0
  libesd0 libexpat1 libfam0 libfontconfig1 libfreetype6 libgail-common
  libgail18 libgconf2-4 libgcrypt11 libgksu2-0 libglade2-0 libglib2.0-0
  libgmp3c2 libgnome-keyring0 libgnome2-0 libgnome2-common libgnomecanvas2-0
  libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0
  libgnomevfs2-common libgnutls26 libgtk2.0-0 libgtk2.0-common libgtop2-7
  libgtop2-common libhal-storage1 libhal1 libice6 libidl0 libjpeg62
  libkeyutils1 libkrb53 libldap-2.4-2 libmpfr1ldbl libncurses5 liborbit2
  libpam0g libpango1.0-0 libpango1.0-common libpcre3 libpixman-1-0 libpng12-0
  libselinux1 libsm6 libstartup-notification0 libstdc++6 libsysfs2
  libthai-data libthai0 libtiff4 libts-0.0-0 libvte-common libvte9 libx11-6
  libx11-data libxau6 libxcb-render-util0 libxcb-render0 libxcb-xlib0 libxcb1
  libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxft2
  libxi6 libxinerama1 libxml2 libxmuu1 libxrandr2 libxrender1 locales lsb-base
  psmisc shared-mime-info sudo ttf-dejavu ttf-dejavu-core ttf-dejavu-extra
  tzdata x11-common xauth zlib1g
Suggested packages:
  dpkg-dev apt-doc bzip2 lzma python-apt cpp-doc gcc-4.3-locales defoma-doc
  dfontmgr psfontmgr x-ttcidfont-conf libbonobo2-bin glibc-doc cups-common
  esound libfreetype6-dev rng-tools desktop-base gnome-icon-theme
  libgnomevfs2-bin gnutls-bin librsvg2-common krb5-doc krb5-user libpam-doc
  ttf-kochi-gothic ttf-kochi-mincho ttf-thryomanes ttf-baekmuk
  ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
  ttf-arphic-bkai00mp
Recommended packages:
  dbus-x11 libft-perl gdeb libpam-gnome-keyring libatk1.0-data esound-clients
  fam libglib2.0-data libgnomevfs2-extra gnome-mount hicolor-icon-theme
  libgtk2.0-bin libgpm2 xml-core
The following packages will be REMOVED:
  apt-utils aptitude tasksel tasksel-data
The following NEW packages will be installed:
  cpp cpp-4.3 dbus defoma esound-common fontconfig fontconfig-config
  gcc-4.3-base gconf2 gconf2-common gksu gnome-apt gnome-keyring
  gnome-mime-data libart-2.0-2 libatk1.0-0 libaudiofile0 libavahi-client3
  libavahi-common-data libavahi-common3 libavahi-glib1 libbonobo2-0
  libbonobo2-common libbonoboui2-0 libbonoboui2-common libcairo2 libcups2
  libdatrie0 libdbus-1-3 libdbus-glib-1-2 libdirectfb-1.0-0 libesd0 libexpat1
  libfam0 libfontconfig1 libfreetype6 libgail-common libgail18 libgconf2-4
  libgksu2-0 libglade2-0 libglib2.0-0 libgmp3c2 libgnome-keyring0 libgnome2-0
  libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0
  libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgnutls26 libgtk2.0-0
  libgtk2.0-common libgtop2-7 libgtop2-common libhal-storage1 libhal1 libice6
  libidl0 libjpeg62 libkeyutils1 libldap-2.4-2 libmpfr1ldbl liborbit2
  libpango1.0-0 libpango1.0-common libpixman-1-0 libpng12-0 libsm6
  libstartup-notification0 libsysfs2 libthai-data libthai0 libtiff4
  libts-0.0-0 libvte-common libvte9 libx11-6 libx11-data libxau6
  libxcb-render-util0 libxcb-render0 libxcb-xlib0 libxcb1 libxcomposite1
  libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxft2 libxi6
  libxinerama1 libxml2 libxmuu1 libxrandr2 libxrender1 psmisc shared-mime-info
  sudo ttf-dejavu ttf-dejavu-core ttf-dejavu-extra x11-common xauth
The following packages will be upgraded:
  apt libc6 libc6-i686 libgcrypt11 libkrb53 libncurses5 libpam0g libpcre3
  libselinux1 libstdc++6 locales lsb-base tzdata zlib1g
14 upgraded, 107 newly installed, 4 to remove and 190 not upgraded.
Need to get 51.9MB of archives.
After unpacking 104MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
etch-rn:~# aptitude install aptitude
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... Done
Reading extended state information... 0%
Reading extended state information... 0%
Reading extended state information      
Initializing package states... 0% 
Initializing package states... Done
Reading task descriptions... 0%    
Reading task descriptions... Done
Building tag database... 0%      
Building tag database... 88%
Building tag database... Done
The following packages are BROKEN:
  apt-utils libc6 libc6-i686 locales 
The following NEW packages will be automatically installed:
  gcc-4.3-base libcwidget3 libept0 libxapian15 
The following packages have been kept back:
  acpid adduser aspell at base-files base-passwd bash bc bind9-host 
  bsdmainutils bsdutils busybox console-common console-data console-tools 
  coreutils cpio cron dc debconf debconf-i18n debianutils dhcp3-client 
  dhcp3-common dictionaries-common diff dmidecode dnsutils doc-debian 
  doc-linux-text dpkg dselect e2fslibs e2fsprogs ed eject exim4 exim4-base 
  exim4-config exim4-daemon-light file findutils finger ftp gcc-4.1-base 
  gettext-base gnupg gpgv grep groff-base grub gzip hostname iamerican 
  ibritish ifrench-gut ifupdown info initramfs-tools initscripts 
  installation-report iptables iputils-ping ispell klibc-utils klogd 
  language-env laptop-detect less libacl1 libaspell15 libattr1 libblkid1 
  libbz2-1.0 libcomerr2 libconsole libdb4.2 libedit2 libevent1 libgc1c2 
  libgcc1 libgcrypt11 libgpg-error0 libidn11 libklibc libkrb53 
  liblocale-gettext-perl liblockfile1 libmagic1 libncurses5 libnewt0.52 
  libnfsidmap2 libpam-modules libpam-runtime libpam0g libpcre3 libpopt0 
  libreadline5 librpcsecgss3 libsasl2-2 libselinux1 libsemanage1 libsepol1 
  libsigc++-2.0-0c2a libslang2 libss2 libssl0.9.8 libtasn1-3 libtasn1-3-bin 
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl 
  libusb-0.1-4 libuuid1 libvolume-id0 libwrap0 linux-image-2.6-686 login 
  logrotate lsb-base lsof m4 mailx makedev man-db manpages manpages-fr 
  manpages-fr-dev manpages-fr-extra mawk mime-support mktemp 
  module-init-tools mount mpack mtools mtr-tiny mutt myspell-fr-gut nano 
  ncurses-base ncurses-bin ncurses-term net-tools netbase netcat nfs-common 
  openbsd-inetd openssh-client passwd patch pciutils perl perl-base 
  perl-modules pidentd policycoreutils portmap procps python python-central 
  python-minimal python-newt python-selinux python-semanage python-support 
  python2.4 python2.4-minimal readline-common reportbug sed sharutils 
  strace sysklogd sysv-rc sysvinit sysvinit-utils tar tasksel tasksel-data 
  tcpd telnet texinfo time traceroute tzdata ucf udev update-inetd usbutils 
  util-linux vim-common vim-tiny w3m wamerican wfrench wget whiptail whois 
  zlib1g 
The following NEW packages will be installed:
  gcc-4.3-base libcwidget3 libept0 libxapian15 
The following packages will be upgraded:
  apt aptitude libncursesw5 libstdc++6 
The following packages are RECOMMENDED but will NOT be installed:
  aptitude-doc-cs aptitude-doc-en aptitude-doc-fi aptitude-doc-fr 
  aptitude-doc-ja libgpm2 libparse-debianchangelog-perl 
5 packages upgraded, 4 newly installed, 0 to remove and 203 not upgraded.
Need to get 12.0MB of archives. After unpacking 8782kB will be used.
The following packages have unmet dependencies:
  apt-utils: Depends: libapt-pkg-libc6.3-6-3.11 which is a virtual package.
  libc6-i686: PreDepends: libc6 (= 2.3.6.ds1-13etch9+b1) but 2.7-18 is to be installed.
  locales: Depends: glibc-2.3.6.ds1-1 which is a virtual package.
  libc6: Conflicts: tzdata-etch which is a virtual package.
Resolving dependencies...
The following actions will resolve these dependencies:

Install the following packages:
libdb4.6 [4.6.21-11 (stable)]
libgpm2 [1.20.4-3.1 (stable)]

Upgrade the following packages:
apt-utils [0.6.46.4-0.1+etch1 (now) -> 0.7.20.2+lenny1 (stable)]
libc6-i686 [2.3.6.ds1-13etch9+b1 (now) -> 2.7-18 (stable)]
locales [2.3.6.ds1-13etch9 (now) -> 2.7-18 (stable)]
tzdata [2008e-1etch3 (now) -> 2009g-0lenny1 (stable)]

Score is -283

Accept this solution? [Y/n/q/?] 
The following NEW packages will be automatically installed:
  gcc-4.3-base libcwidget3 libdb4.6 libept0 libgpm2 libxapian15 
The following packages have been kept back:
  acpid adduser aspell at base-files base-passwd bash bc bind9-host 
  bsdmainutils bsdutils busybox console-common console-data console-tools 
  coreutils cpio cron dc debconf debconf-i18n debianutils dhcp3-client 
  dhcp3-common dictionaries-common diff dmidecode dnsutils doc-debian 
  doc-linux-text dpkg dselect e2fslibs e2fsprogs ed eject exim4 exim4-base 
  exim4-config exim4-daemon-light file findutils finger ftp gcc-4.1-base 
  gettext-base gnupg gpgv grep groff-base grub gzip hostname iamerican 
  ibritish ifrench-gut ifupdown info initramfs-tools initscripts 
  installation-report iptables iputils-ping ispell klibc-utils klogd 
  language-env laptop-detect less libacl1 libaspell15 libattr1 libblkid1 
  libbz2-1.0 libcomerr2 libconsole libdb4.2 libedit2 libevent1 libgc1c2 
  libgcc1 libgcrypt11 libgpg-error0 libidn11 libklibc libkrb53 
  liblocale-gettext-perl liblockfile1 libmagic1 libncurses5 libnewt0.52 
  libnfsidmap2 libpam-modules libpam-runtime libpam0g libpcre3 libpopt0 
  libreadline5 librpcsecgss3 libsasl2-2 libselinux1 libsemanage1 libsepol1 
  libsigc++-2.0-0c2a libslang2 libss2 libssl0.9.8 libtasn1-3 libtasn1-3-bin 
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl 
  libusb-0.1-4 libuuid1 libvolume-id0 libwrap0 linux-image-2.6-686 login 
  logrotate lsb-base lsof m4 mailx makedev man-db manpages manpages-fr 
  manpages-fr-dev manpages-fr-extra mawk mime-support mktemp 
  module-init-tools mount mpack mtools mtr-tiny mutt myspell-fr-gut nano 
  ncurses-base ncurses-bin ncurses-term net-tools netbase netcat nfs-common 
  openbsd-inetd openssh-client passwd patch pciutils perl perl-base 
  perl-modules pidentd policycoreutils portmap procps python python-central 
  python-minimal python-newt python-selinux python-semanage python-support 
  python2.4 python2.4-minimal readline-common reportbug sed sharutils 
  strace sysklogd sysv-rc sysvinit sysvinit-utils tar tasksel tasksel-data 
  tcpd telnet texinfo time traceroute ucf udev update-inetd usbutils 
  util-linux vim-common vim-tiny w3m wamerican wfrench wget whiptail whois 
  zlib1g 
The following NEW packages will be installed:
  gcc-4.3-base libcwidget3 libdb4.6 libept0 libgpm2 libxapian15 
The following packages will be upgraded:
  apt apt-utils aptitude libc6 libc6-i686 libncursesw5 libstdc++6 locales 
  tzdata 
The following packages are RECOMMENDED but will NOT be installed:
  aptitude-doc-cs aptitude-doc-en aptitude-doc-fi aptitude-doc-fr 
  aptitude-doc-ja libparse-debianchangelog-perl 
9 packages upgraded, 6 newly installed, 0 to remove and 199 not upgraded.
Need to get 19.4MB of archives. After unpacking 12.8MB will be used.
Do you want to continue? [Y/n/?] n
Abort.
Index: en/upgrading.dbk
===================================================================
--- en/upgrading.dbk	(révision 6886)
+++ en/upgrading.dbk	(copie de travail)
@@ -849,22 +851,36 @@
     solutions to satisfy the dependencies. These two features
     are heavily involved during the upgrade to &releasename;, so it
     is necessary to upgrade these two packages before upgrading
-    anything else. For <systemitem role="package">apt</systemitem>, run:
-    <screen># apt-get install apt</screen>
-    and for <systemitem role="package">aptitude</systemitem> (if you have
-    it installed) run:
+    anything else.
+  </para>
+  <para>
+    The following command will upgrade both <systemitem
+    role="package">aptitude</systemitem> and <systemitem
+    role="package">apt</systemitem>:
     <screen># aptitude install aptitude</screen>
   </para>
   <para>
-    This step will automatically upgrade <systemitem
+    This step will also automatically upgrade <systemitem
     role="package">libc6</systemitem> and <systemitem
-    role="package">locales</systemitem> and will pull in SELinux support libraries
-    (<systemitem role="package">libselinux1</systemitem>).  At this point, some
+    role="package">locales</systemitem>.  At this point, some
     running services will be restarted, including <command>xdm</command>,
     <command>gdm</command> and <command>kdm</command>.  As a consequence, local X11
     sessions might be disconnected.
-    <indexterm><primary>SELinux</primary></indexterm>
   </para>
+  <note>
+    <title>Upgrading with <systemitem role="package">apt</systemitem></title>
+    <para>
+      If you do not have <systemitem role="package">aptitude</systemitem>
+      installed, or if you want to perform the upgrade with <systemitem
+      role="package">apt</systemitem> (or if the upgrade with <systemitem
+      role="package">aptitude</systemitem> failed and you want to try an
+      upgrade with the <systemitem role="package">apt</systemitem>
+      dependency chain resolution algorithm), you should run:
+      <screen># apt-get install apt</screen>
+      Note that you will have to adapt other <command>aptitude</command>
+      commands to use <command>apt-get</command>.
+    </para>
+  </note>
 </section>
 <section id="aptconvert">
   <title>Using aptitude's list of automatically-installed packages with apt</title>

Reply to: