Comment 5 for bug 28123

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <E1DmK5v-0001zP-Or@jidanni1>
Date: Sun, 26 Jun 2005 07:29:51 +0800
From: Dan Jacobson <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: base-files: md5sum: command not found

X-debbugs-cc: <email address hidden>, <email address hidden>
Package: base-files
Version: 3.1.5
Severity: minor

Odd, worrisome messages seen,
# dpkg -i *
Setting up base-files (3.1.5) ...
Installing new version of config file /etc/debian_version ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
/var/lib/dpkg/info/base-files.postinst: line 120: md5sum: command not found
/var/lib/dpkg/info/base-files.postinst: line 121: md5sum: command not found

But then not on second time:
# dpkg -i /var/cache/apt/archives/base-files_3.1.5_i386.deb
(Reading database ... 167757 files and directories currently installed.)
Preparing to replace base-files 3.1.5 (using .../base-files_3.1.5_i386.deb) ...
Unpacking replacement base-files ...
Setting up base-files (3.1.5) ...

$ dlocate `which md5sum`
dpkg: /usr/bin/md5sum
coreutils: /usr/bin/md5sum.textutils

$ dpkg -S `which md5sum`
local diversion from: /usr/bin/md5sum.textutils
local diversion to: /usr/bin/md5sum

# apt-cache showpkg dpkg|grep base-files

Well, maybe you should depend on it, as lots of others do.

I'm not sure if it would solve the occasional problem that I
experienced though. Maybe if I was using apt it would.

Anyways, I seemed to have uncovered a rare case where things will go
wrong, when one does dpkg -i * on several files at once.

If I'm correct, then gnus should depend on dpkg too, as it also uses md5sum

Setting up gnus (5.10.6-0.CVS.20050610-1) ...
install/gnus: Ignoring emacs.
install/gnus: Byte-compiling for emacs21...found emacs21
../usr/bin/ucf: line 554: md5sum: command not found
/usr/bin/ucf: line 566: md5sum: command not found
/usr/bin/ucf: line 242: md5sum: command not found
done.
[On 2nd try, worked]

Or maybe dpkg should notice it is also upgrading itself, and thus
upgrade and configure itself all in one step before configuring other
files from the dpkg -i * command line.