[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to debug an apt-get error?



* Toshiro <toshiro@internet.com.uy> [2003-12-20 16:26]:
> > > > >I'm running sid, I'm having a problem with the upgrade of kdm, the
> > > > > error just says that the postinstallation script return an error
> > > > > (30). This message is very cryptic and it's pretty much useless.
> >
> > Have you tried "script"?
> 
> I think 'script' is used to capture screen output to a file, but nothing is 
> printed to the terminal (except the error I mentioned above). If there's 
> another way to use script, please tell me. Thanks,
> 
> 
How about invoking it with the -x option.  i.e.:

bash -x postinstallation.sh

that will cause each line of the script to print out prior to execution
and you should see where the error occurs.

Lou



Reply to: