Re: package error after debfoster [SOLVED]

2006-02-23 Thread Lars Staun Knudsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I couldn't get any of the purge or force commands to clear that
broken package. So i ended up with doing it the hard way, with dpkg
- --listfiles packagename
http://lists.debian.org/debian-user/2005/01/msg04497.html

Thank you for your input...

- --
/Lars
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/YN4SdVv6NOAbD4RAlo0AJ9cGKbuB2L1KUvPOZ+POSV80C1yDACaA1tv
HtM0h/cdGOj/OfpyrLD9z/o=
=RuSA
-END PGP SIGNATURE-


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



Re: package error after debfoster

2006-02-23 Thread Lars Staun Knudsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rogério Brito wrote:
 I think that a simpler touch /usr/bin/update-menus.real as root would
 work better than using --force-* for dpkg. This way, you can still use
 higher level tools than dpkg.

As you may have seen i've solved the problem. But it sounds like a
brilliant keep it simple solution. I'll remember that one...  


(the package should never get in such a state, anyway).
Try tell it to the package... ;-)

- --
/Lars
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/Y1USdVv6NOAbD4RAtMAAJ90ty2DcYXy1a+SdYBTHKOYatqcXACcDTyu
oYPol5PcTfTh8xBQ+/nyjzw=
=ZFAs
-END PGP SIGNATURE-


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



Re: package error after debfoster

2006-02-23 Thread Rogério Brito
Hi, Luís, Lars  Co.

On Feb 22 2006, Luis Finotti wrote:
 Lars Staun Knudsen wrote:
 I cleaned out my system with debfoster, but unfortunately the
 package menu is stuck.
(...)
  Removing menu ...
  chmod: cannot access `/usr/bin/update-menus.real': No such   file
 or directory
 (...)
 
 I am not at my Debian machine, so I can't double check, but I think
 you need dpkg --force-purge.  (Careful with that!  Check the man
 page.  Search force-thing.)

I think that a simpler touch /usr/bin/update-menus.real as root would
work better than using --force-* for dpkg. This way, you can still use
higher level tools than dpkg.

I've been using this for some broken packages that I've made in the past
and it works for me (the package should never get in such a state,
anyway).


Hope this helps, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/


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



package error after debfoster

2006-02-22 Thread Lars Staun Knudsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi
I cleaned out my system with debfoster, but unfortunately the
package menu is stuck. I earlier remembered a way to force at
package out with dpkg. But man or google can't make me remember..

# aptitude purge menu
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
  menu
0 packages upgraded, 0 newly installed, 1 to remove and 0   
not
upgraded.
Need to get 0B of archives. After unpacking 1679kB will be  
freed.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 25111 files and directories currently 
installed.)
Removing menu ...
chmod: cannot access `/usr/bin/update-menus.real': No such  
file
or directory
dpkg: error processing menu (--purge):
 subprocess pre-removal script returned error exit status 1
chmod: cannot access `/usr/bin/update-menus.real': No such  
file
or directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit
status 1
Errors were encountered while processing:
 menu
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ack!  Something bad happened while installing packages. 
Trying
to recover:
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information

So can anyone remember that magic dpkg command that clears any
defiant package. :-)

- --
/Lars
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFD/LJSSdVv6NOAbD4RAkhqAKCLpxN0acTEuJfrbwzvYOyvZrHNUgCY9Aph
ub6mWx4ZERaeJZAZQpKluQ==
=BWJV
-END PGP SIGNATURE-


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



Re: package error after debfoster

2006-02-22 Thread Luis Finotti

Hi,

Lars Staun Knudsen wrote:

Hi
I cleaned out my system with debfoster, but unfortunately the
package menu is stuck. I earlier remembered a way to force at
package out with dpkg. But man or google can't make me remember..

# aptitude purge menu
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
  menu
0 packages upgraded, 0 newly installed, 1 to remove and 0   
not
upgraded.
Need to get 0B of archives. After unpacking 1679kB will be  
freed.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 25111 files and directories currently 
installed.)
Removing menu ...
chmod: cannot access `/usr/bin/update-menus.real': No such  
file
or directory
(...)

So can anyone remember that magic dpkg command that clears any
defiant package. :-)


I am not at my Debian machine, so I can't double check, but I think you 
need dpkg --force-purge.  (Careful with that!  Check the man page. 
Search force-thing.)


HTH,

Luis


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




Re: package error after debfoster

2006-02-22 Thread Lars Staun Knudsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luis Finotti wrote:
 I am not at my Debian machine, so I can't double check, but I think you
 need dpkg --force-purge.  (Careful with that!  Check the man page.
 Search force-thing.)
 
 HTH,
 
 Luis
 

# dpkg --force-purge menu
dpkg: unknown force/refuse option `purge'

I looked at the other force, but no luck:

# dpkg -P remove-essential menu
dpkg - warning: ignoring request to remove remove-essential which
isn't installed.
dpkg: error processing menu (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.


I most admit that i'm not too happy about randomly trying any force
command. As you mention and the man-pages, it's something you should
be carefull with. So any ideas how to force it completely in or out.

- --
/Lars
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/M9+SdVv6NOAbD4RAqVYAJ9Ky6j50RdepYQFlwSp8x14R9NtogCdHqGi
7jM4D3AQ2/U0mKJptjIOLUg=
=qi5Z
-END PGP SIGNATURE-


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



Re: package error after debfoster

2006-02-22 Thread Luis Finotti

Hi,

Lars Staun Knudsen wrote:

 Luis Finotti wrote:

 I am not at my Debian machine, so I can't double check, but I think you
 need dpkg --force-purge.  (Careful with that!  Check the man page.
 Search force-thing.)


 # dpkg --force-purge menu
 dpkg: unknown force/refuse option `purge'

 I looked at the other force, but no luck:

 # dpkg -P remove-essential menu
 dpkg - warning: ignoring request to remove remove-essential which
 isn't installed.
 dpkg: error processing menu (--purge):
  Package is in a very bad inconsistent state - you should
  reinstall it before attempting a removal.


 I most admit that i'm not too happy about randomly trying any force
 command. As you mention and the man-pages, it's something you should
 be carefull with. So any ideas how to force it completely in or out.


Again, I am away from my Debian machine, but I think the correct command 
should have been dpkg --force-remove-reinstreq package.


You can also try apt-get reinstall package (to get the missing files 
back) and then apt-get --purge remove package (again, no 100% sure 
about the syntax...  I've been using wajig...)


HTH,

Luis

Luis


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