Re: Aptitude issue

2009-04-14 Thread Florian Kulzer
On Mon, Apr 13, 2009 at 23:43:02 -0500, M. Lewis wrote:
 Florian Kulzer wrote:
 On Sun, Apr 12, 2009 at 17:50:48 -0500, M. Lewis wrote:
 Florian Kulzer wrote:
 On Sun, Apr 12, 2009 at 03:07:50 -0500, M. Lewis wrote:
 I'm having an issue with Aptitude that I'm not sure how to 
 correct. I  was having an issue with OpenOffice so I decided the 
 easiest way to  resolve the problem might be to completely remove 
 it, then re-install  it. That is when the problem began. Aptitude 
 hung trying to remove   openoffice.org-writer2latex.

[...]

 Thanks Florian. Commenting out 2 thru x lines of the script in fact  
 worked. I was able to do a aptitude update  aptitude full-upgrade.  
 Next when I went to add openoffice.org back in, the silly thing hangs  
 right back at the same package:

 rattler:~# aptitude install openoffice.org 

[...]

 Updating fontconfig cache for /usr/share/fonts/truetype/ttf-liberation
 Setting up openoffice.org-officebean (1:2.4.1-17+b1) ...
 Setting up openoffice.org-writer2latex (0.5-8) ...
 Adding extension  
 /usr/lib/openoffice/share/extension/install/writer2latex.uno.pkg...

I would try this (I cannot guarantee anything, though):

1) Uninstall openoffice again completely, using the same trick for the
   problematic pre-removal script.

2) Purge all openoffice packages that still have configuration files on
   your system, using this command:

   aptitude purge '~nopenoffice~c'

3) Check /usr/lib/openoffice/share/extension/ and its sub-folders. If
   there are any files left then you probably have to remove them
   manually.

4) Try to install openoffice again and keep your fingers crossed.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Aptitude issue

2009-04-14 Thread M. Lewis


Florian Kulzer wrote:

On Mon, Apr 13, 2009 at 23:43:02 -0500, M. Lewis wrote:

Florian Kulzer wrote:

On Sun, Apr 12, 2009 at 17:50:48 -0500, M. Lewis wrote:

Florian Kulzer wrote:

On Sun, Apr 12, 2009 at 03:07:50 -0500, M. Lewis wrote:
I'm having an issue with Aptitude that I'm not sure how to 
correct. I  was having an issue with OpenOffice so I decided the 
easiest way to  resolve the problem might be to completely remove 
it, then re-install  it. That is when the problem began. Aptitude 
hung trying to remove   openoffice.org-writer2latex.


[...]

Thanks Florian. Commenting out 2 thru x lines of the script in fact  
worked. I was able to do a aptitude update  aptitude full-upgrade.  
Next when I went to add openoffice.org back in, the silly thing hangs  
right back at the same package:


rattler:~# aptitude install openoffice.org 


[...]


Updating fontconfig cache for /usr/share/fonts/truetype/ttf-liberation
Setting up openoffice.org-officebean (1:2.4.1-17+b1) ...
Setting up openoffice.org-writer2latex (0.5-8) ...
Adding extension  
/usr/lib/openoffice/share/extension/install/writer2latex.uno.pkg...


I would try this (I cannot guarantee anything, though):

1) Uninstall openoffice again completely, using the same trick for the
   problematic pre-removal script.

2) Purge all openoffice packages that still have configuration files on
   your system, using this command:

   aptitude purge '~nopenoffice~c'

3) Check /usr/lib/openoffice/share/extension/ and its sub-folders. If
   there are any files left then you probably have to remove them
   manually.

4) Try to install openoffice again and keep your fingers crossed.



Florian, thank you so much. That did the trick. I was able to remove it 
completely (verified via dpkg -l | grep office). I was then able to 
install it successfully, and now OO works where it did not work before. 
Thank you so much for your time and patience!!


Mike
--

 The wise person writes bomb-proof code.
  00:40:01 up 4 days, 21:32,  2 users,  load average: 0.51, 0.60, 0.54

 Linux Registered User #241685  http://counter.li.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Aptitude issue

2009-04-13 Thread Florian Kulzer
On Sun, Apr 12, 2009 at 17:50:48 -0500, M. Lewis wrote:

 Florian Kulzer wrote:
 On Sun, Apr 12, 2009 at 03:07:50 -0500, M. Lewis wrote:
 I'm having an issue with Aptitude that I'm not sure how to correct. I 
  was having an issue with OpenOffice so I decided the easiest way to  
 resolve the problem might be to completely remove it, then re-install 
  it. That is when the problem began. Aptitude hung trying to remove   
 openoffice.org-writer2latex.

[...]

 It seems that the pre-removal script gets stuck while trying to
 determine the full name of the writer2latex extension. You can try this
 yourself:

 /usr/lib/openoffice/program/unopkg list --shared | grep latex

 If that command comes up empty or if it hangs then you might have to
 comment out every invocation of /usr/lib/openoffice/program/unopkg in
 /var/lib/dpkg/info/openoffice.org-writer2latex.prerm and run aptitude
 install -f to get the broken package off your system.


 Hey Florian. Unfortunately this did not work. The command unopkg did in  
 fact hang.

OK, so at least we know for sure that we have to get rid of it in the
script.

I did comment out all of the occurrences of unopkg in  
 /var/lib/dpkg/info/openoffice.org-writer2latex.prerm and ran 'aptitude  
 install -f' as you said. Here is the result:

[...]

 Removing openoffice.org-writer2latex ...
 /var/lib/dpkg/info/openoffice.org-writer2latex.prerm: line 7: syntax  
 error near unexpected token `}'
 dpkg: error processing openoffice.org-writer2latex (--remove):
  subprocess pre-removal script returned error exit status 2
 Errors were encountered while processing:
  openoffice.org-writer2latex
 E: Sub-process /usr/bin/dpkg returned an error code (1)

Now the problem is that the function flush_unopkg_cache is empty since
its only instruction has been commented out and shells tend not to like
that. I should have realized that my somewhat vague instructions could
lead to this problem. Anyway, if unopkg does not work anymore for you
then you might as well comment out the entire script from line 2 to the
end and be done with it. (The only purpose of the pre-removal script
seems to be ensuring that unopkg is invoked correctly, but that horse
has left the barn already on your system.)

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Aptitude issue

2009-04-13 Thread M. Lewis

Florian Kulzer wrote:

On Sun, Apr 12, 2009 at 17:50:48 -0500, M. Lewis wrote:

Florian Kulzer wrote:

On Sun, Apr 12, 2009 at 03:07:50 -0500, M. Lewis wrote:
I'm having an issue with Aptitude that I'm not sure how to correct. I 
 was having an issue with OpenOffice so I decided the easiest way to  
resolve the problem might be to completely remove it, then re-install 
 it. That is when the problem began. Aptitude hung trying to remove   
openoffice.org-writer2latex.


[...]


  Now the problem is that the function flush_unopkg_cache is empty since

its only instruction has been commented out and shells tend not to like
that. I should have realized that my somewhat vague instructions could
lead to this problem. Anyway, if unopkg does not work anymore for you
then you might as well comment out the entire script from line 2 to the
end and be done with it. (The only purpose of the pre-removal script
seems to be ensuring that unopkg is invoked correctly, but that horse
has left the barn already on your system.)



Thanks Florian. Commenting out 2 thru x lines of the script in fact 
worked. I was able to do a aptitude update  aptitude full-upgrade. 
Next when I went to add openoffice.org back in, the silly thing hangs 
right back at the same package:


rattler:~# aptitude install openoffice.org 

Reading package lists... Done 

Building dependency tree 

Reading state information... Done 

Reading extended state information 

Initializing package states... Done 

Reading task descriptions... Done 

The following NEW packages will be installed: 

  libblas3gf{a} libgfortran3{a} liblapack3gf{a} libsuitesparse-3.1.0{a} 
libwps-0.1-1{a} lp-solve{a} openoffice.org openoffice.org-base{a} 
openoffice.org-base-core{a} openoffice.org-calc{a} openoffice.org-draw{a}
  openoffice.org-emailmerge{a} openoffice.org-filter-binfilter{a} 
openoffice.org-filter-mobiledev{a} openoffice.org-impress{a} 
openoffice.org-math{a} openoffice.org-officebean{a} 
openoffice.org-report-builder-bin{a}
  openoffice.org-writer{a} openoffice.org-writer2latex{a} python-uno{a} 
ttf-liberation{a} 

0 packages upgraded, 22 newly installed, 0 to remove and 0 not upgraded. 



Need to get 12.8MB/38.8MB of archives. After unpacking 101MB will be 
used. 

Do you want to continue? [Y/n/?] 



Writing extended state information... Done 



Get:1 http://10.10.10.1 lenny/main libwps-0.1-1 0.1.2-1 [60.7kB] 



...
[snip]
...
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-liberation
Setting up openoffice.org-officebean (1:2.4.1-17+b1) ...
Setting up openoffice.org-writer2latex (0.5-8) ...
Adding extension 
/usr/lib/openoffice/share/extension/install/writer2latex.uno.pkg...


--

 You can't go home again, unless you set $HOME.
  23:35:01 up 3 days, 20:27,  2 users,  load average: 0.64, 0.53, 0.42

 Linux Registered User #241685  http://counter.li.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Aptitude issue

2009-04-12 Thread M. Lewis
I'm having an issue with Aptitude that I'm not sure how to correct. I 
was having an issue with OpenOffice so I decided the easiest way to 
resolve the problem might be to completely remove it, then re-install 
it. That is when the problem began. Aptitude hung trying to remove 
openoffice.org-writer2latex. I ended up aborting the process and went on 
about my business. Tonight I needed to install ksensors on the same 
machine when the OpenOffice problem again reared its ugly head.


rattler:~# aptitude install ksensors
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  hddtemp{a} ksensors
The following packages will be REMOVED:
  openoffice.org-writer2latex{u}
0 packages upgraded, 2 newly installed, 1 to remove and 5 not upgraded.
Need to get 355kB of archives. After unpacking 434kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Get:1 http://10.10.10.1 lenny/main ksensors 0.7.3-16 [301kB]
Get:2 http://10.10.10.1 lenny/main hddtemp 0.3-beta15-44 [54.1kB]
Fetched 355kB in 1s (191kB/s)
Preconfiguring packages ...
(Reading database ... 182769 files and directories currently installed.)
Removing openoffice.org-writer2latex ...


At this point, aptitude will sit here for as long as you are willing to 
wait. On another terminal, I did 'ps ax'. The relevant portions follow:



 4726 pts/3Sl+0:03 aptitude install ksensors
 4757 pts/6Ss+0:00 /usr/bin/dpkg --status-fd 24
--force-depends --force-remove-essential --remove
openoffice.org-writer2latex
 4758 pts/6S+ 0:00 /bin/sh
/var/lib/dpkg/info/openoffice.org-writer2latex.prerm remove
 4759 pts/6S+ 0:00 /bin/sh
/var/lib/dpkg/info/openoffice.org-writer2latex.prerm remove
 4760 pts/6S+ 0:00 /bin/sh /usr/lib/openoffice/program/unopkg
list --shared
 4761 pts/6S+ 0:00 grep Identifier:.*writer2latex
 4762 pts/6S+ 0:00 cut -d: -f2
 4780 pts/6S+ 0:00 /usr/lib/libgconf2-4/gconfd-2 4
 4802 pts/6R+ 0:11 /usr/lib/openoffice/program/unopkg.bin list
--shared -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1
-env:UNO_JAVA_JFW_INSTALL_DATA=$$ORIGIN/../share/config/javasettingsunopkginstall.xml
-env:UserInstallation=fi
 4803 pts/4R+ 0:00 ps ax


How can I go about resolving this issue? would it be safe to manually 
delete:


/var/lib/dpkg/info/openoffice.org-write2latex.prerm
/usr/lib/openoffice/program/unopkg.bin

I'm guessing the answer to this would be no as I think it would corrupt 
the dpkg database.


Thanks for any clues!
Mike


--

 IBM: Interesting But Mundane
  02:55:01 up 1 day, 23:47,  2 users,  load average: 0.35, 0.34, 0.34

 Linux Registered User #241685  http://counter.li.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Aptitude issue

2009-04-12 Thread Florian Kulzer
On Sun, Apr 12, 2009 at 03:07:50 -0500, M. Lewis wrote:
 I'm having an issue with Aptitude that I'm not sure how to correct. I  
 was having an issue with OpenOffice so I decided the easiest way to  
 resolve the problem might be to completely remove it, then re-install  
 it. That is when the problem began. Aptitude hung trying to remove  
 openoffice.org-writer2latex.

That indicates a problem with the pre-removal script of this package;
aptitude cannot do much about that.

  I ended up aborting the process and went on  
 about my business. Tonight I needed to install ksensors on the same  
 machine when the OpenOffice problem again reared its ugly head.

The openoffice.org-writer2latex package is in a broken state on your
system (incomplete removal), therefore aptitude has to try to fix it
before it can perform actions on other packages.

 rattler:~# aptitude install ksensors

[...]

 Removing openoffice.org-writer2latex ...


 At this point, aptitude will sit here for as long as you are willing to  
 wait. On another terminal, I did 'ps ax'. The relevant portions follow:


  4726 pts/3Sl+0:03 aptitude install ksensors
  4757 pts/6Ss+0:00 /usr/bin/dpkg --status-fd 24
 --force-depends --force-remove-essential --remove
 openoffice.org-writer2latex
  4758 pts/6S+ 0:00 /bin/sh
 /var/lib/dpkg/info/openoffice.org-writer2latex.prerm remove
  4759 pts/6S+ 0:00 /bin/sh
 /var/lib/dpkg/info/openoffice.org-writer2latex.prerm remove
  4760 pts/6S+ 0:00 /bin/sh /usr/lib/openoffice/program/unopkg
 list --shared
  4761 pts/6S+ 0:00 grep Identifier:.*writer2latex
  4762 pts/6S+ 0:00 cut -d: -f2
  4780 pts/6S+ 0:00 /usr/lib/libgconf2-4/gconfd-2 4
  4802 pts/6R+ 0:11 /usr/lib/openoffice/program/unopkg.bin list
 --shared -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1
 -env:UNO_JAVA_JFW_INSTALL_DATA=$$ORIGIN/../share/config/javasettingsunopkginstall.xml
 -env:UserInstallation=fi

[...]

It seems that the pre-removal script gets stuck while trying to
determine the full name of the writer2latex extension. You can try this
yourself:

/usr/lib/openoffice/program/unopkg list --shared | grep latex

If that command comes up empty or if it hangs then you might have to
comment out every invocation of /usr/lib/openoffice/program/unopkg in
/var/lib/dpkg/info/openoffice.org-writer2latex.prerm and run aptitude
install -f to get the broken package off your system.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Aptitude issue

2009-04-12 Thread M. Lewis


Florian Kulzer wrote:

On Sun, Apr 12, 2009 at 03:07:50 -0500, M. Lewis wrote:
I'm having an issue with Aptitude that I'm not sure how to correct. I  
was having an issue with OpenOffice so I decided the easiest way to  
resolve the problem might be to completely remove it, then re-install  
it. That is when the problem began. Aptitude hung trying to remove  
openoffice.org-writer2latex.


That indicates a problem with the pre-removal script of this package;
aptitude cannot do much about that.

 I ended up aborting the process and went on  
about my business. Tonight I needed to install ksensors on the same  
machine when the OpenOffice problem again reared its ugly head.


The openoffice.org-writer2latex package is in a broken state on your
system (incomplete removal), therefore aptitude has to try to fix it
before it can perform actions on other packages.


rattler:~# aptitude install ksensors


[...]


Removing openoffice.org-writer2latex ...


At this point, aptitude will sit here for as long as you are willing to  
wait. On another terminal, I did 'ps ax'. The relevant portions follow:



 4726 pts/3Sl+0:03 aptitude install ksensors
 4757 pts/6Ss+0:00 /usr/bin/dpkg --status-fd 24
--force-depends --force-remove-essential --remove
openoffice.org-writer2latex
 4758 pts/6S+ 0:00 /bin/sh
/var/lib/dpkg/info/openoffice.org-writer2latex.prerm remove
 4759 pts/6S+ 0:00 /bin/sh
/var/lib/dpkg/info/openoffice.org-writer2latex.prerm remove
 4760 pts/6S+ 0:00 /bin/sh /usr/lib/openoffice/program/unopkg
list --shared
 4761 pts/6S+ 0:00 grep Identifier:.*writer2latex
 4762 pts/6S+ 0:00 cut -d: -f2
 4780 pts/6S+ 0:00 /usr/lib/libgconf2-4/gconfd-2 4
 4802 pts/6R+ 0:11 /usr/lib/openoffice/program/unopkg.bin list
--shared -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1
-env:UNO_JAVA_JFW_INSTALL_DATA=$$ORIGIN/../share/config/javasettingsunopkginstall.xml
-env:UserInstallation=fi


[...]

It seems that the pre-removal script gets stuck while trying to
determine the full name of the writer2latex extension. You can try this
yourself:

/usr/lib/openoffice/program/unopkg list --shared | grep latex

If that command comes up empty or if it hangs then you might have to
comment out every invocation of /usr/lib/openoffice/program/unopkg in
/var/lib/dpkg/info/openoffice.org-writer2latex.prerm and run aptitude
install -f to get the broken package off your system.



Hey Florian. Unfortunately this did not work. The command unopkg did in 
fact hang. I did comment out all of the occurrences of unopkg in 
/var/lib/dpkg/info/openoffice.org-writer2latex.prerm and ran 'aptitude 
install -f' as you said. Here is the result:


rattler:~# aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  hddtemp ksensors
The following packages will be REMOVED:
  openoffice.org-writer2latex{u}
The following packages will be upgraded:
  libicu38 libkrb53 libmp3lame0 libssl0.9.8 openssl
5 packages upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B/11.0MB of archives. After unpacking 504kB will be used.
Do you want to continue? [Y/n/?]
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 182769 files and directories currently installed.)
Removing openoffice.org-writer2latex ...
/var/lib/dpkg/info/openoffice.org-writer2latex.prerm: line 7: syntax 
error near unexpected token `}'

dpkg: error processing openoffice.org-writer2latex (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
 openoffice.org-writer2latex
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done


Thanks,
Mike

--

 Where the system is concerned, you are not allowed to ask Why?.
  17:45:01 up 2 days, 14:37,  2 users,  load average: 0.29, 0.27, 0.23

 Linux Registered User #241685  http://counter.li.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




aptitude issue

2006-05-11 Thread kruton
why does aptitude always want to remove 'sudo'?
whether i insall/remove/upgrade anything.. it always
wants to remove sudo saying its is unused...

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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



Re: aptitude issue

2006-05-11 Thread Simo Kauppi
On Thu, May 11, 2006 at 04:17:40PM -0700, kruton wrote:
 why does aptitude always want to remove 'sudo'?
 whether i insall/remove/upgrade anything.. it always
 wants to remove sudo saying its is unused...

Hi,

It was probably first installed as a dependency and marked
automatically installed. If there is no packages depending on sudo
anymore, aptitude wants to remove as it is no longer needed.

If you use aptitude in the visual mode, you can see it in the status
flags (third character is A, if it was automatically installed).

To change the status in the visual mode, go to the package and press
'm' to set sudo as being manually installed.

In the command line you can do it by:
[EMAIL PROTECTED]:~$ aptitude unmarkauto sudo

HTH
Simo
-- 
:r ~/.signature


signature.asc
Description: Digital signature