Kevin Buhr wrote:
"Michael S. Peek" <peek@tiem.utk.edu> writes:I've traced my problem down to the use of 'dpkg --set-selections' command. As an example, I have a package named tiem-nis-client-cfg that sets up NIS for generic workstations. If I understand correctly, I should be able to do the following: echo "tiem-nis-client-cfg install" | dpkg --set-selections And then, when I type 'dpkg --get-selections', I should see "tiem-nis-client-cfg install" one some line in the output.No, "dpkg --get-selections" without further arguments only lists packages that are either installed or deinstalled (but still have their config files on the system), not purged packages or those that have never been on your system, even if those packages have been selected for installation. If you run: dpkg --get-selections tiem-nis-client-cfg that should show that your new package has been selected for installation.
Now I'm getting somewhere: :~# echo "tiem-nis-client-cfg install" | dpkg --set-selections ; echo $? ; dpkg --get-selections tiem-nis-client-cfg | grep 'tiem-nis-client-cfg' ; echo $? 0 tiem-nis-client-cfg install 0 This does indeed work -- my tiem-nis-client-cfg package is now shown as being slated for installation. Which begs the question: Why doesn't 'apt-get dselect-upgrade' install the package? I have also tried 'dselect install', but with no success. They both give the same result: ~# dselect update Hit http://tortoise sarge/main Packages Ign http://tortoise sarge/main Release Hit http://tortoise sarge/non-free Packages Ign http://tortoise sarge/non-free Release Hit http://tortoise sarge/contrib Packages Ign http://tortoise sarge/contrib Release Hit http://ftp.us.debian.org sarge/main Packages Hit http://ftp.us.debian.org sarge/main Release Hit http://ftp.us.debian.org sarge/non-free Packages Hit http://ftp.us.debian.org sarge/non-free Release Hit http://ftp.us.debian.org sarge/contrib Packages Hit http://ftp.us.debian.org sarge/contrib Release Hit http://ftp.us.debian.org sarge/main Sources Hit http://ftp.us.debian.org sarge/main Release Hit http://ftp.us.debian.org sarge/non-free Sources Hit http://ftp.us.debian.org sarge/non-free Release Hit http://ftp.us.debian.org sarge/contrib Sources Hit http://ftp.us.debian.org sarge/contrib Release Hit http://ftp.us.debian.org testing/main Sources Hit http://ftp.us.debian.org testing/main Release Hit http://ftp.us.debian.org testing/non-free Sources Hit http://ftp.us.debian.org testing/non-free Release Hit http://ftp.us.debian.org testing/contrib Sources Hit http://ftp.us.debian.org testing/contrib Release Hit http://ftp.us.debian.org unstable/main Sources Hit http://ftp.us.debian.org unstable/main Release Hit http://mirror.home-dn.net sarge/main Sources Hit http://mirror.home-dn.net sarge/main Release Hit http://download.videolan.org sarge/main Sources Ign http://download.videolan.org sarge/main Release Hit http://ftp.us.debian.org unstable/non-free Sources Hit http://security.debian.org sarge/updates/main Packages Hit http://security.debian.org sarge/updates/main Release Hit http://ftp.us.debian.org unstable/non-free Release Hit http://ftp.us.debian.org unstable/contrib Sources Hit http://ftp.us.debian.org unstable/contrib Release Hit http://download.videolan.org sid/main Sources Ign http://download.videolan.org sid/main Release Hit http://security.debian.org sarge/updates/contrib Packages Hit http://security.debian.org sarge/updates/contrib Release Hit http://security.debian.org sarge/updates/non-free Packages Hit http://security.debian.org sarge/updates/non-free Release Reading Package Lists... Done Merging Available information Replacing available packages info, using /var/cache/apt/available. Information about 15850 package(s) was updated. ~# dselect install Reading Package Lists... Done Building Dependency Tree... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Do you want to erase any previously downloaded .deb files? [Y/n] Press enter to continue. ~# apt-get update Hit http://tortoise sarge/main Packages Ign http://tortoise sarge/main Release Hit http://tortoise sarge/non-free Packages Ign http://tortoise sarge/non-free Release Hit http://tortoise sarge/contrib Packages Ign http://tortoise sarge/contrib Release Hit http://ftp.us.debian.org sarge/main Packages Hit http://ftp.us.debian.org sarge/main Release Hit http://ftp.us.debian.org sarge/non-free Packages Hit http://ftp.us.debian.org sarge/non-free Release Hit http://ftp.us.debian.org sarge/contrib Packages Hit http://ftp.us.debian.org sarge/contrib Release Hit http://ftp.us.debian.org sarge/main Sources Hit http://ftp.us.debian.org sarge/main Release Hit http://ftp.us.debian.org sarge/non-free Sources Hit http://ftp.us.debian.org sarge/non-free Release Hit http://ftp.us.debian.org sarge/contrib Sources Hit http://ftp.us.debian.org sarge/contrib Release Hit http://ftp.us.debian.org testing/main Sources Hit http://ftp.us.debian.org testing/main Release Hit http://ftp.us.debian.org testing/non-free Sources Hit http://ftp.us.debian.org testing/non-free Release Hit http://ftp.us.debian.org testing/contrib Sources Hit http://ftp.us.debian.org testing/contrib Release Hit http://ftp.us.debian.org unstable/main Sources Hit http://ftp.us.debian.org unstable/main Release Hit http://download.videolan.org sarge/main Sources Ign http://download.videolan.org sarge/main Release Hit http://security.debian.org sarge/updates/main Packages Hit http://security.debian.org sarge/updates/main Release Hit http://download.videolan.org sid/main Sources Ign http://download.videolan.org sid/main Release Hit http://ftp.us.debian.org unstable/non-free Sources Hit http://ftp.us.debian.org unstable/non-free Release Hit http://ftp.us.debian.org unstable/contrib Sources Hit http://ftp.us.debian.org unstable/contrib Release Hit http://security.debian.org sarge/updates/contrib Packages Hit http://security.debian.org sarge/updates/contrib Release Hit http://security.debian.org sarge/updates/non-free Packages Hit http://security.debian.org sarge/updates/non-free Release Hit http://mirror.home-dn.net sarge/main Sources Hit http://mirror.home-dn.net sarge/main Release Reading Package Lists... Done ~# apt-get dselect-upgrade Reading Package Lists... Done Building Dependency Tree... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Thanks for your help, Michael Peek