Cannot uninstall local port with invalid version number

David Strubbe dstrubbe at macports.org
Fri Jul 20 19:27:36 UTC 2018


Hi,

I'm not sure about how to fix your problem, but I believe the root cause is
that you used something very strange as a revision. I suspect you meant to
use "0.97.114.105.102.115.97.104.97.1" as a version not a revision. In our
terminology, revisions mean updates to the packaging in the Portfile, while
versions mean updates to the underlying code.

The MacPorts base, of course, should have applied to same check to the
revision string you supplied at build time as it is doing at uninstall time.

David

On Fri, Jul 20, 2018 at 2:52 PM, S P Arif Sahari Wibowo via macports-users <
macports-users at lists.macports.org> wrote:

> On 2018-07-18, 16:56, S P Arif Sahari Wibowo via macports-users wrote:
>
>> # port -f uninstall installed
>> Warning: Failed to open Portfile from registry for alpine
>> @2.20_0.97.114.105.102.115.97.104.97.1+without_tcl
>> Error: port uninstall failed: Registry error: Invalid version
>> '2.20_0.97.114.105.102.115.97.104.97.1+without_tcl' specified for
>> alpine. Please specify a version as recorded in the port registry.
>>
>
> So, any thoughts?
>
> Where is this registry anyway? I grep and find through all macports
> directories and only found 2 directories and 1 file (copy of the Portfile)
> with the version number in it. Can I just rename and edit them and it will
> work?
>
> /opt/local/var/macports/registry/portfiles/alpine-2.20_0.97.
> 114.105.102.115.97.104.97.1
> /opt/local/var/macports/software/alpine/alpine-2.20_0.97.
> 114.105.102.115.97.104.97.1+without_tcl.darwin_12.x86_64.tbz2
> /opt/local/var/macports/registry/portfiles/alpine-2.20_0.97.
> 114.105.102.115.97.104.97.1/dd47ac05498fa0b6d33064be0263aaa2
> 49b2c501bc8ff9ca12657e2ccb1aea8a-2485/Portfile
>
> Thanks!
>
>
> --
>    ____  ____  ____  ____ (stephan paul) Arif Sahari Wibowo
>   /___  /___/ /___/ /___      http://www.arifsaha.com/
>  ____/ /     /   / ____/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180720/84f84301/attachment.html>


More information about the macports-users mailing list