dash pulled on stable when APT::Default-Release is used
Hi,
Since a few days, on a stable machine (with stable, testing and
unstable sources for apt but APT::Default-Release set to "stable"),
"apt-get dist-upgrade" wants to install dash.
Can someone explain me why ? Is it due to the fact that dash is
essential in unstable ?
kooot:/home/vdanjean# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
dash
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/102kB of archives.
After this operation, 242kB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
kooot:/home/vdanjean# aptitude why dash
i linux-image-2.6.30-1-amd64 Depends initramfs-tools (>= 0.55) | yaird (>= 0.0.13) | linux-initramfs-tool
p yaird Depends dash
kooot:/home/vdanjean# apt-cache policy dash
dash:
Installed: (none)
Candidate: 0.5.4-12
Version table:
0.5.5.1-2.3 0
500 ftp://ftp2.fr.debian.org unstable/main Packages
0.5.5.1-2 0
500 ftp://ftp2.fr.debian.org testing/main Packages
0.5.4-12 0
990 http://ftp.fr.debian.org lenny/main Packages
kooot:/home/vdanjean# cat /etc/apt/apt.conf.d/50Release
APT::Default-Release "stable";
Note that, if I upgrade dash to unstable, /bin/sh links to /bin/dash
as expected. As a side effect, dash becomes unremovable (unless I
downgrade the package)
kooot:/home/vdanjean# apt-get install dash/unstable
[...]
The following packages have unmet dependencies:
dash: Depends: dpkg (>= 1.15.0) but 1.14.25 is to be installed
E: Broken packages
kooot:/home/vdanjean# apt-get install dash/unstable dpkg/unstable
[...]
The following packages will be upgraded:
dash dpkg
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[...]
Preparing to replace dash 0.5.4-12 (using .../dash_0.5.5.1-2.3_amd64.deb) ...
Adding `diversion of /bin/sh to /bin/sh.distrib by dash'
Adding `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Unpacking replacement dash ...
Processing triggers for man-db ...
Setting up dash (0.5.5.1-2.3) ...
Removing `diversion of /bin/sh to /bin/sh.distrib by dash'
Adding `diversion of /bin/sh to /bin/sh.distrib by bash'
Removing `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Adding `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'
kooot:/home/vdanjean# dpkg --purge dash
dpkg: error processing dash (--purge):
This is an essential package - it should not be removed.
Errors were encountered while processing:
dash
kooot:/home/vdanjean# apt-get install dash/stable
[...]
The following packages will be DOWNGRADED:
dash
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
[...]
kooot:/home/vdanjean# dpkg --purge dash
(Reading database ... 31655 files and directories currently installed.)
Removing dash ...
Purging configuration files for dash ...
Processing triggers for man-db ...
kooot:/home/vdanjean#
Regards,
Vincent
--
Vincent Danjean GPG key ID 0x9D025E87 vdanjean@debian.org
GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87
Unofficial pacakges: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo: deb http://perso.debian.org/~vdanjean/debian unstable main
Reply to: