When I try to uninstall software, I get the following error: $ sudo port uninstall ethereal Error: port uninstall failed: invalid command name "portuninstall::uninstall" any idea whats going on? Gerrit.
On Jan 5, 2007, at 3:24 AM, Gerrit Polder wrote:
When I try to uninstall software, I get the following error:
$ sudo port uninstall ethereal Error: port uninstall failed: invalid command name "portuninstall::uninstall"
any idea whats going on?
See the last question on the FAQ at: http://trac.macosforge.org/projects/macports/wiki/FAQ -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
thanks, but now the situation is even worse: $ sudo rm -f /opt/local/share/darwinports/Tcl/port1.0/portuninstall.tcl Password: $ sudo port -f selfupdate couldn't read file "/opt/local/share/darwinports/Tcl/port1.0/ portuninstall.tcl": no such file or directory while executing "source /opt/local/share/darwinports/Tcl/port1.0/portuninstall.tcl" ("package ifneeded" script) invoked from within "package_native require portuninstall 1.0" ("eval" body line 1) invoked from within "eval package_native $args" (procedure "package" line 14) invoked from within "package require portuninstall 1.0" (file "/opt/local/share/darwinports/Tcl/registry1.0/ registry.tcl" line 38) invoked from within "source /opt/local/share/darwinports/Tcl/registry1.0/registry.tcl" ("package ifneeded" script) invoked from within "package_native require registry 1.0" ("eval" body line 1) invoked from within "eval package_native $args" (procedure "package" line 14) invoked from within "package require registry 1.0" (procedure "dportinit" line 312) invoked from within "dportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize ports system, couldn't read file "/opt/local/share/darwinports/Tcl/port1.0/ portuninstall.tcl": no such file or directory On Jan 5, 2007, at 4:19 PM, Daniel J. Luke wrote:
On Jan 5, 2007, at 3:24 AM, Gerrit Polder wrote:
When I try to uninstall software, I get the following error:
$ sudo port uninstall ethereal Error: port uninstall failed: invalid command name "portuninstall::uninstall"
any idea whats going on?
See the last question on the FAQ at:
http://trac.macosforge.org/projects/macports/wiki/FAQ -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
I recommend blowing away all tcl files in your /opt/local tree and re- installing the MacPorts infrastructure. That should be more than enough to fix it. Of course, I'm recommending this because I don't know the actual cause of the problem. If somebody does, I'm sure they'll have a less drastic way to fix it. On Jan 5, 2007, at 1:18 PM, Gerrit Polder wrote:
thanks, but now the situation is even worse:
$ sudo rm -f /opt/local/share/darwinports/Tcl/port1.0/ portuninstall.tcl Password: $ sudo port -f selfupdate couldn't read file "/opt/local/share/darwinports/Tcl/port1.0/ portuninstall.tcl": no such file or directory while executing "source /opt/local/share/darwinports/Tcl/port1.0/portuninstall.tcl" ("package ifneeded" script) invoked from within "package_native require portuninstall 1.0" ("eval" body line 1) invoked from within "eval package_native $args" (procedure "package" line 14) invoked from within "package require portuninstall 1.0" (file "/opt/local/share/darwinports/Tcl/registry1.0/ registry.tcl" line 38) invoked from within "source /opt/local/share/darwinports/Tcl/registry1.0/registry.tcl" ("package ifneeded" script) invoked from within "package_native require registry 1.0" ("eval" body line 1) invoked from within "eval package_native $args" (procedure "package" line 14) invoked from within "package require registry 1.0" (procedure "dportinit" line 312) invoked from within "dportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize ports system, couldn't read file "/opt/local/share/darwinports/Tcl/port1.0/ portuninstall.tcl": no such file or directory
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
finally I found a less drastic way to fix: after deleting the portuninstall.tcl I out commented the line: package require portuninstall 1.0 in registry.tcl now port selfupdate is working again. then I changed 1.320 into 1.310 in /opt/local/etc/ports/dp_version and again did a sudo port selfupdate now the system is properly updated and everything is working again. kindly, Gerrit. On Jan 6, 2007, at 6:16 AM, Kevin Ballard wrote:
I recommend blowing away all tcl files in your /opt/local tree and re-installing the MacPorts infrastructure. That should be more than enough to fix it.
Of course, I'm recommending this because I don't know the actual cause of the problem. If somebody does, I'm sure they'll have a less drastic way to fix it.
On Jan 5, 2007, at 1:18 PM, Gerrit Polder wrote:
thanks, but now the situation is even worse:
$ sudo rm -f /opt/local/share/darwinports/Tcl/port1.0/ portuninstall.tcl Password: $ sudo port -f selfupdate couldn't read file "/opt/local/share/darwinports/Tcl/port1.0/ portuninstall.tcl": no such file or directory while executing "source /opt/local/share/darwinports/Tcl/port1.0/portuninstall.tcl" ("package ifneeded" script) invoked from within "package_native require portuninstall 1.0" ("eval" body line 1) invoked from within "eval package_native $args" (procedure "package" line 14) invoked from within "package require portuninstall 1.0" (file "/opt/local/share/darwinports/Tcl/registry1.0/ registry.tcl" line 38) invoked from within "source /opt/local/share/darwinports/Tcl/registry1.0/registry.tcl" ("package ifneeded" script) invoked from within "package_native require registry 1.0" ("eval" body line 1) invoked from within "eval package_native $args" (procedure "package" line 14) invoked from within "package require registry 1.0" (procedure "dportinit" line 312) invoked from within "dportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize ports system, couldn't read file "/opt/local/share/darwinports/Tcl/port1.0/ portuninstall.tcl": no such file or directory
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
participants (3)
-
Daniel J. Luke
-
Gerrit Polder
-
Kevin Ballard