[Aptitude-devel] Bug#699191: Bug#699191: aptitude don't depend on apt, but don't work correctly without apt

Robert Paciorek robert at opcode.eu.org
Mon Jan 28 22:02:02 UTC 2013


On 2013-01-28 22:09:27 Axel Beckert wrote:
> Control: tag -1 + confirmed
> Hi Robert,
> Robert Paciorek wrote:
> > Package: aptitude
> > Version:
> > Severity: important
> > 
> > Hello,
> > 
> > aptitude don't depend on apt package but without apt can't download
> > packages - display error:
> > 
> > The method driver /usr/lib/apt/methods/http could not be found.
> This has been discussed just recently on the Aptitude mailing list:
> http://lists.alioth.debian.org/pipermail/aptitude-devel/2012-December/003251.html
> It's currently not a real-life issue, because apt considers itself
> Essential (even if it isn't) and hence both, apt-get and aptitude will
> not remove apt unless they're convinced that you know what you're
> doing.

But when i have apt ( with "auto" flag and apt config
	APT::AutoRemove::RecommendsImportant "false";
	APT::AutoRemove::SuggestsImportant "false";
	APT::Install-Recommends "false";
	APT::Install-Suggests "false";
	aptitude::UI::Incremental-Search "false";

aptitude remove apt without special confirmation, writing to log
"not used":

Aptitude 0.6.6: log report
Mon, Jan 28 2013 19:49:45 +0000

IMPORTANT: this log only lists intended actions; actions which fail due
to dpkg problems may not be completed.

Will install 57 packages, and remove 9 packages.
7131 kB of disk space will be freed
[REMOVE, NOT USED] apt:amd64
[REMOVE, NOT USED] debian-archive-keyring:amd64
[REMOVE, NOT USED] gnupg:amd64
[REMOVE, NOT USED] gpgv:amd64
[REMOVE, NOT USED] libboost-iostreams1.48.0:amd64
[REMOVE, NOT USED] libept1:amd64
[REMOVE, NOT USED] libreadline6:amd64
[REMOVE, NOT USED] libusb-0.1-4:amd64
[REMOVE, NOT USED] readline-common:amd64
[INSTALL, DEPENDENCIES] aptitude-common:amd64
[INSTALL, DEPENDENCIES] libapt-pkg4.12:amd64
[INSTALL, DEPENDENCIES] libboost-iostreams1.49.0:amd64
[INSTALL, DEPENDENCIES] libept1.4.12:amd64
[UPGRADE] aptitude:amd64 0.6.6-1 ->
[UPGRADE] base-files:amd64 6.7 -> 7.1

When i try manualy remove apt i see message:
	apt is an essential package!
	Are you sure you want to remove it?
	Type 'Yes, I am aware this is a very bad idea' if you are.

The same when i run from command line "aptitude full-upgrade" or
"aptitude install aptitude":

(testing-minimal)root at dragon:~# aptitude --simulate full-upgrade
The following NEW packages will be installed:
  aptitude-common{a} libapt-pkg4.12{a} libboost-iostreams1.49.0{a} 
The following packages will be REMOVED:
  apt{u} debian-archive-keyring{u} gnupg{u} gpgv{u} 
  libboost-iostreams1.48.0{u} libept1{u} libreadline6{u} 
  libusb-0.1-4{u} readline-common{u} 
The following packages will be upgraded:
  aptitude base-files base-passwd bash bsdutils coreutils debconf 
  debianutils diffutils dpkg gcc-4.7-base grep gzip libacl1 
  libattr1 libblkid1 libbz2-1.0 libc-bin libc6 libcomerr2 
  libcwidget3 libdb5.1 libgcc1 liblzma5 libncurses5 libncursesw5 
  libpam-modules libpam-modules-bin libpam-runtime libpam0g 
  libselinux1 libsemanage-common libsemanage1 libsigc++-2.0-0c2a 
  libsqlite3-0 libss2 libstdc++6 libtinfo5 libustr-1.0-1 libuuid1 
  libxapian22 login lsb-base multiarch-support ncurses-base 
  ncurses-bin passwd perl-base sed sensible-utils tar tzdata 
  xz-utils zlib1g 
The following packages are RECOMMENDED but will NOT be installed:
  apt-utils apt-xapian-index aptitude-doc-cs aptitude-doc-en 
  aptitude-doc-es aptitude-doc-fi aptitude-doc-fr aptitude-doc-it 
  aptitude-doc-ja bash-completion bsdmainutils debconf-i18n libgpm2 
  libparse-debianchangelog-perl uuid-runtime 
54 packages upgraded, 4 newly installed, 9 to remove and 0 not upgraded.
Need to get 32.9 MB of archives. After unpacking 7097 kB will be freed.
Do you want to continue? [Y/n/?] 
The following ESSENTIAL packages will be REMOVED!

WARNING: Performing this action will probably cause your system to
break! Do NOT continue unless you know EXACTLY what you are doing!
To continue, type the phrase "I am aware that this is a very bad idea":

But NOT when update aptitude (or update all upgradable packages) from
ncurses interface.

Robert Paciorek

More information about the Aptitude-devel mailing list