[Hostname-devel] Bug#551050: aptitude tries to remove nis on sid/lenny hybrid as a result of the #546753 fix
Trent W. Buck
trentbuck at gmail.com
Thu Oct 15 09:20:30 UTC 2009
Package: hostname
Version: 3.00
Severity: important
This is such an edge case that I normally wouldn't report it. Because
it involves accidental removal of auth infrastructure, I raise it and
will let you decide whether it's worth pursuing.
On a hybrid testing/unstable system:
$ aptitude full-upgrade -syV
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
libdbus-glib-1-2{u} [0.82-2] nis{a} [3.17-28]
The following packages will be upgraded:
hostname [2.98 -> 3.00]
1 packages upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B/14.2kB of archives. After unpacking 1,139kB will be freed.
Would download/install/remove packages.
Removing nis to appease hostname sounds scary! (I'm using NIS for
user and group resolution, not for hostname resolution.)
$ apt-config shell x APT::Default-Release
x='testing'
$ apt-cache policy hostname nis
hostname:
Installed: 2.98
Candidate: 3.00
Version table:
3.00 0
990 http://mirror.internode.on.net squeeze/main Packages
990 http://ftp.debian.org squeeze/main Packages
500 http://mirror.internode.on.net sid/main Packages
500 http://ftp.debian.org sid/main Packages
*** 2.98 0
100 /var/lib/dpkg/status
2.95 0
500 http://mirror.internode.on.net lenny/main Packages
nis:
Installed: 3.17-28
Candidate: 3.17-28
Version table:
3.17-30 0
500 http://mirror.internode.on.net sid/main Packages
500 http://ftp.debian.org sid/main Packages
*** 3.17-28 0
990 http://mirror.internode.on.net squeeze/main Packages
990 http://ftp.debian.org squeeze/main Packages
100 /var/lib/dpkg/status
3.17-17 0
500 http://mirror.internode.on.net lenny/main Packages
So it looks like this server has had hostname (but not nis)
cherry-picked from sid. Cherry-picking nis from sid made the problem
go away:
$ sudo aptitude install -y nis/unstable
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be upgraded:
nis
1 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 222kB of archives. After unpacking 8,192B will be freed.
Writing extended state information... Done
Get:1 http://mirror.internode.on.net sid/main nis 3.17-30 [222kB]
Fetched 222kB in 1s (126kB/s)
Preconfiguring packages ...
(Reading database ... 59584 files and directories currently installed.)
Preparing to replace nis 3.17-28 (using .../archives/nis_3.17-30_amd64.deb) ...
Stopping NIS services: ypbind ypserv ypppasswdd ypxfrd.
Unpacking replacement nis ...
Processing triggers for man-db ...
Setting up nis (3.17-30) ...
Stopping NIS services: ypbind ypserv ypppasswdd ypxfrd.
Starting NIS services: ypbind.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Current status: 1 update [-1].
$ aptitude full-upgrade -syV
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be upgraded:
hostname [2.98 -> 3.00]
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/14.2kB of archives. After unpacking 0B will be used.
Would download/install/remove packages.
$
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-23-openvz (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the Hostname-devel
mailing list