Back to my first problem, debconf doesn't reconfigure itself after the
purge. Here is the sequence of events,
pvalex:~# debconf-show pvrfs
* pvrfs/partition: /dev/hda2
pvalex:~# apt-get --purge remove pvrfs
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED
pvrfs*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 32.9MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 11683 files and directories currently installed.)
Removing pvrfs ...
Purging configuration files for pvrfs ...
debconf (developer): frontend started
debconf (developer): frontend running, package name is pvrfs
debconf (developer): starting /var/lib/dpkg/info/pvrfs.postrm purge
debconf (developer): <-- PURGE
debconf (developer): --> 0
pvalex:~# debconf-show pvrfs
pvalex:~#
pvalex:~# apt-get install pvrfs
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed
pvrfs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/32.5MB of archives.
After unpacking 32.9MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
pvrfs
Install these packages without verification [y/N]? y
Preconfiguring packages ...
debconf (developer): starting /tmp/pvrfs.config.112521 configure
debconf (developer): <-- INPUT high pvrfs/partition
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
Selecting previously deselected package pvrfs.
(Reading database ... 11676 files and directories currently installed.)
Unpacking pvrfs (from .../archives/pvrfs_0.1-75_mips.deb) ...
Setting up pvrfs (0.1-75) ...
debconf (developer): frontend started
debconf (developer): frontend running, package name is pvrfs
debconf (developer): starting /var/lib/dpkg/info/pvrfs.config configure
debconf (developer): <-- INPUT high pvrfs/partition
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): starting /var/lib/dpkg/info/pvrfs.postinst configure
debconf (developer): <-- GET pvrfs/partition
debconf (developer): --> 0 /dev/hda2
debconf (developer): <-- STOP
Am I confused or would it be logical for debconf to reconfigure
instead of saying
debconf (developer): --> 30 question skipped ?
Thanks again,
Alex
On Jan 17, 2008 12:02 PM, Alex Gonzalez <langabe@gmail.com> wrote:
> Hi, > Thanks for that. I actually forgot to include the postrm file to do > the purge, so that should fix it. > > Another problem I have is that whiptail doesn't seem to display the > configuration dialog. I have the follwing processes, > > 4838 pts/0 S+ 0:00 sh -c { apt-get update;apt-get > --allow-unauthenticated install pvrfs; } 2>&1 > 4842 pts/0 S+ 0:00 apt-get --allow-unauthenticated install pvrfs > 4846 pts/0 S+ 0:00 /bin/sh -c /usr/sbin/dpkg-preconfigure --apt || true > 4847 pts/0 S+ 0:01 /usr/bin/perl -w /usr/sbin/dpkg-preconfigure --apt > 4854 pts/0 Z+ 0:00 [dpkg-preconfigu] <defunct> > 4857 pts/0 S+ 0:00 /bin/sh -e /tmp/pvrfs.config.48551 configure > 4859 pts/0 S+ 0:00 whiptail --backtitle Package configuration > --title Configuring pvrfs --output-fd 12 --nocancel --default-item > /dev/hda2 --menu Choose a hard drive partition to perform the > filesystem upgrade on.??WARNING! ALL DATA IN THE CHOSEN PARTITION WILL > BE LOST??Choose partition to upgrade on: 16 72 4 -- /dev/hda1 > /dev/hda2 /dev/hda3 /dev/hda4 > 4867 pts/1 S+ 0:00 whiptail --backtitle Package configuration > --title Configuring pvrfs --nocancel --default-item /dev/hda2 --menu > Choose a hard drive partition to perform the filesyst?em upgrade > on.??WARNING! ALL DATA IN THE CHOSEN PARTITION WILL BE LOST??Choose > partition to upgrade on: 16 72 4 -- /dev/hda1 /dev/hda2 /dev/hda3 > /dev/hda4 > > From the two whiptails, the first one failed to bring up a dialog, and > the second one was run manually by me and did bring the dialog. The > only difference is that the second one has no --output-fd. > > My guess is that there is a problem with file descriptor 12, how can I > find out what is this descriptor supposed to be? > > Thanks, > Alex > > > On Jan 16, 2008 5:15 PM, Andrew Sackville-West > > <andrew@farwestbilliards.com> wrote: > > On Wed, Jan 16, 2008 at 03:50:42PM +0000, Alex Gonzalez wrote: > > > Hi, > > > > > > Is it possible to force debconf to forget about a package > > > configuration on removal, or to always ask the configuration questions > > > on install? > > > > I'm sure there is a way to do the second, and there is a debconf-doc package > > you should probably look into. > > > > > > > > I have this packet that is configured the first time it's installed, > > > but then never asks again if you don't dpkg-reconfigure it. > > > > > > However, if I remove the package, then debconf still remembers the > > > configuration and I can't change it with dpkg-reconfigure (package is > > > not installed error). Because of the specifics of the package I won't > > > be able to reinstall it without changing the configuration. > > > > try purging the package first. That will remove all the configuration > > files. > > > > either > > > > aptitude purge <package> > > > > or > > > > dpkg -p <package> > > > > should to do the trick. > > > > A > > > > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.6 (GNU/Linux) > > > > iD8DBQFHjjujaIeIEqwil4YRAigRAJ9hU5grBrHjx6o75I24RTGmybgj/ACeO1VG > > 4AR2sFq4IiirpQ1luJKCUdA= > > =vy/i > > -----END PGP SIGNATURE-----
> > > > >
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Jan 17 11:00:21 2008
This archive was generated by hypermail 2.1.8
: Tue Mar 04 2008 - 04:31:12 EST
|