Package: dpkg
Version: 1.14.26
Severity: critical

When aptitude-gtk appeared in experimental I installed it just to
test, but kept aptitude itself from sid or testing.  When the new
version added a versionned dep on aptitude, I decided to remove it
rather than upgrading aptitude itself to experimental.  Then I was
left with /usr/bin/aptitude non existent.

Looking at the new postinst I noticed the experimental packages now
use alternatives, so I sorta replayed what had happenned:

* at install time:

# update-alternatives --install /usr/bin/aptitude aptitude /bin/ls 60
# ls -l /usr/bin/aptitude
-rwxr-xr-x 1 root root 2113556 Nov 20 05:10 /usr/bin/aptitude
# ls -l /etc/alternatives/aptitude
lrwxrwxrwx 1 root root 7 May  1 22:13 /etc/alternatives/aptitude -> /bin/ls


It is dubious that --install would even not issue a warning that
/usr/bin/aptitude was already there without being a symlink at first.
I even think it should be made an error.


* then at uninstall time:

# update-alternatives --remove aptitude /bin/ls
# ls -l /etc/alternatives/aptitude
ls: cannot access /etc/alternatives/aptitude: No such file or directory
# ls -l /usr/bin/aptitude
ls: cannot access /usr/bin/aptitude: No such file or directory


Unconditionnal removal of an unrelated file without any check was
surely not wanted.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (101, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.8-smp (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=french (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils                     7.2-1      The GNU core utilities
ii  libc6                         2.9-4      GNU C Library: Shared libraries
ii  lzma                          4.43-14    Compression method of 7z format in

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt                           0.7.20.2   Advanced front-end for dpkg

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to