Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Dave Patterson
* Charles Hallenbeck [EMAIL PROTECTED] [2006-06-14 05:42:43 -0400]:

Try:
apt-get remove --purge X11-common
apt-get dist-upgrade


-- 
Cheers,

  Dave 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Charles Hallenbeck

Hi Dave,
On Wed, Jun 14, 2006 at 05:02:30PM +0700, Dave Patterson wrote:
 * Charles Hallenbeck [EMAIL PROTECTED] [2006-06-14 05:42:43 -0400]:
 
 Try:
 apt-get remove --purge X11-common
 apt-get dist-upgrade
 
 

Here is what happens when I do the remove:

Script started on Wed 14 Jun 2006 06:05:37 AM EDT

Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done


Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree... Done

Package x11-common is not installed, so not removed
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libice6: Depends: x11-common but it is not going to be installed
  libsm6: Depends: x11-common but it is not going to be installed
  libx11-6: PreDepends: x11-common (= 1:7.0.0) but it is not going to be 
installed
  libx11-data: PreDepends: x11-common (= 1:7.0.0) but it is not going to be 
installed
  libxau6: Depends: x11-common but it is not going to be installed
  libxaw7: Depends: x11-common but it is not going to be installed
  libxdmcp6: Depends: x11-common (= 1:7.0) but it is not going to be installed
  libxext6: Depends: x11-common but it is not going to be installed
  libxfixes3: PreDepends: x11-common (= 1:7.0.0) but it is not going to be 
installed
  libxft2: PreDepends: x11-common (= 1:7.0.0) but it is not going to be 
installed
  libxi6: Depends: x11-common but it is not going to be installed
  libxinerama1: Depends: x11-common but it is not going to be installed
  libxmu6: Depends: x11-common but it is not going to be installed
  libxpm4: Depends: x11-common but it is not going to be installed
  libxrandr2: Depends: x11-common but it is not going to be installed
  libxt6: PreDepends: x11-common (= 1:7.0.0) but it is not going to be 
installed
  libxv1: Depends: x11-common but it is not going to be installed
  libxvmc1: Depends: x11-common but it is not going to be installed
  libxxf86dga1: Depends: x11-common but it is not going to be installed
  libxxf86vm1: Depends: x11-common but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a 
solution).

Script done on Wed 14 Jun 2006 06:05:37 AM EDT


I just can't get past this point.

Chuck



-- 
The Moon is Waning Gibbous (91% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Joris Huizer

Charles Hallenbeck wrote:

Package x11-common is not installed, so not removed


Hmm, you could try `dpkg --purge x11-common`

HTH,

Joris


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Simone Soldateschi
On 6/14/06, Charles Hallenbeck [EMAIL PROTECTED] wrote:
Hi Dave,On Wed, Jun 14, 2006 at 05:02:30PM +0700, Dave Patterson wrote: * Charles Hallenbeck [EMAIL PROTECTED] [2006-06-14 05:42:43 -0400]: Try:
 apt-get remove --purge X11-common apt-get dist-upgradeI had a similar problem two days ago trying to update 'libwx2.6-dev' from backports.'apt-get' failed package upgrade due to unmet dependencies and I was unable to fix the problem with 'apt -f install'.
A debian user suggested me to fix the problem using synaptic and filtering defective packages.. it did the job.Now I'm doubtful: is it safe using backports? why 'apt-get -f install' did not solve the problem?
bye// SS-- In theory, it shouldn't be that hard, but it just needs to be done


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Dave Patterson
Ok, it looks like x11-common can't do anything because somethings hosed
with debconf.
Try apt-get -f install debconf, or dpkg-reconfigure debconf, and see what
happens there.

-- 
Cheers,

  Dave 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Charles Hallenbeck
Hi, Joris


On Wed, Jun 14, 2006 at 12:37:17PM +0200, Joris Huizer wrote:
 Charles Hallenbeck wrote:
 Package x11-common is not installed, so not removed
 
 Hmm, you could try `dpkg --purge x11-common`

Unfortunately I get the same familiar output:

Script started on Wed 14 Jun 2006 06:38:49 AM EDT
dpkg: dependency problems prevent removal of x11-common:
 libxau6 depends on x11-common.
 libxt6 depends on x11-common (= 1:7.0.0).
 libxxf86vm1 depends on x11-common.
 libsm6 depends on x11-common.
 libx11-data depends on x11-common (= 1:7.0.0).
 libice6 depends on x11-common.
 libx11-6 depends on x11-common (= 1:7.0.0).
 libxft2 depends on x11-common (= 1:7.0.0).
 libxaw7 depends on x11-common.
 libxmu6 depends on x11-common.
 libxfixes3 depends on x11-common (= 1:7.0.0).
 libxi6 depends on x11-common.
 libxv1 depends on x11-common.
 libxrandr2 depends on x11-common.
 libxpm4 depends on x11-common.
 libxvmc1 depends on x11-common.
 libxext6 depends on x11-common.
 libxxf86dga1 depends on x11-common.
 libxinerama1 depends on x11-common.
 libxdmcp6 depends on x11-common (= 1:7.0).
dpkg: error processing x11-common (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 x11-common

Script done on Wed 14 Jun 2006 06:38:50 AM EDT



-- 
The Moon is Waning Gibbous (91% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Charles Hallenbeck
On Wed, Jun 14, 2006 at 05:39:07PM +0700, Dave Patterson wrote:
 Ok, it looks like x11-common can't do anything because somethings hosed
 with debconf.
 Try apt-get -f install debconf, or dpkg-reconfigure debconf, and see what
 happens there.


The apt-get -f install debconf gives me the same complaint, and the 
dpkg-reconfigure debconf says this:

hq:~# dpkg-reconfigure debconf
/usr/sbin/dpkg-reconfigure: debconf is broken or not fully installed


Do I dare try to remove debconf? I better do a backup first, this is 
getting serious smile


-- 
The Moon is Waning Gibbous (91% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Dave Patterson
* Simone Soldateschi [EMAIL PROTECTED] [2006-06-14 12:36:47 +0200]:


 A debian user suggested me to fix the problem using synaptic and filtering
 defective packages..  it did the job.

Sorry.  Here, he can't do that because he isn't even running X, only some
components of it are needed for his console.  So Synaptic won't work in
this situation.

-- 
Cheers,

  Dave 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Charles Hallenbeck

Hi Simone,
On Wed, Jun 14, 2006 at 12:36:47PM +0200, Simone Soldateschi wrote:
 
 I had a similar problem two days ago trying to update 'libwx2.6-dev' from
 backports.
 'apt-get' failed package upgrade due to  unmet dependencies and I was unable
 to fix the problem with 'apt -f install'.
 A debian user suggested me to fix the problem using synaptic and filtering
 defective packages..  it did the job.
 


I do not have synaptic installed, and can no longer install anything 
until I get this thing fixed. Catch 22! I'll keep that in mind though.

Chuck


-- 
The Moon is Waning Gibbous (91% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Joris Huizer

Charles Hallenbeck wrote:

Hi, Joris


On Wed, Jun 14, 2006 at 12:37:17PM +0200, Joris Huizer wrote:


Charles Hallenbeck wrote:


Package x11-common is not installed, so not removed


Hmm, you could try `dpkg --purge x11-common`



Unfortunately I get the same familiar output:

Script started on Wed 14 Jun 2006 06:38:49 AM EDT
dpkg: dependency problems prevent removal of x11-common:


Now I remember, dpkg has --force-* options; try with the --force-depends 
flag, or (a bit more risky) the --force-all flag


HTH,

Joris


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Dave Patterson
* Charles Hallenbeck [EMAIL PROTECTED] [2006-06-14 06:50:32 -0400]:

 
 
 Do I dare try to remove debconf? I better do a backup first, this is 
 getting serious smile

'Eek!' said I, and yes, do a backup.

Then, yank it out.

Then, pull debconf from the testing
repository manually and install with dpkg -i (full packagename.deb) from the
directory you put it in. 

Or, do this: add the testing repository to you /etc/apt/sources.list

apt-get update

apt-get remove --purge debconf

apt-get -t testing install debconf

-- 
Cheers,

  Dave 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Charles Hallenbeck
Hi Joris,

When I add either the --force-depends or the --force-all option to the 
dpkg --purge x11-common command, they also fail to remove the package. 
When I then do an apt-get -f install, I get the same familiar failure as 
I reported earlier.

I may have to save what I can and reinstall my system, although there 
has GOT to be a better way. I am beginning to think like a Windows user, 
and I have never been one! 

Chuck

-- 
The Moon is Waning Gibbous (91% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Charles Hallenbeck
Dave,

On Wed, Jun 14, 2006 at 06:12:29PM +0700, Dave Patterson wrote:
 * Charles Hallenbeck [EMAIL PROTECTED] [2006-06-14 06:50:32 -0400]:
 
  
 'Eek!' said I, and yes, do a backup.
 
 Then, yank it out.


Yeah, but I can't yank it out! It is not fully installed, and nothing in 
my arsenal can yank it out.
 
 Then, pull debconf from the testing
 repository manually and install with dpkg -i (full packagename.deb) from the
 directory you put it in. 
 
 Or, do this: add the testing repository to you /etc/apt/sources.list
 
 apt-get update
 
 apt-get remove --purge debconf

I wish that command would work, but it will not.

 

Ditto.

The real trouble with abandoning the problem by reinstalling my system 
from scratch is, since I don't know what caused it, I might just run 
into it again. I think I will rummage around some more before pulling 
the plug.



-- 
The Moon is Waning Gibbous (91% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Joris Huizer
just thinking aloud, maybe `apt-get --reinstall install debconf` could 
help out on debconf, and then also on x11-common... I hope?


HTH,

Joris


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Joris Huizer
one more note, in case you have aptitude installed, you may try using 
that, too, as it is known to be handle conflicts and brakage slightly 
different from apt-get; The interactive interface can show what is 
broken and such

(just calling out a few suggestions now)

HTH,

Joris


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Dave Patterson
* Joris Huizer [EMAIL PROTECTED] [2006-06-14 13:58:57 +0200]:

 one more note, in case you have aptitude installed, you may try using 
 that, too, as it is known to be handle conflicts and brakage slightly 
 different from apt-get; The interactive interface can show what is 
 broken and such

Good idea - aptitude's installed by default in most systems...

My wife's calling...

back in a bit.
-- 
Cheers,

  Dave 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Dave Patterson
* Charles Hallenbeck [EMAIL PROTECTED] [2006-06-14 07:43:57 -0400]:

 
 Yeah, but I can't yank it out! It is not fully installed, and nothing in 
 my arsenal can yank it out.

Ok,then:
Look at /var/lib/dpkg/info/debconf.postinst
and see what's in that file-perhaps we can hack a fix from there.  The
postinstall script is what messed it up, and it's a hard hang.

Once we get that sorted out, we'll file a bug report with the maintainer,
but s/he has to know what the problem is...

 I think I will rummage around some more before pulling 
 the plug.
 
I like rummaging.  I sometimes find pretty girls and free beer that way...
remember, it's only a bug, not a system-wide disaster.
 
 -- 
 The Moon is Waning Gibbous (91% of Full)
 Get downloads from http://www.mhcable.com/~chuckh
   and remember, INFORMATION WANTS TO BE FREE!



-- 
Cheers,

  Dave 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Joey Hess
Charles Hallenbeck wrote:
 Retrieving bug reports... Done
 Preconfiguring packages ...
 x11-common failed to preconfigure, with exit status 1
 Setting up debconf (1.5.2) ...
 dpkg: error processing debconf (--configure):
  subprocess post-installation script returned error exit status 1
 Errors were encountered while processing:
  debconf

Edit /var/lib/dpkg/info/x11-common.config and
/var/lib/dpkg/info/debconf.postinst and add a new line as the second
line of each script:

set -e

Then re-run this apt-get -f install and we should be able to figure out
what's really wrong.

-- 
see shy jo


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread John Miller
Why not just keep x11-common?  It looks like a whole ton of X libraries
are already installed.  Otherwise, figure out which programs depend on
each individual library, either by dpkg --show programname, or by
trying to remove each library individually.

Up until a month or two ago (when I gave it away), I ran a console-only
laptop (sarge, however) that ran into these issues from time to time. 
I'm just now checking e-mail and saw the words 'reinstall' float by



Charles Hallenbeck wrote:
 Hi Joris,

 When I add either the --force-depends or the --force-all option to the 
 dpkg --purge x11-common command, they also fail to remove the package. 
 When I then do an apt-get -f install, I get the same familiar failure as 
 I reported earlier.

 I may have to save what I can and reinstall my system, although there 
 has GOT to be a better way. I am beginning to think like a Windows user, 
 and I have never been one! 

 Chuck

   


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Dave Patterson
* Joey Hess [EMAIL PROTECTED] [2006-06-14 12:21:32 -0400]:

:
 
 set -e
 
 Then re-run this apt-get -f install and we should be able to figure out
 what's really wrong.
 
This will tell you where in the script it's exiting...

-- 
Cheers,

  Dave 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread John Miller
Apologies for not reading the original message closely enough.  I got
stuck on the 'x11-common' part and didn't pay enough attention to the
debconf error.

If debconf is having trouble, that's really weird.  Perhaps doing a dpkg
-r debconf, then doing a clean reinstall of debconf?  Using wget to
download a fresh .deb of debconf and installing with dpkg -i? 
Reinstalling from your /var/cache/apt/archives?  dpkg-reconfigure
debconf?  I know that there is a reinstall option to apt  That's
about all I know at this point.

--John



John Miller wrote:
 Why not just keep x11-common?  It looks like a whole ton of X libraries
 are already installed.  Otherwise, figure out which programs depend on
 each individual library, either by dpkg --show programname, or by
 trying to remove each library individually.

 Up until a month or two ago (when I gave it away), I ran a console-only
 laptop (sarge, however) that ran into these issues from time to time. 
 I'm just now checking e-mail and saw the words 'reinstall' float by



 Charles Hallenbeck wrote:
   
 Hi Joris,

 When I add either the --force-depends or the --force-all option to the 
 dpkg --purge x11-common command, they also fail to remove the package. 
 When I then do an apt-get -f install, I get the same familiar failure as 
 I reported earlier.

 I may have to save what I can and reinstall my system, although there 
 has GOT to be a better way. I am beginning to think like a Windows user, 
 and I have never been one! 

 Chuck

   
 


   


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Greg Folkert
On Wed, 2006-06-14 at 23:57 +0700, Dave Patterson wrote:
 * Joey Hess [EMAIL PROTECTED] [2006-06-14 12:21:32 -0400]:
 
 :
  
  set -e
  
  Then re-run this apt-get -f install and we should be able to figure out
  what's really wrong.
  
 This will tell you where in the script it's exiting...

Seeing as Joey Hess has a big hand in debconf and many other critical
packages, he wants to see what is really wrong, because the script may
exit in a completely different area than where the script hits the bad
function/command/typo.

Chuck needs to have a large scrollback and paste it to here for us to
understand the entire functional problem.

-- 
greg, [EMAIL PROTECTED]

The technology that is 
Stronger, Better, Faster: Linux

Use Debian GNU/Linux, its a bazaar thing

NOTICE: Due to Presidential Executive Orders, the 
National Security Agency may have read this email 
without warning, warrant, or notice, and certainly 
without probable cause. They may do this without 
any judicial or legislative oversight. You have no 
recourse nor protection.


signature.asc
Description: This is a digitally signed message part


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Charles Hallenbeck
Hi Joey,

On Wed, Jun 14, 2006 at 12:21:32PM -0400, Joey Hess wrote:
 Charles Hallenbeck wrote:
 
 Edit /var/lib/dpkg/info/x11-common.config and
 /var/lib/dpkg/info/debconf.postinst and add a new line as the second
 line of each script:
 
 set -e
 
 Then re-run this apt-get -f install and we should be able to figure out
 what's really wrong.
 

The first of those files, x11-common.config, does not exist, and the 
other one, debconf.postinst, already has set -e on the second line.

Chuck


-- 
The Moon is Waning Gibbous (89% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Greg Folkert
On Wed, 2006-06-14 at 06:55 -0400, Charles Hallenbeck wrote:
 Hi Simone,
 On Wed, Jun 14, 2006 at 12:36:47PM +0200, Simone Soldateschi wrote:
  
  I had a similar problem two days ago trying to update 'libwx2.6-dev' from
  backports.
  'apt-get' failed package upgrade due to  unmet dependencies and I was unable
  to fix the problem with 'apt -f install'.
  A debian user suggested me to fix the problem using synaptic and filtering
  defective packages..  it did the job.
  
 
 
 I do not have synaptic installed, and can no longer install anything 
 until I get this thing fixed. Catch 22! I'll keep that in mind though.

There is always dpkg-deb

dpkg-deb -X /var/cache/apt/archives/x11-common_1%
3a7.0.20_i386.deb /

That will extract and make certain things usable until you can get the
packages correctly installed. Personally I have saved a couple of
peoples machines this way. One fixing an upgrade from Breezy Badger to
Dapper Duck (being of course Ubuntu)... but I digress.

Use of these commands is exceptionally use at your own risk of blowing
up your machines config, with no sympathy from anyone. So use caution.

-- 
greg, [EMAIL PROTECTED]

The technology that is 
Stronger, Better, Faster: Linux

Use Debian GNU/Linux, its a bazaar thing

NOTICE: Due to Presidential Executive Orders, the 
National Security Agency may have read this email 
without warning, warrant, or notice, and certainly 
without probable cause. They may do this without 
any judicial or legislative oversight. You have no 
recourse nor protection.


signature.asc
Description: This is a digitally signed message part


Re: apt-get broken, packages not fully installed or removed (solved?)

2006-06-14 Thread Charles Hallenbeck
The strange problem of the not fully installed or removed packages I 
have been reporting has been resolved, but I do not understand it.

It seems that a short while ago I have switched shells from bash to zsh 
to explore its new features. I did it gradually, first doing a usermod 
for each of my accounts to make /bin/zsh the login shell, then after 
hammering out an agreeable configuration, changing the symbolic link 
/bin/sh to point to /bin/zsh instead of /bin/bash. 

After looking at those files in /var/lib/dpkg/info mentioned by Dave and 
Joey, I changed the link to point to /bin/bash again, re-ran apt-get -f 
install successfully, then ran apt-get upgrade also successfully, and I 
have a resolved system.

But why? I do upgrades at least once a day, and they usually went 
without a hitch using zsh. But evidently this was somehow the cause of 
the current problem.

It's a little vague to report it as a zsh bug just yet, I think. And I 
am nervous about trying to replicate the problem. So what do I do? give 
up zsh? 

Chuck

-- 
The Moon is Waning Gibbous (89% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Charles Hallenbeck
On Wed, Jun 14, 2006 at 02:26:18PM -0400, Greg Folkert wrote:
 On Wed, 2006-06-14 at 23:57 +0700, Dave Patterson wrote:
  * Joey Hess [EMAIL PROTECTED] [2006-06-14 12:21:32 -0400]:
  
 
 Chuck needs to have a large scrollback and paste it to here for us to
 understand the entire functional problem.
 

I have had good luck using script to capture as much output as 
necessary. If someone would like to tell me what to run, I'll be happy 
to generate output. But I sure don't want to put my system to risk, now 
that it is resolved.

I have not seen my mail describing the resolution of the problem yet. 
Turns out to be a problem of dueling shells, zsh vs. bash.

Chuck


-- 
The Moon is Waning Gibbous (89% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed (solved?)

2006-06-14 Thread Joshua J. Kugler
On Wednesday 14 June 2006 10:51, Charles Hallenbeck wrote (edited):
 changing the symbolic link
 /bin/sh to point to /bin/zsh instead of /bin/bash.

 I changed the link to point to /bin/bash again, [ran apt commands
 successfully 

 But why? I do upgrades at least once a day, and they usually went
 without a hitch using zsh. But evidently this was somehow the cause of
 the current problem.

 It's a little vague to report it as a zsh bug just yet, I think. And I
 am nervous about trying to replicate the problem. So what do I do? give
 up zsh?

I believe the issue is that /bin/sh is expected to be a bourne shell, or at 
least closely compatible.  zsh, most closely resembles ksh but includes many 
enhancements.  ksh has command language [that is ] is a superset of the 
sh(1) shell language.  While this means, in theory, ksh should do everything 
sh would do, there might be expected behaviors that zsh (which resembles 
ksh) does not live up to.

j

-- 
Joshua Kugler   
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed

2006-06-14 Thread Joey Hess
Joey Hess wrote:
 set -e

Of course that should have been -x, the point being to see where the
script is failing.

-- 
see shy jo


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed (solved?)

2006-06-14 Thread Carl Fink
On Wed, Jun 14, 2006 at 11:15:05AM -0800, Joshua J. Kugler wrote:

 I believe the issue is that /bin/sh is expected to be a bourne shell, or at 
 least closely compatible.  zsh, most closely resembles ksh but includes many 
 enhancements.  ksh has command language [that is ] is a superset of the 
 sh(1) shell language.  While this means, in theory, ksh should do everything 
 sh would do, there might be expected behaviors that zsh (which resembles 
 ksh) does not live up to.

Shouldn't apt-get then refuse to run under zsh, or itself spawn /bin/sh and
run scripts under that instead of the default shell?
-- 
Carl Fink   [EMAIL PROTECTED]
   Patriotism is supporting your country all the time, and your
   government when it deserves it.
  - Mark Twain


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed (solved?)

2006-06-14 Thread Dave Patterson
* Charles Hallenbeck [EMAIL PROTECTED] [2006-06-14 14:51:22 -0400]:

 The strange problem of the not fully installed or removed packages I 
 have been reporting has been resolved...

Hooray!

 
 It seems that a short while ago I have switched shells from bash to zsh 
 to explore its new features. I did it gradually, first doing a usermod 
 for each of my accounts to make /bin/zsh the login shell, then after 
 hammering out an agreeable configuration, changing the symbolic link 
 /bin/sh to point to /bin/zsh instead of /bin/bash. 
 
 After looking at those files in /var/lib/dpkg/info mentioned by Dave and 
 Joey, I changed the link to point to /bin/bash again, re-ran apt-get -f 
 install successfully, then ran apt-get upgrade also successfully, and I 
 have a resolved system.
 
 But why? I do upgrades at least once a day, and they usually went 
 without a hitch using zsh. But evidently this was somehow the cause of 
 the current problem.
 
Hmm...

 It's a little vague to report it as a zsh bug just yet, I think.

Agreed. I think it's more of a problem with APT.  It should call bash if it
wants to use it.


 So what do I do? give up zsh? 
 
Nah. Figure out how to make APT point to BASH and file the bug there.  Be
interesting to see what the APT people have to say.

-- 
Cheers,

  Dave 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get broken, packages not fully installed or removed (solved?)

2006-06-14 Thread Joey Hess
Carl Fink wrote:
 Shouldn't apt-get then refuse to run under zsh, or itself spawn /bin/sh and
 run scripts under that instead of the default shell?

/bin/sh is the default shell, and it is required on Debian that that
symlink only be pointed to POSIX compliant shells.

-- 
see shy jo


signature.asc
Description: Digital signature


Re: apt-get broken, packages not fully installed or removed (solved?)

2006-06-14 Thread John Hasler
Dave writes:
 Figure out how to make APT point to BASH and file the bug there.  Be
 interesting to see what the APT people have to say.

Policy requires that /bin/sh point to a POSIX shell.  Zsh is not
POSIX-compliant.  You can break many things other than Apt by pointing
/bin/sh to Zsh.
-- 
John Hasler


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]