port outdated failure message
Hi, somehow I did something to my port collection that I can't longer list outdated ports, can't upgrade and do any other maintenance, except installing a new port. The message I'm getting is the following: vk@localhost(16:01:04)> port -v outdated Error: port installed failed: list must have an even number of elements No ports are installed. When I run portindex I've got 0 errors, but along the output lines I saw: Adding port sysutils/socat Error: ==== ATTENTION!!!! ==== Error: Sockstat is not working under darwin 8 nor tiger. Please use Error: lsof -i6/lsof -i4/lsof -U instead. Error: ==== ATTENTION!!!! ==== but at the end of the list the output looks: Total number of ports parsed: 3986 Ports successfully parsed: 3986 Ports failed: So, I tried to remove this port, but it fail: vk@localhost(15:49:31)> sudo port uninstall sockstat Password: Error: port uninstall failed: Registry error: sockstat not registered as installed. Any suggestions, especially how to fix "list must have an even number of elements". Thanks, Valentin.
On May 25, 2007, at 15:03, Valentin Kuznetsov wrote:
somehow I did something to my port collection that I can't longer list outdated ports, can't upgrade and do any other maintenance, except installing a new port. The message I'm getting is the following:
vk@localhost(16:01:04)> port -v outdated Error: port installed failed: list must have an even number of elements No ports are installed.
I don't know why. Maybe you have an old version of MacPorts, and maybe the recent changes to the portindex weren't as backward- compatible as we thought they were. Please try updating MacPorts. "sudo port selfupdate"
When I run portindex I've got 0 errors, but along the output lines I saw: Adding port sysutils/socat Error: ==== ATTENTION!!!! ==== Error: Sockstat is not working under darwin 8 nor tiger. Please use Error: lsof -i6/lsof -i4/lsof -U instead. Error: ==== ATTENTION!!!! ====
but at the end of the list the output looks: Total number of ports parsed: 3986 Ports successfully parsed: 3986 Ports failed:
So, I tried to remove this port, but it fail: vk@localhost(15:49:31)> sudo port uninstall sockstat Password: Error: port uninstall failed: Registry error: sockstat not registered as installed.
The sockstat port is written incorrectly. It prints a message on Tiger, when any operation is performed with the port, including something like portindex. It should not do that. I'll make a new thread and Cc the maintainer.
Hi,
vk@localhost(16:01:04)> port -v outdated Error: port installed failed: list must have an even number of elements No ports are installed.
I don't know why. Maybe you have an old version of MacPorts, and maybe the recent changes to the portindex weren't as backward- compatible as we thought they were. Please try updating MacPorts. "sudo port selfupdate"
that doesn't help, I tried multiple times. selfupdate went fine and I still got this message. The one is true, that my ports quite old, they're actually darwin ports.
Le 26 mai 07 à 03:03, Valentin Kuznetsov a écrit :
Hi,
vk@localhost(16:01:04)> port -v outdated Error: port installed failed: list must have an even number of elements No ports are installed.
I don't know why. Maybe you have an old version of MacPorts, and maybe the recent changes to the portindex weren't as backward- compatible as we thought they were. Please try updating MacPorts. "sudo port selfupdate"
that doesn't help, I tried multiple times. selfupdate went fine and I still got this message. The one is true, that my ports quite old, they're actually darwin ports.
Maybe `port -d outdated` could help us more. -- Anthony Ramine, a lazy french student. nox@macports.org
On May 25, 2007, at 20:03, Valentin Kuznetsov wrote:
vk@localhost(16:01:04)> port -v outdated Error: port installed failed: list must have an even number of elements No ports are installed.
I don't know why. Maybe you have an old version of MacPorts, and maybe the recent changes to the portindex weren't as backward- compatible as we thought they were. Please try updating MacPorts. "sudo port selfupdate"
that doesn't help, I tried multiple times. selfupdate went fine and I still got this message. The one is true, that my ports quite old, they're actually darwin ports.
I just want to be absolutely clear here: Which version of MacPorts are you running? The current version is 1.4.42, also known as 1.442. If you selfupdate, you should see this: $ sudo port selfupdate Password: DarwinPorts base version 1.442 installed Downloaded MacPorts base version 1.442 The MacPorts installation is not outdated and so was not updated selfupdate done! Note: I recently changed "DarwinPorts" to "MacPorts" in this message, so MacPorts 1.4.43 should have the correct text.
Here is what I have: vk@localhost(16:21:34)> sudo port selfupdate DarwinPorts base version 1.442 installed Downloaded MacPorts base version 1.442 The MacPorts installation is not outdated and so was not updated selfupdate done! And here is result of port -d outdated: vk@localhost(21:31:10)> sudo port -d outdated DEBUG: list must have an even number of elements while executing "array set receipt_$ref $receipt_contents" (procedure "receipt_flat::open_entry" line 84) invoked from within "${darwinports::registry.format}::open_entry $name $version $revision $variants" (procedure "open_entry" line 4) invoked from within "open_entry $iname $iversion $irevision $ivariants" (procedure "registry::installed" line 13) invoked from within "registry::installed" Error: port installed failed: list must have an even number of elements No ports are installed. V. On May 25, 2007, at ,May 25, 9:22 PM, Ryan Schmidt wrote:
On May 25, 2007, at 20:03, Valentin Kuznetsov wrote:
vk@localhost(16:01:04)> port -v outdated Error: port installed failed: list must have an even number of elements No ports are installed.
I don't know why. Maybe you have an old version of MacPorts, and maybe the recent changes to the portindex weren't as backward- compatible as we thought they were. Please try updating MacPorts. "sudo port selfupdate"
that doesn't help, I tried multiple times. selfupdate went fine and I still got this message. The one is true, that my ports quite old, they're actually darwin ports.
I just want to be absolutely clear here: Which version of MacPorts are you running? The current version is 1.4.42, also known as 1.442. If you selfupdate, you should see this:
$ sudo port selfupdate Password: DarwinPorts base version 1.442 installed Downloaded MacPorts base version 1.442 The MacPorts installation is not outdated and so was not updated selfupdate done!
Note: I recently changed "DarwinPorts" to "MacPorts" in this message, so MacPorts 1.4.43 should have the correct text.
What I meant by "quite old" is that I installed a long time ago, but I was following port selfupdates on a regular basis. V. On May 25, 2007, at ,May 25, 9:22 PM, Ryan Schmidt wrote:
On May 25, 2007, at 20:03, Valentin Kuznetsov wrote:
vk@localhost(16:01:04)> port -v outdated Error: port installed failed: list must have an even number of elements No ports are installed.
I don't know why. Maybe you have an old version of MacPorts, and maybe the recent changes to the portindex weren't as backward- compatible as we thought they were. Please try updating MacPorts. "sudo port selfupdate"
that doesn't help, I tried multiple times. selfupdate went fine and I still got this message. The one is true, that my ports quite old, they're actually darwin ports.
I just want to be absolutely clear here: Which version of MacPorts are you running? The current version is 1.4.42, also known as 1.442. If you selfupdate, you should see this:
$ sudo port selfupdate Password: DarwinPorts base version 1.442 installed Downloaded MacPorts base version 1.442 The MacPorts installation is not outdated and so was not updated selfupdate done!
Note: I recently changed "DarwinPorts" to "MacPorts" in this message, so MacPorts 1.4.43 should have the correct text.
participants (3)
-
N_Ox
-
Ryan Schmidt
-
Valentin Kuznetsov